[PATCH i-g-t] tests/xe_pm: Ensure we open as primary for setting display off

Rodrigo Vivi rodrigo.vivi at intel.com
Fri Aug 22 16:24:01 UTC 2025


On Wed, Aug 20, 2025 at 06:38:02PM +0200, Kamil Konieczny wrote:
> 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.

Thank you for addressing that and merging it.

> 
> > 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