1. 23 Oct, 2018 1 commit
  2. 01 Mar, 2018 1 commit
    • Chris Wilson's avatar
      lib: Provide an accelerated routine for readback from WC · 6a06d014
      Chris Wilson authored
      Reading from WC is awfully slow as each access is uncached and so
      performed synchronously, stalling for the memory load. x86 did introduce
      some new instructions in SSE 4.1 to provide a small internal buffer to
      accelerate reading back a cacheline at a time from uncached memory, for
      this purpose.
      v2: Don't be lazy and handle misalignment.
      v3: Switch out of sse41 before emitting the generic memcpy routine
      v4: Replace opencoded memcpy_from_wc
      v5: Always flush the internal buffer before use (Eric)
      v6: Assume bulk moves, so check for dst alignment.
      v7: Use _mm_fence for _buitlin_ia32_mfence for consistency, remove
      superfluous defines (Ville)
      Signed-off-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
      Cc: Eric Anholt <eric@anholt.net>
      Reviewed-by: Ville Syrjälä's avatarVille Syrjälä <ville.syrjala@linux.intel.com>
  3. 09 Oct, 2017 1 commit
  4. 08 Sep, 2017 1 commit
  5. 12 Oct, 2015 1 commit
  6. 09 Oct, 2015 2 commits
  7. 11 Sep, 2015 1 commit
  8. 21 Aug, 2015 1 commit
  9. 23 Jun, 2015 1 commit
    • Derek Morton's avatar
      igt/gem_fence_thrash: Reduce memory usage · 471ebbed
      Derek Morton authored
      On android platforms with 1Gb RAM gem_fence_thrash was failing
      with an out of memory error.
      This patch causes gem_close() to be called when a handle is
      no longer required rather than relying on the cleanup when
      the fd is closed. This greatly improves the memory footprint
      of the test allowing it to run on 1Mb systems.
      Also fixed a leak of the 'threads' variable.
      v2: Simplified as per Chris Wilson's suggestion.
      Signed-off-by: default avatarDerek Morton <derek.j.morton@intel.com>
      [ickle: fix mmap leak from bo_copy()]
      Reviewed-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
  10. 06 Mar, 2015 1 commit
  11. 04 Nov, 2014 1 commit
  12. 13 May, 2014 1 commit
  13. 22 Mar, 2014 2 commits
  14. 01 Nov, 2013 1 commit
    • Daniel Vetter's avatar
      lib: add igt_main macro · 071e9ca1
      Daniel Vetter authored
      In the past new testcases with subtest often forgot to add the call to
      igt_exit at the end of their main() function. That is now caught with
      a bit more obnoxious asserts, but it's still a nuissance.
      This little igt_main macro takes care of that (and also of calling the
      subtest machinery initialization code correctly).
      If no one objects I'll roll this out for all the simple cases (i.e.
      those tests that don't have additional argv parsing on top of the
      subtest machinery).
      v2: Roll it out across the board.
      Signed-off-by: Daniel Vetter's avatarDaniel Vetter <daniel.vetter@ffwll.ch>
  15. 25 Sep, 2013 1 commit
  16. 03 Sep, 2013 1 commit
  17. 14 Aug, 2013 1 commit
  18. 13 Aug, 2013 2 commits
  19. 12 Aug, 2013 3 commits
  20. 18 Jul, 2013 1 commit
    • Damien Lespiau's avatar
      tests: Black list tests we don't want to run on simulation · 5fa15f79
      Damien Lespiau authored
      Let's start by a small set of tests, to eventually consider running
      The current list should then be:
      v2 add (Daniel Vetter)
      Signed-off-by: default avatarDamien Lespiau <damien.lespiau@intel.com>
  21. 09 Apr, 2013 1 commit
  22. 08 Apr, 2013 1 commit
    • Daniel Vetter's avatar
      tests/gem_fence_trash: make threaded tests more through-rough · 0a8bfbf7
      Daniel Vetter authored
      With this at least the y-tiled test reliably fails on my machines, but
      x-tiled still passes on some. More ideas to tune this highly welcome.
      v2: Fill cpu caches with data for each newly allocated bo. This seems
      to do the trick on my snb here _really_ reliably. So apparently the
      backsnoop for llc gtt writes is the crucial ingredient here to make
      the test fail.
      While at it, also stop leaking mmap space.
      v3: Fixup commit message.
      Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Signed-off-by: Daniel Vetter's avatarDaniel Vetter <daniel.vetter@ffwll.ch>
  23. 27 Mar, 2013 2 commits
  24. 04 Mar, 2013 1 commit
  25. 24 Mar, 2012 1 commit
  26. 14 Mar, 2012 1 commit
  27. 10 Jan, 2012 1 commit
  28. 08 Jan, 2012 2 commits
  29. 15 Oct, 2011 1 commit
  30. 01 Sep, 2009 1 commit
    • Chris Wilson's avatar
      Add gem_fence_thrash test · 8f3f862b
      Chris Wilson authored
      This is a test case that overcommits fence registers between threads, which
      are copying from one fenced bo to another. In earlier versions of the driver
      this would cause excessive spinning as the first inactive (i.e. not in use
      by the GPU) would be used to service the next page. After all the fence
      registers had been allocated, in effect only the very first fence would then
      be used for all subsequent faults.