[PATCH 16/21] drm/i915/selftests: reduce num_guc_ids
Matthew Auld
matthew.auld at intel.com
Mon Jan 24 15:52:40 UTC 2022
If we have small BAR for LMEM, then the number of contexts that we can
keep pinned at any one time is limited, since each requires some CPU
visible memory for the context image and ring. Empirically, reducing
num_guc_ids down to 64 seems to be small enough with 256M BAR on DG1.
Signed-off-by: Matthew Auld <matthew.auld at intel.com>
---
drivers/gpu/drm/i915/gt/uc/selftest_guc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/gt/uc/selftest_guc.c b/drivers/gpu/drm/i915/gt/uc/selftest_guc.c
index 7ec2587aea52..9e1496d1f991 100644
--- a/drivers/gpu/drm/i915/gt/uc/selftest_guc.c
+++ b/drivers/gpu/drm/i915/gt/uc/selftest_guc.c
@@ -157,7 +157,7 @@ static int intel_guc_steal_guc_ids(void *arg)
wakeref = intel_runtime_pm_get(gt->uncore->rpm);
engine = intel_selftest_find_any_engine(gt);
sv = guc->submission_state.num_guc_ids;
- guc->submission_state.num_guc_ids = 4096;
+ guc->submission_state.num_guc_ids = 64;
/* Create spinner to block requests in below loop */
ce[context_index] = intel_context_create(engine);
--
2.31.1
More information about the Intel-gfx-trybot
mailing list