drm/i915/selftests: Pretend to be a gfx pci device
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 May 2017 09:46:15 +0000 (10:46 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 May 2017 14:43:49 +0000 (15:43 +0100)
commit29f31623d7a83048b1c90a4db89b6f325bfde942
treed64753740853980b6843ff9b26b2520e937f642f
parentac0a73fb526100adc521ec2069623e47ca3997a8
drm/i915/selftests: Pretend to be a gfx pci device

Set the class on our mock pci device to GFX. This should be useful for
utilities like intel-iommu that special case gfx devices.

References: https://bugs.freedesktop.org/show_bug.cgi?id=101080
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170518094638.5469-1-chris@chris-wilson.co.uk
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
drivers/gpu/drm/i915/selftests/mock_gem_device.c