From: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t 1/2] xe_pm: Kill display for PM tests
Date: Tue, 28 Mar 2023 14:40:43 +0200 [thread overview]
Message-ID: <20230328124044.268766-1-maarten.lankhorst@linux.intel.com> (raw)
Display keeps PM alive, do the minimal initialization to disable
display for the PM tests entirely.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
---
tests/xe/xe_pm.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/tests/xe/xe_pm.c b/tests/xe/xe_pm.c
index 23b8246ed..861f6b915 100644
--- a/tests/xe/xe_pm.c
+++ b/tests/xe/xe_pm.c
@@ -365,6 +365,8 @@ igt_main
};
igt_fixture {
+ drmModeResPtr res;
+
memset(&device, 0, sizeof(device));
device.fd_xe = drm_open_driver(DRIVER_XE);
device.pci_xe = igt_device_get_pci_device(device.fd_xe);
@@ -376,6 +378,17 @@ igt_main
xe_for_each_hw_engine(device.fd_xe, hwe)
test_exec(device, hwe, 1, 1, NO_SUSPEND, NO_RPM);
+ /* Kill display, if it exists */
+ res = drmModeGetResources(device.fd_xe);
+ if (res) {
+ igt_display_t display;
+
+ drmModeFreeResources(res);
+ igt_display_require(&display, device.fd_xe);
+ igt_display_commit2(&display, COMMIT_ATOMIC);
+ igt_display_fini(&display);
+ }
+
get_d3cold_allowed(device.pci_xe, d3cold_allowed);
igt_assert(igt_setup_runtime_pm(device.fd_xe));
}
--
2.34.1
next reply other threads:[~2023-03-28 12:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-28 12:40 Maarten Lankhorst [this message]
2023-03-28 12:40 ` [igt-dev] [PATCH i-g-t 2/2] tests/xe: Prepare for widening drm_xe_sync.handle to 64-bits Maarten Lankhorst
2023-04-03 5:58 ` Zbigniew Kempczyński
2023-03-28 13:27 ` [igt-dev] ✗ GitLab.Pipeline: warning for series starting with [i-g-t,1/2] xe_pm: Kill display for PM tests Patchwork
2023-03-28 13:42 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2023-03-28 23:53 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2023-04-03 5:37 ` [igt-dev] [PATCH i-g-t 1/2] " Zbigniew Kempczyński
2023-04-03 14:55 ` Maarten Lankhorst
2023-04-03 18:32 ` [igt-dev] ✗ Fi.CI.BUILD: failure for series starting with [i-g-t,1/2] xe_pm: Kill display for PM tests (rev2) Patchwork
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=20230328124044.268766-1-maarten.lankhorst@linux.intel.com \
--to=maarten.lankhorst@linux.intel.com \
--cc=igt-dev@lists.freedesktop.org \
/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