1. 19 Feb, 2016 1 commit
  2. 18 Feb, 2016 2 commits
  3. 17 Feb, 2016 1 commit
  4. 11 Feb, 2016 3 commits
  5. 09 Feb, 2016 6 commits
  6. 05 Feb, 2016 1 commit
  7. 04 Feb, 2016 2 commits
  8. 29 Jan, 2016 4 commits
  9. 28 Jan, 2016 1 commit
  10. 27 Jan, 2016 4 commits
  11. 26 Jan, 2016 1 commit
  12. 25 Jan, 2016 3 commits
  13. 22 Jan, 2016 2 commits
  14. 20 Jan, 2016 2 commits
    • Chris Wilson's avatar
      lib: Expand igt_hang_ring() to select target context and various options · 19642c60
      Chris Wilson authored
      Some potential callers want to inject a hang into a particular context,
      some want to trigger an actual ban and others may or may not want to
      capture the associated error state. Expand the hang injection interface
      to suit all.
      
      v2: Disable the new kernel API, but push to provide a missing piece of
      infrastucture to unbreak compilation.
      Signed-off-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
      19642c60
    • Chris Wilson's avatar
      lib: Always double check igt_require_hang_ring() on use · a2eb6372
      Chris Wilson authored
      If we move the igt_require() into the hang injector, this makes simple
      test cases even more convenient. More complex test cases can always do
      their own precursory check before settting up the test.
      
      However, this does embed the assumption that the first context we are
      called from is safe (i.e no i915.enable_hangcheck/i915.reset
      interferrence).
      
      v2: A couple of environment variables to skip hang testing or to force
      hang injection even if the GPU cannot be reset.
      Signed-off-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
      a2eb6372
  15. 19 Jan, 2016 2 commits
    • Chris Wilson's avatar
      igt/gem_mmap_wc: Test cpu mmap vs wc mmap coherency · a6090c71
      Chris Wilson authored
      Similar to the cpu mmap vs gtt mmap coherency test.
      Signed-off-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
      a6090c71
    • Chris Wilson's avatar
      gem_concurrent_blit: Don't call igt_require() outside of a subtest/fixture · 42291f25
      Chris Wilson authored
      gem_concurrent_blit tries to ensure that it doesn't try and run a test
      that would grind the system to a halt, i.e. unexpectedly cause swap
      thrashing. It currently calls intel_require_memory(), but outside of
      the subtest (as the tests use fork, it cannot do requirement testing
      within the test children) - but intel_require_memory() calls
      igt_require() and triggers and abort. Wrapping that initial require
      within an igt_fixture() stops the abort(), but also prevents any further
      testing.
      
      This patch restructures the requirement checking to ordinary conditions,
      which though allowing the test to run, also prevents listing of subtests
      on machines which cannot handle them.
      42291f25
  16. 11 Jan, 2016 1 commit
    • Chris Wilson's avatar
      core/sighelper: Interrupt everyone in the process group · cd658a7c
      Chris Wilson authored
      Some stress tests create both the signal helper and a lot of competing
      processes. In these tests, the parent is just waiting upon the children,
      and the intention is not to keep waking up the waiting parent, but to
      keep interrupting the children (as we hope to trigger races in our
      kernel code). kill(-pid) sends the signal to all members of the process
      group, not just the target pid.
      
      We also switch from using SIGUSR1 to SIGCONT to paper over a race
      condition when forking children that saw the default signal action being
      run (and thus killing the child).
      Signed-off-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
      Acked-by: Daniel Vetter's avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      cd658a7c
  17. 08 Jan, 2016 3 commits
    • Ville Syrjälä's avatar
      Fix a bunch of printf types · 1ecd91a8
      Ville Syrjälä authored
      igt_kms.c: In function ‘igt_crtc_set_background’:
      igt_kms.c:1940:2: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘uint64_t’ [-Wformat=]
        LOG(display, "%s.%d: crtc_set_background(%lu)\n",
        ^
      intel_firmware_decode.c: In function ‘csr_open’:
      intel_firmware_decode.c:169:2: warning: format ‘%zd’ expects argument of type ‘signed size_t’, but argument 3 has type ‘__off_t’ [-Wformat=]
        printf("Firmware: %s (%zd bytes)\n", filename, st.st_size);
        ^
      intel_gpu_top.c: In function ‘main’:
      intel_gpu_top.c:683:10: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘uint64_t’ [-Wformat=]
                stats[i] - last_stats[i]);
                ^
      hsw_compute_wrpll.c: In function ‘main’:
      hsw_compute_wrpll.c:644:3: warning: format ‘%li’ expects argument of type ‘long int’, but argument 7 has type ‘long long int’ [-Wformat=]
         igt_fail_on_f(ref->r2 != r2 || ref->n2 != n2 || ref->p != p,
         ^
      gem_gtt_hog.c: In function ‘__real_main155’:
      gem_gtt_hog.c:177:2: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘unsigned int’ [-Wformat=]
        igt_info("Time to execute %lu children:  %7.3fms\n",
        ^
      kms_flip.c: In function ‘run_test_step’:
      kms_flip.c:985:3: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 10 has type ‘__time_t’ [-Wformat=]
         igt_assert_f(end - start > 0.9 * frame_time(o) &&
         ^
      kms_flip.c:985:3: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 11 has type ‘__suseconds_t’ [-Wformat=]
      kms_frontbuffer_tracking.c: In function ‘setup_sink_crc’:
      kms_frontbuffer_tracking.c:1364:3: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘ssize_t’ [-Wformat=]
         igt_info("Unexpected sink CRC error, rc=:%ld errno:%d %s\n",
         ^
      Signed-off-by: Ville Syrjälä's avatarVille Syrjälä <ville.syrjala@linux.intel.com>
      1ecd91a8
    • Ville Syrjälä's avatar
      lib: Add igt_pipe_crc_new_nonblock() · 90907450
      Ville Syrjälä authored
      Add support for reading the CRC in non-blocking mode. Useful for tests
      that want to start the CRC capture, then do a bunch of operations, then
      collect however many CRCs that got generated. The current
      igt_pipe_crc_new() + igt_pipe_crc_get_crcs() method would block until
      it gets the requested number of CRCs, whreas in non-blocking mode we
      can just read as many as got generated thus far.
      
      v2: __attribute__((warn_unused_result)), document the
          new igt_pipe_crc_get_crcs() return value (Daniel)
      Signed-off-by: Ville Syrjälä's avatarVille Syrjälä <ville.syrjala@linux.intel.com>
      90907450
    • Ville Syrjälä's avatar
      lib: Extract some common fb create+fill methods into helpers · 5b113d32
      Ville Syrjälä authored
      Several tests do one or more of the following:
      * igt_create_fb() + igt_paint_test_pattern()
      * igt_create_color_fb() + igt_paint_test_pattern()
      * igt_create_fb() + igt_paint_image()
      
      Extract them into new helpers: igt_create_pattern_fb(),
      igt_create_color_pattern_fb(), igt_create_image_fb().
      
      v2: Fix typos, and improve API docs (Thomas)
      Signed-off-by: Ville Syrjälä's avatarVille Syrjälä <ville.syrjala@linux.intel.com>
      5b113d32
  18. 06 Jan, 2016 1 commit