Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] i915/drm_fdinfo: Quiesce GPU prior to running some tests
@ 2024-10-02 21:20 Umesh Nerlige Ramappa
  2024-10-02 22:32 ` ✓ CI.xeBAT: success for " Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Umesh Nerlige Ramappa @ 2024-10-02 21:20 UTC (permalink / raw)
  To: igt-dev, Ashutosh Dixit

Sometimes render is still running a remnant of a prior workload when we
expect it to be idle. This throws some tests off. Ensure that these
tests wait for a quiescent state prior to checking if render is idle.

Closes: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12179
Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
---
 tests/intel/drm_fdinfo.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/intel/drm_fdinfo.c b/tests/intel/drm_fdinfo.c
index 45d17aaaa..b66ac9e1b 100644
--- a/tests/intel/drm_fdinfo.c
+++ b/tests/intel/drm_fdinfo.c
@@ -219,6 +219,8 @@ single(int gem_fd, const intel_ctx_t *ctx,
 	int spin_fd;
 	uint64_t ahnd;
 
+	gem_quiescent_gpu(gem_fd);
+
 	if (flags & TEST_BUSY)
 		igt_require(!gem_using_guc_submission(gem_fd));
 
@@ -374,6 +376,8 @@ most_busy_check_all(int gem_fd, const intel_ctx_t *ctx,
 	memset(busy_class, 0, sizeof(busy_class));
 	memset(tval, 0, sizeof(tval));
 
+	gem_quiescent_gpu(gem_fd);
+
 	for_each_ctx_engine(gem_fd, ctx, e_) {
 		if (e->class == e_->class && e->instance == e_->instance) {
 			continue;
-- 
2.38.1


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

end of thread, other threads:[~2024-10-14 21:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-02 21:20 [PATCH i-g-t] i915/drm_fdinfo: Quiesce GPU prior to running some tests Umesh Nerlige Ramappa
2024-10-02 22:32 ` ✓ CI.xeBAT: success for " Patchwork
2024-10-02 22:39 ` ✓ Fi.CI.BAT: " Patchwork
2024-10-02 23:19 ` [PATCH i-g-t] " Dixit, Ashutosh
2024-10-03 22:04   ` Umesh Nerlige Ramappa
2024-10-14 14:47   ` Kamil Konieczny
2024-10-02 23:56 ` ✗ CI.xeFULL: failure for " Patchwork
2024-10-14 21:48   ` Umesh Nerlige Ramappa
2024-10-04  4:54 ` ✗ Fi.CI.IGT: " Patchwork
2024-10-14 21:47   ` Umesh Nerlige Ramappa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox