From: "Nautiyal, Ankit K" <ankit.k.nautiyal@intel.com>
To: Suraj Kandpal <suraj.kandpal@intel.com>,
<intel-xe@lists.freedesktop.org>,
<intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH 3/3] drm/i915/ltphy: Provide protection against unsupported modes
Date: Mon, 5 Jan 2026 11:00:12 +0530 [thread overview]
Message-ID: <f0a09d5c-f34a-4af5-9d3d-84a390afb82a@intel.com> (raw)
In-Reply-To: <20251231052315.77828-3-suraj.kandpal@intel.com>
On 12/31/2025 10:53 AM, Suraj Kandpal wrote:
> We need to make sure we return some port clock in case we have
> unsupported LT PHY modes or if we were not able to read the LT PHY state
> for whatever reason and the mode ends up being 0.
>
> Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_lt_phy.c | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_lt_phy.c b/drivers/gpu/drm/i915/display/intel_lt_phy.c
> index cc85818c2b7e..54d1c68cf83a 100644
> --- a/drivers/gpu/drm/i915/display/intel_lt_phy.c
> +++ b/drivers/gpu/drm/i915/display/intel_lt_phy.c
> @@ -31,6 +31,7 @@
> #define INTEL_LT_PHY_BOTH_LANES (INTEL_LT_PHY_LANE1 |\
> INTEL_LT_PHY_LANE0)
> #define MODE_DP 3
> +#define MODE_HDMI_20 4
> #define Q32_TO_INT(x) ((x) >> 32)
> #define Q32_TO_FRAC(x) ((x) & 0xFFFFFFFF)
> #define DCO_MIN_FREQ_MHZ 11850
> @@ -1751,6 +1752,7 @@ int
> intel_lt_phy_calc_port_clock(struct intel_encoder *encoder,
> const struct intel_crtc_state *crtc_state)
> {
> + struct intel_display *display = to_intel_display(encoder);
> int clk;
> const struct intel_lt_phy_pll_state *lt_state =
> &crtc_state->dpll_hw_state.ltpll;
> @@ -1768,8 +1770,11 @@ intel_lt_phy_calc_port_clock(struct intel_encoder *encoder,
> rate = REG_FIELD_GET8(LT_PHY_VDR_RATE_ENCODING_MASK,
> lt_state->config[0]);
> clk = intel_lt_phy_get_dp_clock(rate);
> - } else {
> + } else if (mode == MODE_HDMI_20) {
> clk = intel_lt_phy_calc_hdmi_port_clock(crtc_state);
> + } else {
> + drm_WARN_ON(display->drm, "Unsupported LT PHY Mode!\n");
> + clk = xe3plpd_lt_hdmi_252.clock;
> }
>
> return clk;
next prev parent reply other threads:[~2026-01-05 5:30 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-31 5:23 [PATCH 1/3] drm/i915/ltphy: Remove state verification for LT PHY fields Suraj Kandpal
2025-12-31 5:23 ` [PATCH 2/3] drm/i915/ltphy: Compare only certain fields in state verify function Suraj Kandpal
2026-01-05 5:29 ` Nautiyal, Ankit K
2025-12-31 5:23 ` [PATCH 3/3] drm/i915/ltphy: Provide protection against unsupported modes Suraj Kandpal
2026-01-05 5:30 ` Nautiyal, Ankit K [this message]
2025-12-31 5:30 ` ✓ CI.KUnit: success for series starting with [1/3] drm/i915/ltphy: Remove state verification for LT PHY fields Patchwork
2025-12-31 6:10 ` ✓ Xe.CI.BAT: " Patchwork
2025-12-31 7:10 ` ✓ Xe.CI.Full: " Patchwork
2026-01-05 5:27 ` [PATCH 1/3] " Nautiyal, Ankit K
2026-01-05 5:57 ` [PATCH v2 " Suraj Kandpal
2026-01-05 5:57 ` [PATCH v2 2/3] drm/i915/ltphy: Compare only certain fields in state verify function Suraj Kandpal
2026-01-05 5:57 ` [PATCH v2 3/3] drm/i915/ltphy: Provide protection against unsupported modes Suraj Kandpal
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=f0a09d5c-f34a-4af5-9d3d-84a390afb82a@intel.com \
--to=ankit.k.nautiyal@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=suraj.kandpal@intel.com \
/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