[PATCH 7/7] [DEBUG] WTF what is faulting?!
Robert Beckett
bob.beckett at collabora.com
Fri Apr 29 18:15:43 UTC 2022
Signed-off-by: Robert Beckett <bob.beckett at collabora.com>
---
drivers/gpu/drm/i915/intel_region_ttm.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/gpu/drm/i915/intel_region_ttm.c b/drivers/gpu/drm/i915/intel_region_ttm.c
index 4450b4897d59..165d80c9c0d7 100644
--- a/drivers/gpu/drm/i915/intel_region_ttm.c
+++ b/drivers/gpu/drm/i915/intel_region_ttm.c
@@ -219,6 +219,13 @@ intel_region_ttm_resource_alloc(struct intel_memory_region *mem,
struct ttm_resource *res;
int ret;
+ //if (!mem || !mem->i915 || !man || !man->func || !man->func->alloc)
+ pr_info("BOB_DEBUG: %s(): mem=%px mem->region_private=%px mem->i915=%px man=%px man->func=%px man->func->alloc=%pS\n",
+ __func__, mem, mem ? mem->region_private : NULL,
+ mem ? mem->i915 : NULL,
+ man, man ? man->func : NULL,
+ man ? (man->func ? man->func->alloc : NULL) : NULL);
+
if (flags & I915_BO_ALLOC_CONTIGUOUS)
place.flags |= TTM_PL_FLAG_CONTIGUOUS;
if (start || end) {
@@ -237,6 +244,7 @@ intel_region_ttm_resource_alloc(struct intel_memory_region *mem,
mock_bo.bdev = &mem->i915->bdev;
ret = man->func->alloc(man, &mock_bo, &place, &res);
+ pr_info("BOB_DEBUG: %s(): ret=%d res=%px\n", __func__, ret, res);
if (ret == -ENOSPC)
ret = -ENXIO;
if (!ret)
--
2.25.1
More information about the Intel-gfx-trybot
mailing list