From: Jani Nikula <jani.nikula@linux.intel.com>
To: Ankit Nautiyal <ankit.k.nautiyal@intel.com>,
intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH v3 2/2] drm/i915/display: Prune Interlace modes for Display >=12
Date: Thu, 05 Jan 2023 14:49:22 +0200 [thread overview]
Message-ID: <878rihw3hp.fsf@intel.com> (raw)
In-Reply-To: <20230105124125.1129653-1-ankit.k.nautiyal@intel.com>
On Thu, 05 Jan 2023, Ankit Nautiyal <ankit.k.nautiyal@intel.com> wrote:
> Defeature Display Interlace support.
> Support for interlace modes is removed from Gen 12 onwards.
> Pruning the interlace modes for HDMI for Display >=12.
> Bspec: 50490
>
> v2: Add check for both DP and HDMI. (Ville)
> Get rid of redundant check for interlace mode in modevalid. (Ville)
>
> v3: Simplify the condition to avoid interlace modes. (Jani)
>
> Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_dp.c | 4 ++--
> drivers/gpu/drm/i915/display/intel_hdmi.c | 8 +++++++-
> 2 files changed, 9 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> index a9ebc73d3b87..c03a11173dc8 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> @@ -2092,7 +2092,7 @@ intel_dp_compute_config(struct intel_encoder *encoder,
> if (adjusted_mode->flags & DRM_MODE_FLAG_DBLSCAN)
> return -EINVAL;
>
> - if (HAS_GMCH(dev_priv) &&
> + if (!connector->base.interlace_allowed &&
> adjusted_mode->flags & DRM_MODE_FLAG_INTERLACE)
> return -EINVAL;
>
> @@ -5435,7 +5435,7 @@ intel_dp_init_connector(struct intel_digital_port *dig_port,
> drm_connector_init(dev, connector, &intel_dp_connector_funcs, type);
> drm_connector_helper_add(connector, &intel_dp_connector_helper_funcs);
>
> - if (!HAS_GMCH(dev_priv))
> + if (!HAS_GMCH(dev_priv) && DISPLAY_VER(dev_priv) < 12)
> connector->interlace_allowed = true;
>
> intel_connector->polled = DRM_CONNECTOR_POLL_HPD;
> diff --git a/drivers/gpu/drm/i915/display/intel_hdmi.c b/drivers/gpu/drm/i915/display/intel_hdmi.c
> index b4323303baba..6a2ee342eab5 100644
> --- a/drivers/gpu/drm/i915/display/intel_hdmi.c
> +++ b/drivers/gpu/drm/i915/display/intel_hdmi.c
> @@ -2255,6 +2255,10 @@ int intel_hdmi_compute_config(struct intel_encoder *encoder,
> if (adjusted_mode->flags & DRM_MODE_FLAG_DBLSCAN)
> return -EINVAL;
>
> + if (!connector->interlace_allowed &&
> + adjusted_mode->flags & DRM_MODE_FLAG_INTERLACE)
> + return -EINVAL;
> +
> pipe_config->output_format = INTEL_OUTPUT_FORMAT_RGB;
> pipe_config->has_hdmi_sink =
> intel_has_hdmi_sink(intel_hdmi, conn_state) &&
> @@ -2956,7 +2960,9 @@ void intel_hdmi_init_connector(struct intel_digital_port *dig_port,
> ddc);
> drm_connector_helper_add(connector, &intel_hdmi_connector_helper_funcs);
>
> - connector->interlace_allowed = true;
> + if (DISPLAY_VER(dev_priv) < 12)
> + connector->interlace_allowed = true;
> +
> connector->stereo_allowed = true;
>
> if (DISPLAY_VER(dev_priv) >= 10)
--
Jani Nikula, Intel Open Source Graphics Center
next prev parent reply other threads:[~2023-01-05 12:49 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-17 14:30 [Intel-gfx] [PATCH 0/2] Defeature Interlace modes for Display >= 12 Ankit Nautiyal
2022-10-17 14:30 ` [Intel-gfx] [PATCH 1/2] drm/i915/display: Drop check for doublescan mode in modevalid Ankit Nautiyal
2023-01-05 11:47 ` Jani Nikula
2022-10-17 14:30 ` [Intel-gfx] [PATCH 2/2] drm/i915/display: Prune Interlace modes for Display >=12 Ankit Nautiyal
2023-01-05 11:44 ` Jani Nikula
2023-01-05 12:41 ` [Intel-gfx] [PATCH v3 " Ankit Nautiyal
2023-01-05 12:49 ` Jani Nikula [this message]
2022-10-17 15:01 ` [Intel-gfx] ✓ Fi.CI.BAT: success for Defeature Interlace modes for Display >= 12 Patchwork
2022-10-17 21:22 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
2022-10-19 7:12 ` [Intel-gfx] ✓ Fi.CI.BAT: success for Defeature Interlace modes for Display >= 12 (rev2) Patchwork
2022-10-19 14:10 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
2023-01-05 17:03 ` [Intel-gfx] ✗ Fi.CI.BAT: failure for Defeature Interlace modes for Display >= 12 (rev3) Patchwork
2023-01-06 4:03 ` Nautiyal, Ankit K
2023-01-06 15:36 ` [Intel-gfx] ✓ Fi.CI.BAT: success for Defeature Interlace modes for Display >= 12 (rev4) Patchwork
2023-01-06 18:17 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork
2023-01-12 7:44 ` [Intel-gfx] [PATCH 0/2] Defeature Interlace modes for Display >= 12 Shankar, Uma
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878rihw3hp.fsf@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=ankit.k.nautiyal@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.