Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Suraj Kandpal" <suraj.kandpal@intel.com>,
	intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Subject: Re: [PATCH 14/15] drm/i915/display: Use pipelock on PTL
Date: Thu, 26 Nov 2026 06:54:25 +0000	[thread overview]
Message-ID: <sashiko-outbox-234916@kernel.org> (raw)
In-Reply-To: <20261126063459.863698-15-suraj.kandpal@intel.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] drm/i915/cx0: NULL dereference in intel_cx0pll_update_ssc() on
  HDMI-only ports
--

commit a9ddc45c910d4e151b59c9dfac29d2580fc18bce
Author: Suraj Kandpal <suraj.kandpal@intel.com>

drm/i915/display: Use pipelock on PTL

This commit enables pipelock on display version 30 (PTL) and disables SSC in
the CX0 PLL state for connectors where pipelock is possible.

> diff --git a/drivers/gpu/drm/i915/display/intel_cx0_phy.c b/drivers/gpu/drm/i915/display/intel_cx0_phy.c
> index d13bb3b2750a8..31324ac469655 100644
> --- a/drivers/gpu/drm/i915/display/intel_cx0_phy.c
> +++ b/drivers/gpu/drm/i915/display/intel_cx0_phy.c
[ ... ]
> @@ -1992,6 +1993,10 @@ static void intel_cx0pll_update_ssc(struct intel_encoder *encoder,
>  	if (is_dp) {
>  		if (intel_panel_use_ssc(display)) {
>  			struct intel_dp *intel_dp = enc_to_intel_dp(encoder);
> +
> +			if (intel_pipelock_connector_possible(intel_dp->attached_connector))
> +				return;
> +
>  			pll_state->ssc_enabled =
>  				(intel_dp->dpcd[DP_MAX_DOWNSPREAD] & DP_MAX_DOWNSPREAD_0_5);
>  		}

[Severity: High]
Can intel_dp->attached_connector be NULL here, causing a NULL pointer
dereference in intel_pipelock_connector_possible()?

For an HDMI-only DDI port (init_dp == false in intel_ddi_init()),
dig_port->dp.attached_connector is left NULL.  On display version 30,
intel_cx0_pll_power_save_wa() runs during probe, resume, and reset on every
disabled C10 PHY digital port without checking if the port initialized DP,
and calls intel_c10pll_calc_state_from_table(..., is_dp = true) ->
intel_cx0pll_update_ssc().  intel_pipelock_connector_possible() then
unconditionally dereferences connector via to_intel_display(connector) and
connector->base.has_tile.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261126063459.863698-1-suraj.kandpal@intel.com?part=14

  reply	other threads:[~2026-11-26  6:54 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26  6:34 [PATCH 00/15] drm/i915/display: Sync tiled displays with pipelock Suraj Kandpal
2026-11-26  6:34 ` [PATCH 01/15] drm/i915/display: Rename port sync master/slave to primary/secondary Suraj Kandpal
2026-11-26  6:43   ` sashiko-bot
2026-11-26  6:34 ` [PATCH 02/15] drm/i915/display: Add HAS_PIPELOCK() Suraj Kandpal
2026-11-26  6:34 ` [PATCH 03/15] drm/i915/display: Add pipelock bits to TRANS_DDI_FUNC_CTL2 Suraj Kandpal
2026-11-26  8:45   ` Jani Nikula
2026-11-26  6:34 ` [PATCH 04/15] drm/i915/ddi: Program pipelock in TRANS_DDI_FUNC_CTL2 Suraj Kandpal
2026-11-26  6:34 ` [PATCH 05/15] drm/i915/ddi: Don't hold the DP link in idle with pipelock Suraj Kandpal
2026-11-26  6:34 ` [PATCH 06/15] drm/i915/display: Enable the pipelock primary before its secondaries Suraj Kandpal
2026-11-26  6:34 ` [PATCH 07/15] drm/i915/display: Read out and verify pipelock state Suraj Kandpal
2026-11-26  6:34 ` [PATCH 08/15] drm/i915/pipelock: Keep SSC, PSR and CMRR off on pipelock tiles Suraj Kandpal
2026-11-26  8:52   ` Jani Nikula
2026-11-26  9:14     ` Kandpal, Suraj
2026-11-26  6:34 ` [PATCH 09/15] drm/i915/pipelock: Compute pipelock groups for DP tiled displays Suraj Kandpal
2026-11-26  8:56   ` Jani Nikula
2026-11-26  9:16     ` Kandpal, Suraj
2026-11-26  6:34 ` [PATCH 10/15] drm/i915/vrr: Split out setting the guardband Suraj Kandpal
2026-11-26  6:44   ` sashiko-bot
2026-11-26  8:58   ` Jani Nikula
2026-11-26  9:17     ` Kandpal, Suraj
2026-11-26  6:34 ` [PATCH 11/15] drm/i915/pipelock: Equalize the guardband across a pipelock group Suraj Kandpal
2026-11-26  6:49   ` sashiko-bot
2026-11-26  6:34 ` [PATCH 12/15] drm/i915/dp: Apply link training fallback to the whole tile group Suraj Kandpal
2026-11-26  7:06   ` sashiko-bot
2026-11-26  6:34 ` [PATCH 13/15] drm/i915/display: Show transcoder sync state in i915_display_info Suraj Kandpal
2026-11-26  6:34 ` [PATCH 14/15] drm/i915/display: Use pipelock on PTL Suraj Kandpal
2026-11-26  6:54   ` sashiko-bot [this message]
2026-11-26  6:34 ` [PATCH 15/15] drm/i915/ddi: Disable port sync " Suraj Kandpal
2026-11-26  6:42 ` ✗ CI.checkpatch: warning for drm/i915/display: Sync tiled displays with pipelock Patchwork
2026-11-26  6:45 ` ✓ CI.KUnit: success " Patchwork
2026-11-26  7:26 ` ✓ Xe.CI.BAT: " Patchwork
2026-11-26 12:54 ` ✓ Xe.CI.FULL: " Patchwork

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=sashiko-outbox-234916@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --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