[PATCH i-g-t v2] tests/intel/kms_dirtyfb: Add logs to skips
B, Jeevan
jeevan.b at intel.com
Mon Jan 6 04:17:43 UTC 2025
> -----Original Message-----
> From: B, Jeevan
> Sent: Monday, January 6, 2025 9:46 AM
> To: Samala, Pranay <pranay.samala at intel.com>; igt-
> dev at lists.freedesktop.org
> Cc: B S, Karthik <Karthik.B.S at intel.com>; Lattannavar, Sameer
> <sameer.lattannavar at intel.com>
> Subject: RE: [PATCH i-g-t v2] tests/intel/kms_dirtyfb: Add logs to skips
>
> LGTM.
>
> Reviewed-by: Jeevan B <jeevan.b at intel.com>
>
> > -----Original Message-----
> > From: Samala, Pranay <pranay.samala at intel.com>
> > Sent: Monday, January 6, 2025 9:29 AM
> > To: igt-dev at lists.freedesktop.org
> > Cc: B S, Karthik <karthik.b.s at intel.com>; B, Jeevan
> > <jeevan.b at intel.com>; Lattannavar, Sameer
> > <sameer.lattannavar at intel.com>; Samala, Pranay
> > <pranay.samala at intel.com>
> > Subject: [PATCH i-g-t v2] tests/intel/kms_dirtyfb: Add logs to skips
> >
> > Having some logs for test failures & skips would make debugging much
> easier.
Add v2: changes before merging !!
> >
> > Signed-off-by: Pranay Samala <pranay.samala at intel.com>
> > ---
> > tests/intel/kms_dirtyfb.c | 37 ++++++++++++++++++++++++++++---------
> > 1 file changed, 28 insertions(+), 9 deletions(-)
> >
> > diff --git a/tests/intel/kms_dirtyfb.c b/tests/intel/kms_dirtyfb.c
> > index
> > 35df9be3b..4cbd1a2f9 100644
> > --- a/tests/intel/kms_dirtyfb.c
> > +++ b/tests/intel/kms_dirtyfb.c
> > @@ -102,21 +102,40 @@ static bool check_support(data_t *data)
> > case FEATURE_NONE:
> > return true;
> > case FEATURE_FBC:
> > - if (!intel_fbc_supported_on_chipset(data->drm_fd, data-
> > >pipe))
> > + if (!intel_fbc_supported_on_chipset(data->drm_fd, data-
> > >pipe)) {
> > + igt_info("FBC is not supported on this chipset\n");
> > return false;
> > + }
> > +
> > + if (!intel_fbc_plane_size_supported(data->drm_fd,
> > + data->mode->hdisplay,
> > + data->mode->vdisplay)) {
> > + igt_info("Plane size not supported as per FBC size
> > restrictions\n");
> > + return false;
> > + }
> > + return true;
> >
> > - return intel_fbc_plane_size_supported(data->drm_fd,
> > - data->mode->hdisplay,
> > - data->mode->vdisplay);
> > case FEATURE_PSR:
> > if (data->output->config.connector->connector_type !=
> > - DRM_MODE_CONNECTOR_eDP)
> > + DRM_MODE_CONNECTOR_eDP) {
> > + igt_info("Output is not an eDP\n");
> > + return false;
> > + }
> > + if (!psr_sink_support(data->drm_fd, data->debugfs_fd,
> > + PSR_MODE_1, NULL)) {
> > + igt_info("Output doesn't support PSR\n");
> > return false;
> > - return psr_sink_support(data->drm_fd, data->debugfs_fd,
> > - PSR_MODE_1, NULL);
> > + }
> > + return true;
> > +
> > case FEATURE_DRRS:
> > - return intel_is_drrs_supported(data->drm_fd, data->pipe) &&
> > - intel_output_has_drrs(data->drm_fd, data->output);
> > + if (!(intel_is_drrs_supported(data->drm_fd, data->pipe) &&
> > + intel_output_has_drrs(data->drm_fd, data->output))) {
> > + igt_info("Output doesn't support DRRS\n");
> > + return false;
> > + }
> > + return true;
> > +
> > case FEATURE_DEFAULT:
> > return true;
> > default:
> > --
> > 2.34.1
More information about the igt-dev
mailing list