[PATCH 7/7] fixup! drm/i915: Create a dummy object for gen6 ppgtt
Maarten Lankhorst
maarten.lankhorst at linux.intel.com
Fri Jul 23 06:30:56 UTC 2021
---
drivers/gpu/drm/i915/gt/gen6_ppgtt.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/gt/gen6_ppgtt.c b/drivers/gpu/drm/i915/gt/gen6_ppgtt.c
index fa384d42cfb5..4c01ed6be3ed 100644
--- a/drivers/gpu/drm/i915/gt/gen6_ppgtt.c
+++ b/drivers/gpu/drm/i915/gt/gen6_ppgtt.c
@@ -387,11 +387,15 @@ gen6_alloc_top_pd(struct gen6_ppgtt *ppgtt)
struct i915_page_directory *pd;
const struct i915_ggtt_view view = {
.type = I915_GGTT_VIEW_ROTATED, /* prevent fencing */
+ { .remapped = { .plane = { {
+ .src_stride = PAGE_SIZE,
+ .dst_stride = PAGE_SIZE,
+ .width = PAGE_SIZE,
+ .height = I915_PDES,
+ }, }, }, }
};
int err;
- GEM_BUG_ON(I915_PDES);
-
pd = __alloc_pd(I915_PDES);
if (unlikely(!pd))
return ERR_PTR(-ENOMEM);
--
2.31.0
More information about the Intel-gfx-trybot
mailing list