projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac0a73f
)
drm/i915/selftests: Pretend to be a gfx pci device
author
Chris Wilson
<
[email protected]
>
Thu, 18 May 2017 09:46:15 +0000
(10:46 +0100)
committer
Chris Wilson
<
[email protected]
>
Thu, 18 May 2017 14:43:49 +0000
(15:43 +0100)
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 <
[email protected]
>
Link:
http://patchwork.freedesktop.org/patch/msgid/
[email protected]
Reviewed-by: Tvrtko Ursulin <
[email protected]
>
drivers/gpu/drm/i915/selftests/mock_gem_device.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/selftests/mock_gem_device.c
b/drivers/gpu/drm/i915/selftests/mock_gem_device.c
index 3d0e313497d08f33126d792798655a289b95571e..4af00000ce9147873fc2a632b4e39bee2232c8a1 100644
(file)
--- a/
drivers/gpu/drm/i915/selftests/mock_gem_device.c
+++ b/
drivers/gpu/drm/i915/selftests/mock_gem_device.c
@@
-121,6
+121,7
@@
struct drm_i915_private *mock_gem_device(void)
goto err;
device_initialize(&pdev->dev);
+ pdev->class = PCI_BASE_CLASS_DISPLAY << 16;
pdev->dev.release = release_dev;
dev_set_name(&pdev->dev, "mock");
dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));