From: Jani Nikula <jani.nikula@intel.com>
To: Imre Deak <imre.deak@intel.com>,
intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915/dp: Fix determining SST/MST mode during MTP TU state computation
Date: Wed, 07 May 2025 18:24:24 +0300 [thread overview]
Message-ID: <87cyckv3yv.fsf@intel.com> (raw)
In-Reply-To: <20250507151953.251846-1-imre.deak@intel.com>
On Wed, 07 May 2025, Imre Deak <imre.deak@intel.com> wrote:
> Determining the SST/MST mode during state computation must be done based
> on the output type stored in the CRTC state, which in turn is set once
> based on the modeset connector's SST vs. MST type and will not change as
> long as the connector is using the CRTC. OTOH the MST mode indicated by
> the given connector's intel_dp::is_mst flag can change independently of
> the above output type, based on what sink is at any moment plugged to
> the connector.
>
> Fix the state computation accordingly.
>
> Cc: Jani Nikula <jani.nikula@intel.com>
> Fixes: f6971d7427c2 ("drm/i915/mst: adapt intel_dp_mtp_tu_compute_config() for 128b/132b SST")
> Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/4607
> Signed-off-by: Imre Deak <imre.deak@intel.com>
Thanks for fixing this.
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_dp_mst.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_dp_mst.c b/drivers/gpu/drm/i915/display/intel_dp_mst.c
> index aeda59f5fa7a4..30f5636d18b7d 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp_mst.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp_mst.c
> @@ -253,7 +253,7 @@ int intel_dp_mtp_tu_compute_config(struct intel_dp *intel_dp,
> to_intel_connector(conn_state->connector);
> const struct drm_display_mode *adjusted_mode =
> &crtc_state->hw.adjusted_mode;
> - bool is_mst = intel_dp->is_mst;
> + bool is_mst = intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DP_MST);
> int bpp_x16, slots = -EINVAL;
> int dsc_slice_count = 0;
> int max_dpt_bpp_x16;
--
Jani Nikula, Intel
next prev parent reply other threads:[~2025-05-07 15:24 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-07 15:19 [PATCH] drm/i915/dp: Fix determining SST/MST mode during MTP TU state computation Imre Deak
2025-05-07 15:24 ` Jani Nikula [this message]
2025-05-07 16:09 ` ✓ CI.Patch_applied: success for " Patchwork
2025-05-07 16:10 ` ✓ CI.checkpatch: " Patchwork
2025-05-07 16:11 ` ✓ CI.KUnit: " Patchwork
2025-05-07 16:19 ` ✓ CI.Build: " Patchwork
2025-05-07 16:22 ` ✓ CI.Hooks: " Patchwork
2025-05-07 16:23 ` ✓ CI.checksparse: " Patchwork
2025-05-07 16:59 ` ✓ Xe.CI.BAT: " Patchwork
2025-05-07 19:01 ` ✓ i915.CI.BAT: " Patchwork
2025-05-07 20:39 ` ✗ i915.CI.Full: failure " Patchwork
2025-05-08 17:57 ` Imre Deak
2025-05-08 12:41 ` ✗ Xe.CI.Full: " Patchwork
2025-05-26 17:18 ` ✗ CI.Patch_applied: " 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=87cyckv3yv.fsf@intel.com \
--to=jani.nikula@intel.com \
--cc=imre.deak@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@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.