[PATCH 18/22] drm/i915/selftests: nerf steal guc ids
Matthew Auld
matthew.auld at intel.com
Tue Jan 18 19:35:11 UTC 2022
Pinning loads and loads of contexts, all of which need a bit of mappable
lmem, and no way to evict them.
Also the error unwind here is all kinds of busted.
Signed-off-by: Matthew Auld <matthew.auld at intel.com>
---
drivers/gpu/drm/i915/gt/uc/selftest_guc.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/gpu/drm/i915/gt/uc/selftest_guc.c b/drivers/gpu/drm/i915/gt/uc/selftest_guc.c
index d3327b802b76..e7e31f4c1e4e 100644
--- a/drivers/gpu/drm/i915/gt/uc/selftest_guc.c
+++ b/drivers/gpu/drm/i915/gt/uc/selftest_guc.c
@@ -147,6 +147,13 @@ static int intel_guc_steal_guc_ids(void *arg)
struct igt_spinner spin;
struct i915_request *spin_rq = NULL, *rq, *last = NULL;
int number_guc_id_stolen = guc->number_guc_id_stolen;
+ struct intel_memory_region *lmem;
+
+ lmem = gt->i915->mm.regions[INTEL_REGION_LMEM];
+ if (lmem && lmem->io_size < lmem->total) {
+ pr_err("No shot..\n");
+ return 0;
+ }
ce = kzalloc(sizeof(*ce) * GUC_MAX_LRC_DESCRIPTORS, GFP_KERNEL);
if (!ce) {
--
2.31.1
More information about the Intel-gfx-trybot
mailing list