[PATCH i-g-t] tests/xe_pm: Ensure we open as primary for setting display off
Rodrigo Vivi
rodrigo.vivi at intel.com
Wed Aug 20 00:21:05 UTC 2025
We need to ensure that no one else is using the display
so we can turn it off and guarantee it will drop all the
references.
Cc: Martin Monroy <martin.monroy at intel.com>
Cc: Karthik Poosa <karthik.poosa at intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
---
tests/intel/xe_pm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/intel/xe_pm.c b/tests/intel/xe_pm.c
index 46b441c4d..a3a26f62a 100644
--- a/tests/intel/xe_pm.c
+++ b/tests/intel/xe_pm.c
@@ -145,7 +145,7 @@ static void vram_d3cold_threshold_restore(int sig)
{
int fd, sysfs_fd;
- fd = drm_open_driver(DRIVER_XE);
+ fd = drm_open_driver_master(DRIVER_XE);
sysfs_fd = igt_sysfs_open(fd);
set_vram_d3cold_threshold(sysfs_fd, orig_threshold);
--
2.50.1
More information about the igt-dev
mailing list