[PATCH] dump
Matthew Auld
matthew.auld at intel.com
Fri Mar 11 17:51:32 UTC 2022
---
.../gpu/drm/i915/display/intel_plane_initial.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/drivers/gpu/drm/i915/display/intel_plane_initial.c b/drivers/gpu/drm/i915/display/intel_plane_initial.c
index e207d12286b5..44e89b7322f1 100644
--- a/drivers/gpu/drm/i915/display/intel_plane_initial.c
+++ b/drivers/gpu/drm/i915/display/intel_plane_initial.c
@@ -50,6 +50,7 @@ initial_plane_vma(struct drm_i915_private *i915,
struct drm_i915_gem_object *obj;
struct i915_vma *vma;
u32 base, size;
+ u64 __iomem *gte;
if (!mem || plane_config->size == 0)
return NULL;
@@ -95,6 +96,15 @@ initial_plane_vma(struct drm_i915_private *i915,
goto err_obj;
}
+ if (GRAPHICS_VER(i915) >= 8) {
+ gte = (u64 __iomem *)(to_gt(i915)->ggtt->gsm);
+ gte += base / I915_GTT_PAGE_SIZE;
+
+ pr_err("base pte=%llx", readq(gte));
+ pr_err("base pte=%llx", readq(gte+1));
+ pr_err("base pte=%llx", readq(gte+2));
+ }
+
vma = i915_vma_instance(obj, &to_gt(i915)->ggtt->vm, NULL);
if (IS_ERR(vma))
goto err_obj;
@@ -102,6 +112,12 @@ initial_plane_vma(struct drm_i915_private *i915,
if (i915_ggtt_pin(vma, NULL, 0, PIN_MAPPABLE | PIN_OFFSET_FIXED | base))
goto err_obj;
+ if (GRAPHICS_VER(i915) >= 8) {
+ pr_err("base pte=%llx", readq(gte));
+ pr_err("base pte=%llx", readq(gte+1));
+ pr_err("base pte=%llx", readq(gte+2));
+ }
+
if (i915_gem_object_is_tiled(obj) &&
!i915_vma_is_map_and_fenceable(vma))
goto err_obj;
--
2.34.1
More information about the Intel-gfx-trybot
mailing list