1. 20 Feb, 2019 2 commits
  2. 19 Feb, 2019 2 commits
  3. 18 Feb, 2019 1 commit
  4. 17 Feb, 2019 1 commit
  5. 15 Feb, 2019 8 commits
  6. 14 Feb, 2019 5 commits
    • Ramalingam C's avatar
      kms_content_protection: Macros replace the constants · 395eaffd
      Ramalingam C authored
      For better readability, numeric values are replaced with macros.
      Signed-off-by: Ramalingam C's avatarRamalingam C <ramalingam.c@intel.com>
      Reviewed-by: Daniel Vetter's avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      395eaffd
    • Ramalingam C's avatar
      kms_content_protection: Confirm that LIC is passed · fd5b0534
      Ramalingam C authored
      Once the HDCP is enabled, kernel will run the link integrity check(LIC)
      atleast once in 2Secs based on the HDCP versions.
      
      So to confirm the link integrity check is passed, we oberve that HDCP
      state remains ENABLED for next 4Secs.
      
      v2:
        Rebased.
      Signed-off-by: Ramalingam C's avatarRamalingam C <ramalingam.c@intel.com>
      Reviewed-by: Daniel Vetter's avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      fd5b0534
    • Ramalingam C's avatar
      kms_content_protection: Test CP along with modeset · d4c40ff0
      Ramalingam C authored
      As we have two different patch for commitng the HDCP request
      	1. DDI_enable (during the modeset)
      	2. update_pipe (during fastset execution)
      
      Currently our kms_content_protection covers only fastset path.
      So this test adds the coverage for the HDCP during the modeset by
      performing DPMS off-on and check for HDCP status.
      
      But with respect to HDCP we allow few retries from userspace before
      reporting the failure. So only first attempt at kernel will be on
      modeset path, next retries will become fastset commiting of HDCP.
      
      v2:
        dpms test is added within existing implementation with a flag [Daniel]
      v3:
        ret declared.
      Signed-off-by: Ramalingam C's avatarRamalingam C <ramalingam.c@intel.com>
      Reviewed-by: Daniel Vetter's avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      d4c40ff0
    • Ramalingam C's avatar
      kms_content_protection: modularizing the CP test steps · bc20c44c
      Ramalingam C authored
      Modularizing the CP test steps for the convenience of reusing it for
      other subtests.
      Signed-off-by: Ramalingam C's avatarRamalingam C <ramalingam.c@intel.com>
      Reviewed-by: Daniel Vetter's avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      bc20c44c
    • José Roberto de Souza's avatar
      test: Add PSR2 selective update tests · eea5cf40
      José Roberto de Souza authored
      This tests checks if hardware is able to do selective update when
      screen changes.
      PSR2 don't trigger interruptions and the 'PSR2 SU status' register
      is not kept loaded all the times, so it is necessary keep polling
      PSR status debugfs until those values are loaded.
      
      Also from DEEP_SLEEP state HW will not do a seletive update, as
      most of the memory/context is lost in deep sleep state hardware will
      need to exit PSR mode then wait a configured number of frames to
      activate PSR again to then start doing seletive updates, that is why
      just one screen change is not enough to pass this tests.
      
      When a selective update happens and the values are loaded and read
      from debugfs it is compared with the expected value of seletive
      update blocks, if matches the polling is stopped and the test passed
      otherwise it will wait until it reachs a maximum number o screen
      changes to fail the test.
      
      v2: Using new SU blocks debugfs output
      
      v3:
      - removed the timerfd to fail the test, now failing based in a
      maximum number of screen changes
      - removing thread to read debugfs, read from main thread is enough
      - improved commit message
      
      v4:
      - getting cairo context for frontbuffer test in prepare()
      - droppoing poll(), using blocking timerfd instead
      
      v5:
      - Doing a modeset before trying to enable PSR2
      
      v6:
      - doing atomic commits to fix(legacy commit is taking more time in
      recent kernels causing us to miss the SU when reading debugfs) and
      speedup test
      - fixed code to skip test when PSR2 is not possile
      Reviewed-by: Dhinakaran Pandiyan's avatarDhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
      Tested-by: Dhinakaran Pandiyan's avatarDhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
      Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
      Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
      Signed-off-by: José Roberto de Souza's avatarJosé Roberto de Souza <jose.souza@intel.com>
      eea5cf40
  7. 13 Feb, 2019 4 commits
  8. 12 Feb, 2019 4 commits
  9. 11 Feb, 2019 3 commits
  10. 08 Feb, 2019 2 commits
  11. 05 Feb, 2019 3 commits
    • Tony Ye's avatar
      tests/gem_media_vme: Shut down half of subslices to avoid gpu hang on ICL · 6975affb
      Tony Ye authored
      On Icelake we need to turn off subslices not containing the VME block or
      the VME kernel will hang.
      
      v2: (Tvrtko Ursulin)
       * Remove libdrm usage for setting context param.
       * Cleanup bitmask operation.
       * Only apply the workaround for ICL.
      
      v3: (Tvrtko Ursulin)
       * Added hang detector. (Chris Wilson)
      
      v4: (Tvrtko Ursulin)
       * Rebase for hang detector moved to previous patch.
       * Tidy curly braces.
      
      v5: (Tvrtko Ursulin)
       * Whitespace tidy. (Joonas)
      Signed-off-by: 's avatarTony Ye <tony.ye@intel.com>
      Signed-off-by: Tvrtko Ursulin's avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
      Cc: Tony Ye <tony.ye@intel.com>
      Reviewed-by: Joonas Lahtinen's avatarJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
      6975affb
    • Tony Ye's avatar
      tests/gem_media_vme: Simple test to exercise the VME block · c4b2b2f0
      Tony Ye authored
      Simple test which exercises the VME fixed function block.
      
      v2: (Tvrtko Ursulin)
       * Small cleanups like copyright date, tabs, remove unused bits.
      
      v3: (Tony Ye)
       * Added curbe data entry for dst surface.
       * Read the dst surface after the VME kernel being executed.
      
      v4: (Tony Ye)
       * Added the media_vme.gxa kernel source code and compile instructions.
      
      v5: (Tvrtko Ursulin)
       * Added hang detector.
      
      v6: (Tvrtko Ursulin)
       * Replace gem_read with gem_sync. (Chris Wilson)
      Signed-off-by: 's avatarTony Ye <tony.ye@intel.com>
      Signed-off-by: Tvrtko Ursulin's avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
      Cc: Tony Ye <tony.ye@intel.com>
      Reviewed-by: Joonas Lahtinen's avatarJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
      c4b2b2f0
    • Lionel Landwerlin's avatar
      tests/gem_ctx_sseu: Dynamic (sub)slice programming tests · 5b31f04a
      Lionel Landwerlin authored
      Verify that the per-context dynamic SSEU uAPI works as expected.
      
      v2: Add subslice tests (Lionel)
          Use MI_SET_PREDICATE for further verification when available (Lionel)
      
      v3: Rename to gem_ctx_rpcs (Lionel)
      
      v4: Update kernel API (Lionel)
          Add 0 value test (Lionel)
          Exercise invalid values (Lionel)
      
      v5: Add perf tests (Lionel)
      
      v6: Add new sysfs entry tests (Lionel)
      
      v7: Test rsvd fields
          Update for kernel series changes
      
      v8: Drop test_no_sseu_support() test (Kelvin)
          Drop drm_intel_*() apis (Chris)
      
      v9: by Chris:
          Drop all do_ioctl/do_ioctl_err()
          Use gem_context_[gs]et_param()
          Use gem_read() instead of mapping memory
          by Lionel:
          Test dynamic sseu on/off more
      
      Tvrtko Ursulin:
      
      v10:
       * Various style tweaks and refactorings.
       * New test coverage.
      
      v11:
       * Change platform support to just Gen11.
       * Simplify availability test. (Chris Wilson)
       * More invalid pointer tests. (Chris Wilson)
      
      v12:
       * Fix MAP_FIXED use (doh!).
       * Fix get/set copy&paste errors.
       * Drop supported platform test. (Chris Wilson)
       * Add mmap__gtt test. (Chris Wilson)
      
      v13:
       * Commit message tweaks.
       * Added reset/hang/suspend tests. (Chris Wilson)
       * Assert spinner is busy. (Chris Wilson)
       * Remove some more ABI assumptions. (Chris Wilson)
      
      v14:
       * Use default resume time. (Chris Wilson)
       * Trigger hang after rpcs read batch has been submitted. (Chris Wilson)
      
      v15:
       * Adjust for uAPI restrictions.
      
      v16:
       * Build system changes.
      
      v17:
       * Remove all subtests which read the RPCS register. (Joonas Lahtinen)
      
      v18:
       * Tidy curly braces. (Joonas Lahtinen)
      
      v19:
       * Check flags/rsvd MBZ.
      
      v20:
       * Rebase for engine_class/engine_instance uapi change.
      
      v21:
       * Fixed meson.build.
      Signed-off-by: Lionel Landwerlin's avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
      Signed-off-by: Tvrtko Ursulin's avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
      Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> # v14
      Reviewed-by: Joonas Lahtinen's avatarJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
      5b31f04a
  12. 04 Feb, 2019 4 commits
  13. 02 Feb, 2019 1 commit