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 2/2] drm/i915/display: Prune Interlace modes for Display >=12
Date: Thu, 05 Jan 2023 13:44:01 +0200 [thread overview]
Message-ID: <87k021w6im.fsf@intel.com> (raw)
In-Reply-To: <20221017143038.1748319-3-ankit.k.nautiyal@intel.com>
On Mon, 17 Oct 2022, 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)
>
> Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@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 1f83ddf13928..3dc197a45f16 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> @@ -2032,7 +2032,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 ((HAS_GMCH(dev_priv) || DISPLAY_VER(dev_priv) >= 12) &&
You could just look at connector->interlace_allowed here to avoid
duplicating the conditions.
> adjusted_mode->flags & DRM_MODE_FLAG_INTERLACE)
> return -EINVAL;
>
> @@ -5412,7 +5412,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 e21deb6ef7fa..05ab0a4f6d39 100644
> --- a/drivers/gpu/drm/i915/display/intel_hdmi.c
> +++ b/drivers/gpu/drm/i915/display/intel_hdmi.c
> @@ -2244,6 +2244,10 @@ int intel_hdmi_compute_config(struct intel_encoder *encoder,
> if (adjusted_mode->flags & DRM_MODE_FLAG_DBLSCAN)
> return -EINVAL;
>
> + if (DISPLAY_VER(dev_priv) >= 12 &&
Same here.
> + 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);
> @@ -2953,7 +2957,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 11:44 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 [this message]
2023-01-05 12:41 ` [Intel-gfx] [PATCH v3 " Ankit Nautiyal
2023-01-05 12:49 ` Jani Nikula
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=87k021w6im.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox