Skip to content
  • 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: default avatarChris Wilson <chris@chris-wilson.co.uk>
    Cc: Katarzyna Dec <katarzyna.dec@intel.com>
    Reviewed-by: default avatarKatarzyna Dec <katarzyna.dec@intel.com>
    46c35f25