[PATCH i-g-t] tests/xe_pm: Ensure we open as primary for setting display off
Kamil Konieczny
kamil.konieczny at linux.intel.com
Wed Aug 20 16:38:02 UTC 2025
Hi Rodrigo,
On 2025-08-19 at 20:21:05 -0400, Rodrigo Vivi wrote:
please add 'intel/' after 'tests/' so it will be:
[PATCH i-g-t] tests/intel/xe_pm: Ensure we open as primary for setting display off
This could be done at merge time.
> 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);
LGTM
Reviewed-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>
> 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