From: Imre Deak <imre.deak@intel.com>
To: Suraj Kandpal <suraj.kandpal@intel.com>
Cc: intel-xe@lists.freedesktop.org, intel-gfx@lists.freedesktop.org,
ankit.k.nautiyal@intel.com, uma.shankar@intel.com
Subject: Re: [PATCH 1/2] drm/i915/cx0: Fix SSC enablement in PORT_CLOCK_CTL
Date: Tue, 7 Jan 2025 17:02:47 +0200 [thread overview]
Message-ID: <Z31CF9QeIe7erRqE@ideak-desk.fi.intel.com> (raw)
In-Reply-To: <20250106040821.251114-2-suraj.kandpal@intel.com>
On Mon, Jan 06, 2025 at 09:38:20AM +0530, Suraj Kandpal wrote:
> SSC for PLL_A is enabled for UHBR10 or UHBR20 regardless of the
> need for SSC. This means the ssc_enabled variable had no say
> to determine enablement of SSC on PLL A.
I don't see the above in the spec. It suggests that SSC should be
enabled on PLL A for MFD, but in any case SSC can only be enabled
if the sink supports SSC, as indicated by dpll_hw_state.cx0pll.ssc_enabled.
> Bspec: 64568, 74165, 74489, 74491
> Fixes: 237e7be0bf57 ("drm/i915/mtl: For DP2.0 10G and 20G rates use MPLLA")
> Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_cx0_phy.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_cx0_phy.c b/drivers/gpu/drm/i915/display/intel_cx0_phy.c
> index e768dc6a15b3..3fd959a2773c 100644
> --- a/drivers/gpu/drm/i915/display/intel_cx0_phy.c
> +++ b/drivers/gpu/drm/i915/display/intel_cx0_phy.c
> @@ -2747,7 +2747,7 @@ static void intel_program_port_clock_ctl(struct intel_encoder *encoder,
> /* TODO: HDMI FRL */
> /* DP2.0 10G and 20G rates enable MPLLA*/
> if (crtc_state->port_clock == 1000000 || crtc_state->port_clock == 2000000)
> - val |= crtc_state->dpll_hw_state.cx0pll.ssc_enabled ? XELPDP_SSC_ENABLE_PLLA : 0;
> + val |= XELPDP_SSC_ENABLE_PLLA;
> else
> val |= crtc_state->dpll_hw_state.cx0pll.ssc_enabled ? XELPDP_SSC_ENABLE_PLLB : 0;
>
> --
> 2.34.1
>
next prev parent reply other threads:[~2025-01-07 15:02 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-06 4:08 [PATCH 0/2] SSC enablement in port clock programming Suraj Kandpal
2025-01-06 4:08 ` [PATCH 1/2] drm/i915/cx0: Fix SSC enablement in PORT_CLOCK_CTL Suraj Kandpal
2025-01-07 15:02 ` Imre Deak [this message]
2025-01-08 6:04 ` Kandpal, Suraj
2025-01-08 17:05 ` Imre Deak
2025-01-16 5:14 ` Kandpal, Suraj
2025-01-06 4:08 ` [PATCH 2/2] drm/i915/cx0: Set ssc_enabled for c20 too Suraj Kandpal
2025-01-06 4:37 ` ✓ CI.Patch_applied: success for SSC enablement in port clock programming Patchwork
2025-01-06 4:37 ` ✓ CI.checkpatch: " Patchwork
2025-01-06 4:38 ` ✓ CI.KUnit: " Patchwork
2025-01-06 4:57 ` ✓ CI.Build: " Patchwork
2025-01-06 4:59 ` ✓ CI.Hooks: " Patchwork
2025-01-06 5:01 ` ✓ CI.checksparse: " Patchwork
2025-01-06 5:28 ` ✓ Xe.CI.BAT: " Patchwork
2025-01-06 7:41 ` ✗ Xe.CI.Full: failure " 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=Z31CF9QeIe7erRqE@ideak-desk.fi.intel.com \
--to=imre.deak@intel.com \
--cc=ankit.k.nautiyal@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=suraj.kandpal@intel.com \
--cc=uma.shankar@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