[PATCH i-g-t] tests/intel/kms_pm_lpsp: Add display version check on external panel
B, Jeevan
jeevan.b at intel.com
Thu Oct 3 12:29:25 UTC 2024
LGTM
Reviewed-by: Jeevan B <jeevan.b at intel.com>
> -----Original Message-----
> From: igt-dev <igt-dev-bounces at lists.freedesktop.org> On Behalf Of
> Mohammed Thasleem
> Sent: Monday, September 30, 2024 11:49 PM
> To: igt-dev at lists.freedesktop.org
> Cc: Thasleem, Mohammed <mohammed.thasleem at intel.com>
> Subject: [PATCH i-g-t] tests/intel/kms_pm_lpsp: Add display version check
> on external panel
>
> LPSP for external panel support from Gen13+ onwards.
> Skip the test if only external panel connected on less then gen13 platforms.
>
> Signed-off-by: Mohammed Thasleem <mohammed.thasleem at intel.com>
> ---
> tests/intel/kms_pm_lpsp.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/tests/intel/kms_pm_lpsp.c b/tests/intel/kms_pm_lpsp.c index
> f9ac508fb..889da42de 100644
> --- a/tests/intel/kms_pm_lpsp.c
> +++ b/tests/intel/kms_pm_lpsp.c
> @@ -227,6 +227,8 @@ igt_main
> enum pipe pipe;
>
> for_each_connected_output(display, output) {
> + drmModeConnectorPtr connector = output-
> >config.connector;
> +
> if (!i915_output_is_lpsp_capable(data.drm_fd,
> output))
> continue;
>
> @@ -238,6 +240,10 @@ igt_main
> if (pipe != PIPE_A)
> continue;
>
> + if (connector->connector_type !=
> DRM_MODE_CONNECTOR_eDP)
> +
> igt_require_f(intel_display_ver(data.devid) >= 13,
> + "LPSP support on external
> panel from Gen13+ platform\n");
> +
> data.output = output;
> data.pipe = pipe;
>
> --
> 2.25.1
More information about the igt-dev
mailing list