From: Andrzej Hajda <andrzej.hajda@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Lucas De Marchi <lucas.demarchi@intel.com>,
Nirmoy Das <nirmoy.das@intel.com>
Subject: [igt-dev] [PATCH i-g-t v2] i915/kms_busy: reduce heartbeat intervals only if neccessary
Date: Thu, 15 Jun 2023 13:55:16 +0200 [thread overview]
Message-ID: <20230615115516.1684584-1-andrzej.hajda@intel.com> (raw)
Reducing heartbeat intervals may downgrade individual engine resets
to full GPU resets. The latter is not desirable, especially
on simulations, which do not support GPU reset. Only tests with
reset flag enabled need reduced hearbeat intervals.
v2: moved timeouts init/restore to fixups of affected tests, to allow
proper work in case test fail
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Signed-off-by: Andrzej Hajda <andrzej.hajda@intel.com>
---
tests/i915/kms_busy.c | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
diff --git a/tests/i915/kms_busy.c b/tests/i915/kms_busy.c
index 20d3058fb6f..3b838cb8005 100644
--- a/tests/i915/kms_busy.c
+++ b/tests/i915/kms_busy.c
@@ -390,8 +390,6 @@ igt_main_args("e", NULL, help_str, opt_handler, NULL)
{ "extended-modeset-hang-oldfb-with-reset", true, false, true },
{ "extended-modeset-hang-newfb-with-reset", true, true, true },
};
- struct gem_engine_properties saved_gpu_timeouts[GEM_MAX_ENGINES];
- int num_engines;
int fd;
igt_fixture {
@@ -409,8 +407,6 @@ igt_main_args("e", NULL, help_str, opt_handler, NULL)
for_each_pipe(&display, pipe)
active_pipes[last_pipe++] = pipe;
last_pipe--;
-
- gpu_engines_init_timeouts(fd, ARRAY_SIZE(saved_gpu_timeouts), &num_engines, saved_gpu_timeouts);
}
/* XXX Extend to cover atomic rendering tests to all planes + legacy */
@@ -470,8 +466,16 @@ igt_main_args("e", NULL, help_str, opt_handler, NULL)
}
for (i = 0; i < sizeof(tests) / sizeof (tests[0]); i++) {
- igt_fixture
+ struct gem_engine_properties saved_gpu_timeouts[GEM_MAX_ENGINES];
+ int num_engines;
+
+ igt_fixture {
igt_require(display.is_atomic);
+ if (tests[i].reset)
+ gpu_engines_init_timeouts(display.drm_fd,
+ ARRAY_SIZE(saved_gpu_timeouts),
+ &num_engines, saved_gpu_timeouts);
+ }
igt_subtest_with_dynamic(tests[i].name) {
igt_hang_t hang;
@@ -501,10 +505,14 @@ igt_main_args("e", NULL, help_str, opt_handler, NULL)
igt_disallow_hang(display.drm_fd, hang);
}
+
+ igt_fixture {
+ if (tests[i].reset)
+ gpu_engines_restore_timeouts(display.drm_fd, num_engines, saved_gpu_timeouts);
+ }
}
igt_fixture {
- gpu_engines_restore_timeouts(fd, num_engines, saved_gpu_timeouts);
igt_display_fini(&display);
close(display.drm_fd);
}
--
2.34.1
next reply other threads:[~2023-06-15 11:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-15 11:55 Andrzej Hajda [this message]
2023-06-15 15:45 ` [igt-dev] ✓ Fi.CI.BAT: success for i915/kms_busy: reduce heartbeat intervals only if neccessary (rev2) Patchwork
2023-06-15 19:27 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2023-06-16 9:29 ` [igt-dev] [PATCH i-g-t v2] i915/kms_busy: reduce heartbeat intervals only if neccessary Kamil Konieczny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230615115516.1684584-1-andrzej.hajda@intel.com \
--to=andrzej.hajda@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=lucas.demarchi@intel.com \
--cc=nirmoy.das@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox