1. 16 Apr, 2015 1 commit
    • Rodrigo Vivi's avatar
      lib/igt_aux: Introduce igt_interactive_debug_manual_check. · ae9c6851
      Rodrigo Vivi authored
      This is an extention of igt_debug_wait_for_keypress that also can have
      customized message and return key pressed.
      
      v2: This is actualy a v2. V1 was an extension of original
          igt_debug_wait_for_keypress but it was nacked.
      
      v3: Make [Y/n] check inside aux function as suggested by Daniel.
          Also renaming and adding first use case along with the axu function.
      
      v4: Simplify function name and make it assert pressed key
          is different from n/N as suggested by Daniel.
      
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
      ae9c6851
  2. 24 Feb, 2015 1 commit
    • David Weinehall's avatar
      tests/drv_suspend: hibernation test · 7890b093
      David Weinehall authored
      intel-gpu-tools currently has a bunch of tests for suspend,
      but currently none (that I could find) for hibernate.
      
      Attached is a rudimentary patch to add said test.  It does so
      by repurposing the drv_suspend driver to handle both suspend
      and hibernate, since the difference is miniscule.
      
      I decided to split the suspend/autoresume functions in
      igt_aux.c though, to be able to leave the igt_system_uspend_autoresume()
      function unchanged (the other option would be to
      introduce a boolean function argument and have that
      decide what parameters to pass to rtcwake).
      
      The timeout passed to rtcwake probably needs tuning (it might
      even need to be dynamically adjusted, since the time hibernation takes
      varies wildly depending on the amount of non-cache memory in use).
      Signed-off-by: default avatarDavid Weinehall <david.weinehall@intel.com>
      Reviewed-by: Imre Deak's avatarImre Deak <imre.deak@intel.com>
      7890b093
  3. 13 Feb, 2015 1 commit
  4. 22 Jan, 2015 1 commit
  5. 20 Jan, 2015 1 commit
  6. 07 Jan, 2015 1 commit
  7. 18 Dec, 2014 1 commit
  8. 11 Dec, 2014 1 commit
    • Thomas Wood's avatar
      lib: add a function to lock memory into RAM · 42b02c28
      Thomas Wood authored
      Add a function to lock memory into RAM and use it in the
      gem_tiled_swapping test to reduce the amount of allocated memory
      required to force swapping. This also reduces the amount of time
      required for the test to complete, since the data set is smaller.
      
      The following durations were recorded with gem_tiled_swapping on a
      haswell system before the change:
      
        Subtest non-threaded: SUCCESS (55.889s)
        Subtest threaded: SUCCESS (810.532s)
      
      and after:
      
        Subtest non-threaded: SUCCESS (11.804s)
        Subtest threaded: SUCCESS (268.336s)
      
      v2: add various assertions and requirements and make sure
          gem_tiled_swapping works on systems with less RAM (Daniel Vetter)
      
      v3: fix allocation size calculation
      Signed-off-by: default avatarThomas Wood <thomas.wood@intel.com>
      42b02c28
  9. 25 Nov, 2014 1 commit
  10. 18 Nov, 2014 1 commit
  11. 22 Oct, 2014 1 commit
  12. 17 Oct, 2014 1 commit
  13. 30 Sep, 2014 3 commits
  14. 06 Sep, 2014 1 commit
  15. 05 Sep, 2014 1 commit
  16. 26 Aug, 2014 1 commit
  17. 23 Jul, 2014 2 commits
  18. 12 Jun, 2014 1 commit
  19. 09 Jun, 2014 1 commit
  20. 15 May, 2014 1 commit
  21. 26 Mar, 2014 1 commit
  22. 23 Mar, 2014 4 commits
  23. 22 Mar, 2014 5 commits
  24. 12 Mar, 2014 3 commits
    • Daniel Vetter's avatar
      lib: move prefault helpers to igt_debugfs.c · adb28fd7
      Daniel Vetter authored
      This way all debugfs library code is in one place, ready for some api
      documentation care.
      Signed-off-by: Daniel Vetter's avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      adb28fd7
    • Daniel Vetter's avatar
      lib: extract igt_core.c · d63fe151
      Daniel Vetter authored
      Same game as with ioctl_wrappers.c.
      
      To split was rather clean except for the static function
      oom_adjust_for_doom. But that was a bug, the calls to it in the
      various open helpers should simply be done at init and fork time.
      Which was already the case, except for simple testcase.  So fix it up.
      
      While at it also start with a small section header for the
      documentation.
      
      v2: Don't forget to update the xml template ...
      Signed-off-by: Daniel Vetter's avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      d63fe151
    • Daniel Vetter's avatar
      lib/ioctl_wrappers: api doc · 556c49f2
      Daniel Vetter authored
      Also some tiny polish to function interface:
      - @caching in gem_set_tiling should be uint32_t to match the ioctl
        struct.
      - s/size/length/ for gem_write/read.
      - move gem_get_num_rings to the other ring feature helpers.
      
      v2: Also demote gem_require_ring from static inline and move it, too.
      
      v3: Also move gem_handle_to_libdrm_bo.
      Signed-off-by: Daniel Vetter's avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      556c49f2
  25. 11 Mar, 2014 2 commits
  26. 13 Feb, 2014 1 commit
    • Daniel Vetter's avatar
      lib: (somewhat) structured logging support · eebdf7f9
      Daniel Vetter authored
      Apparently there's a bit a need for more verbose output in testcases,
      mostly for debugging purposes. At least gem_reset_stats and pm_rps
      have a verbose mode.
      
      On top of that we're currently not taking advantage of piglit's "warn"
      state all that much. But I think it might be useful for testcases which
      are notorious for some kinds of spurious failures, like e.g. the really
      nasty timing checks in kms_flip. If we demote some of them to just
      warnings we could run the overall tests more often.
      
      Hence this patchs adds a new igt_log function with the three levels DEBUG,
      INFO and WARN. Plus a bunch of convenience helpers to keep the test
      code tidy.
      
      The level can be set through an enviroment vairable IGT_LOG_LEVEL with
      info being the default. Also tests can look at the selected log level in
      case they want to run costly debug functions only when needed.
      
      Comments highly welcome, I plan to roll this out over tests which can
      use it (not all, imo that's too much churn) once we've settled on the
      interfaces/semantics.
      Signed-off-by: Daniel Vetter's avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      eebdf7f9
  27. 11 Feb, 2014 1 commit
    • Daniel Vetter's avatar
      lib: Make igt_skip noreturn · a036959f
      Daniel Vetter authored
      This is a remnant from the subtest code before we had proper
      fixture blocks. With those there's no no reason to have igt_skip
      calls outside of fixtures or subtests, so we can assert this and
      hence always jump out.
      
      Suggested by Thomas Wood since static analyzers got confused about
      this.
      
      To check for fallout I've run all tests as non-root so that they'll
      all skip. Only very little fallout resulted.
      
      Cc: Thomas Wood <thomas.wood@intel.com>
      Signed-off-by: Daniel Vetter's avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      a036959f