1. 04 Oct, 2018 1 commit
    • Chris Wilson's avatar
      igt: Check drmModeGetResources() · 519003ca
      Chris Wilson authored
      If KMS is not supported on the device, drmModeGetResources() will return
      NULL, often this is an indication that we should not attempt to run the
      test. Although it would be preferred to use something like
      igt_require_display() as the canonical check and assert that
      drmModeGetResources() did not hit an error, it is not always practical
      as the tests do not utilize the common igt_display abstraction.
      Signed-off-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
      Reviewed-by: Arkadiusz Hiler's avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
      519003ca
  2. 25 Sep, 2018 2 commits
  3. 01 Feb, 2018 1 commit
  4. 09 Oct, 2017 1 commit
  5. 08 Sep, 2017 1 commit
  6. 25 Jul, 2017 1 commit
  7. 21 Mar, 2017 3 commits
  8. 04 Jan, 2017 1 commit
    • Paulo Zanoni's avatar
      tests/kms_draw_crc: remove unnecessary mode unset calls · f42b2688
      Paulo Zanoni authored
      I couldn't think of a reason why we would need to unset the CRTCs
      before doing the modesets on this test, so remove all the mode unset
      calls.
      
      Before:
      $ time -p sudo ./kms_draw_crc
      real 44.74
      $ time -p for i in $(sudo ./kms_draw_crc --list-subtests); do sudo
      ./kms_draw_crc --run-subtest $i; done
      real 121.61
      
      After:
      $ time -p sudo ./kms_draw_crc
      real 7.40
      $ time -p for i in $(sudo ./kms_draw_crc --list-subtests); do sudo
      ./kms_draw_crc --run-subtest $i; done
      real 14.32
      Signed-off-by: Paulo Zanoni's avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
      f42b2688
  9. 04 Mar, 2016 1 commit
  10. 03 Mar, 2016 1 commit
  11. 04 Dec, 2015 1 commit
    • Daniel Vetter's avatar
      lib/kms+tests: Use cached connector state · db4f83ca
      Daniel Vetter authored
      Speeds up testcases except for those where we want to exercise the
      probing itself. The only exceptions left where we do a full probe are
      
      - pm_rpm: We use it to make sure the kernel doesn't get things wrong
        with power domains, so we really want to exercise the full probe
        paths. And there the only place really is the specific validation
        done with the data gathered by get_drm_info.
      
      - kmstest_force_ functions: Newer kernels should be better at
        re-probing state when the force sysfs fields change, but better safe
        than sorry.
      
      v2: I also consolidated the start_n_modes and start_connectors while
      at it - move one of the fixup hunks to this patch that accidentally
      got misplaced (Thomas).
      
      Cc: Thomas Wood <thomas.wood@intel.com>
      Signed-off-by: Daniel Vetter's avatarDaniel Vetter <daniel.vetter@intel.com>
      db4f83ca
  12. 03 Nov, 2015 1 commit
  13. 11 Sep, 2015 1 commit
  14. 21 Aug, 2015 1 commit
  15. 14 Aug, 2015 1 commit
  16. 14 May, 2015 1 commit
    • Paulo Zanoni's avatar
      lib/debugfs: wait_for_keypress("crc") when collecting CRC · 641d535a
      Paulo Zanoni authored
      Let's just steal the "crc" namespace and add this by default to
      igt_pipe_crc_collect_crc() instead of adding more calls to other
      tests. If tests want special waits on just some of their collect_crc()
      calls, they can use another name instead of "crc".
      
      This is very useful when developing, especially when the CRC we get is
      wrong: we want to look at the screen to see what's going on before we
      can think about how to fix the problem. So let's add this to the lib
      instead of adding this to every single test I need to debug.
      
      v2: Add some documentation (Daniel).
      Signed-off-by: Paulo Zanoni's avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
      641d535a
  17. 07 May, 2015 1 commit
    • Paulo Zanoni's avatar
      lib: add igt_draw · cf9f48e7
      Paulo Zanoni authored
      For all those IGT tests that need an easy way to draw rectangles on
      buffers using different methods. Current planned users: FBC and PSR
      CRC tests.
      
      There is also a tests/kms_draw_crc program to check if the library is
      sane.
      
      v2: - Move the test from lib/tests to tests/ (Daniel).
          - Add igt_require() to filter out the swizzling/tiling methods we
            don't support (Daniel).
          - Simplify reloc handling on the BLT case (Daniel).
          - Document enum igt_draw_method (Daniel).
          - Document igt_draw_get_method_name() (Paulo).
      v3: - Add IGT_DRAW_MMAP_WC (Chris).
          - Implement the other trivial swizzling methods (Chris).
          - Remove the gem_sync() calls (Chris).
      Signed-off-by: Paulo Zanoni's avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
      cf9f48e7