1. 31 Aug, 2018 1 commit
    • Chris Wilson's avatar
      lib: Stop caching __drm_device_id · 46c35f25
      Chris Wilson authored
      In a multi-device system there is no guarantee that the fd being probed
      in intel_get_drm_devid() is the same as was opened earlier. Any cache
      may outlive the fd, so is frought with lifetime issues. The primary
      reason for caching the devid was to avoid extra ioctls in the
      dmesg/strace, but hopefully all users now grab the id in their fixture
      and not inside every function.
      Signed-off-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
      Cc: Katarzyna Dec <katarzyna.dec@intel.com>
      Reviewed-by: Katarzyna Dec's avatarKatarzyna Dec <katarzyna.dec@intel.com>
      46c35f25
  2. 11 Oct, 2016 1 commit
  3. 30 Jun, 2016 1 commit
    • Chris Wilson's avatar
      lib: Start weaning off defunct intel_chipset.h · d308bb08
      Chris Wilson authored
      Several years ago we made the plan of only having one canonical source
      for i915_pciids.h, the kernel and everyone importing their definitions
      from that. For consistency, we style the intel_device_info after the
      kernel, most notably using a generation mask and a per-codename bitfield.
      
      This first step converts looking up the generation for a devid tree from
      a massive if(devid)-chain to a (cached) table lookup.
      Signed-off-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
      d308bb08
  4. 14 Apr, 2016 1 commit
  5. 08 Sep, 2015 1 commit
  6. 02 Jul, 2015 1 commit
  7. 27 Jun, 2015 1 commit
  8. 18 Feb, 2015 2 commits
  9. 30 Sep, 2014 1 commit
  10. 26 Aug, 2014 1 commit
  11. 21 Jul, 2014 1 commit
  12. 25 Apr, 2014 1 commit
    • Chris Wilson's avatar
      Reset errno to 0 after success · b918a3ba
      Chris Wilson authored
      errno is only valid after a syscall wrapper (e.g. ioctl()) reports an
      error. However, we report the last errno value as a part of the
      igt_assert() output and so we display spurious values such as:
      
      Test requirement not met in function gem_require_ring, file ioctl_wrappers.c:802:
      Last errno: 11, Resource temporarily unavailable
      Test requirement: (!((((intel_get_drm_devid(fd)) == 0x0102 || ...
      Signed-off-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
      b918a3ba
  13. 23 Mar, 2014 1 commit
  14. 22 Mar, 2014 5 commits
  15. 22 Mar, 2013 1 commit
  16. 06 Dec, 2012 1 commit
  17. 11 Feb, 2012 1 commit
  18. 10 Feb, 2012 1 commit
  19. 09 Jan, 2012 1 commit
  20. 10 Oct, 2011 1 commit
  21. 15 Apr, 2010 1 commit
  22. 08 Apr, 2010 1 commit
  23. 23 Jun, 2009 1 commit
  24. 27 Mar, 2009 1 commit