]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd94f3e11ccb5115e4da6ac0313a13238eb36834c
treed64753740853980b6843ff9b26b2520e937f642f
parenta4ab33c5cd03da3fa4b665fea9be1269de6c27e5
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