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:
250f8c8
)
drm/i915/gtt: Disable read-only support under GVT
author
Chris Wilson
<
[email protected]
>
Thu, 12 Jul 2018 18:53:12 +0000
(19:53 +0100)
committer
Chris Wilson
<
[email protected]
>
Fri, 13 Jul 2018 15:13:30 +0000
(16:13 +0100)
GVT is not propagating the PTE bits, and is always setting the
read-write bit, thus breaking read-only support.
Signed-off-by: Chris Wilson <
[email protected]
>
Cc: Zhenyu Wang <
[email protected]
>
Cc: Jon Bloomfield <
[email protected]
>
Cc: Joonas Lahtinen <
[email protected]
>
Cc: Matthew Auld <
[email protected]
>
Reviewed-by: Jon Bloomfield <
[email protected]
>
Link:
https://patchwork.freedesktop.org/patch/msgid/
[email protected]
drivers/gpu/drm/i915/i915_gem_gtt.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/i915_gem_gtt.c
b/drivers/gpu/drm/i915/i915_gem_gtt.c
index 734b67f7853c9de85358bf38005e7e62d263ca21..86a9618bab24832fb36bdd862ba9cd51337d660e 100644
(file)
--- a/
drivers/gpu/drm/i915/i915_gem_gtt.c
+++ b/
drivers/gpu/drm/i915/i915_gem_gtt.c
@@
-1662,8
+1662,12
@@
static struct i915_hw_ppgtt *gen8_ppgtt_create(struct drm_i915_private *i915)
1ULL << 48 :
1ULL << 32;
- /* From bdw, there is support for read-only pages in the PPGTT */
- ppgtt->vm.has_read_only = true;
+ /*
+ * From bdw, there is support for read-only pages in the PPGTT.
+ *
+ * XXX GVT is not honouring the lack of RW in the PTE bits.
+ */
+ ppgtt->vm.has_read_only = !intel_vgpu_active(i915);
i915_address_space_init(&ppgtt->vm, i915);