All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915/selftests: Use less in contexts steal guc id test
@ 2022-01-22  0:08 ` Matthew Brost
  0 siblings, 0 replies; 9+ messages in thread
From: Matthew Brost @ 2022-01-22  0:08 UTC (permalink / raw)
  To: intel-gfx, dri-devel; +Cc: daniele.ceraolospurio, john.c.harrison

Using more guc_ids in the stealing guc id test has no real benefit.
Tearing down lots of contexts all at the same time takes a bit of time
due to the H2G / G2H ping-pong with the GuC. On some slower platforms
this can cause timeous when flushing the test as the GT isn't idle when
this ping-pong is happening. Reduce the number of guc ids to speed up
the flushing of the test.

Link: https://gitlab.freedesktop.org/drm/intel/-/issues/4821
Signed-off-by: Matthew Brost <matthew.brost@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 d3327b802b761..a115894d5896e 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 = 512;
 
 	/* Create spinner to block requests in below loop */
 	ce[context_index] = intel_context_create(engine);
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-01-25 12:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-22  0:08 [PATCH] drm/i915/selftests: Use less in contexts steal guc id test Matthew Brost
2022-01-22  0:08 ` [Intel-gfx] " Matthew Brost
2022-01-22  3:09 ` [Intel-gfx] ✗ Fi.CI.BAT: failure for " Patchwork
2022-01-22  7:11 ` [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/selftests: Use less in contexts steal guc id test (rev2) Patchwork
2022-01-22  8:21 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
2022-01-23 19:27 ` [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/selftests: Use less in contexts steal guc id test (rev3) Patchwork
2022-01-23 20:37 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
2022-01-25 12:01 ` [PATCH] drm/i915/selftests: Use less in contexts steal guc id test Matthew Auld
2022-01-25 12:01   ` [Intel-gfx] " Matthew Auld

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.