[PATCH i-g-t 3/8] tests/intel/kms_pwrite_crc: Test cleanup

B, Jeevan jeevan.b at intel.com
Fri Jun 14 08:46:38 UTC 2024


Reviewed-by: Jeevan B <jeevan.b at intel.com>

> -----Original Message-----
> From: igt-dev <igt-dev-bounces at lists.freedesktop.org> On Behalf Of B, Jeevan
> Sent: Wednesday, June 12, 2024 5:01 PM
> To: Modem, Bhanuprakash <bhanuprakash.modem at intel.com>; igt-
> dev at lists.freedesktop.org
> Cc: Modem, Bhanuprakash <bhanuprakash.modem at intel.com>
> Subject: RE: [PATCH i-g-t 3/8] tests/intel/kms_pwrite_crc: Test cleanup
> 
> LGTM.
> 
> ACK RB already present.
> 
> > -----Original Message-----
> > From: igt-dev <igt-dev-bounces at lists.freedesktop.org> On Behalf Of
> > Bhanuprakash Modem
> > Sent: Tuesday, June 11, 2024 10:24 AM
> > To: igt-dev at lists.freedesktop.org
> > Cc: Modem, Bhanuprakash <bhanuprakash.modem at intel.com>
> > Subject: [PATCH i-g-t 3/8] tests/intel/kms_pwrite_crc: Test cleanup
> >
> > Make sure the below points in IGT cleanup:
> >
> >  - Sanitize the state before starting the subtest.
> >  - Clear the states before exiting the subtest.
> >  - Update existing libdrm APIs with IGT kms APIs.
> >  - Other misc (Ex: update deprecated APIs/macros/enums, FB leaks
> > etc..)
> >
> > V2:
> >  - Drop igt_fixture form igt_simple_main
> >
> > Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
> > ---
> >  tests/intel/kms_pwrite_crc.c | 11 +++++------
> >  1 file changed, 5 insertions(+), 6 deletions(-)
> >
> > diff --git a/tests/intel/kms_pwrite_crc.c
> > b/tests/intel/kms_pwrite_crc.c index 12add5da6..338c92c3a 100644
> > --- a/tests/intel/kms_pwrite_crc.c
> > +++ b/tests/intel/kms_pwrite_crc.c
> > @@ -125,7 +125,6 @@ static void prepare_crtc(data_t *data)
> >  	igt_output_t *output = data->output;
> >  	drmModeModeInfo *mode;
> >
> > -	igt_display_reset(display);
> >  	/* select the pipe we want to use */
> >  	igt_output_set_pipe(output, data->pipe);
> >
> > @@ -161,7 +160,7 @@ static void cleanup_crtc(data_t *data)
> >
> >  	igt_plane_set_fb(data->primary, NULL);
> >
> > -	igt_output_set_pipe(output, PIPE_ANY);
> > +	igt_output_set_pipe(output, PIPE_NONE);
> >  	igt_display_commit(display);
> >
> >  	igt_remove_fb(data->drm_fd, &data->fb[0]); @@ -196,14 +195,14 @@
> > static data_t data;  igt_simple_main  {
> >  	data.drm_fd = drm_open_driver_master(DRIVER_INTEL);
> > -
> > -	data.devid = intel_get_drm_devid(data.drm_fd);
> > -
> >  	kmstest_set_vt_graphics_mode();
> >
> > +	igt_display_require(&data.display, data.drm_fd);
> > +	igt_display_require_output(&data.display);
> >  	igt_require_pipe_crc(data.drm_fd);
> >
> > -	igt_display_require(&data.display, data.drm_fd);
> > +	data.devid = intel_get_drm_devid(data.drm_fd);
> > +	data.pipe_crc = NULL;
> >
> >  	run_test(&data);
> >
> > --
> > 2.43.2



More information about the igt-dev mailing list