From: Imre Deak <imre.deak@intel.com>
To: Jani Nikula <jani.nikula@intel.com>
Cc: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Subject: Re: [PATCH v3 12/16] drm/i915/ddi: enable ACT handling for 128b/132b SST
Date: Fri, 3 Jan 2025 16:39:17 +0200 [thread overview]
Message-ID: <Z3f2lT_X49w7lSv6@ideak-desk.fi.intel.com> (raw)
In-Reply-To: <b0226471f9445d988917cee49dbbd93a1493f3c7.1735912293.git.jani.nikula@intel.com>
On Fri, Jan 03, 2025 at 03:52:35PM +0200, Jani Nikula wrote:
> Add ACT handling for 128b/132b SST enable/disable.
>
> This is preparation for enabling 128b/132b SST. This path is not
> reachable yet.
>
> v2:
> - Check for !is_hdmi (Imre)
> - Add disable sequence (Imre)
>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_ddi.c | 29 ++++++++++++++++++++++++
> 1 file changed, 29 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_ddi.c b/drivers/gpu/drm/i915/display/intel_ddi.c
> index cdfb7caadcee..541e89cfc347 100644
> --- a/drivers/gpu/drm/i915/display/intel_ddi.c
> +++ b/drivers/gpu/drm/i915/display/intel_ddi.c
> @@ -3199,7 +3199,9 @@ static void intel_ddi_post_disable_hdmi_or_sst(struct intel_atomic_state *state,
> {
> struct intel_display *display = to_intel_display(encoder);
> struct drm_i915_private *dev_priv = to_i915(encoder->base.dev);
> + struct intel_dp *intel_dp = enc_to_intel_dp(encoder);
The above could've been scoped the same way as in intel_ddi_enable(),
but the patch looks ok:
Reviewed-by: Imre Deak <imre.deak@intel.com>
> struct intel_crtc *pipe_crtc;
> + bool is_hdmi = intel_crtc_has_type(old_crtc_state, INTEL_OUTPUT_HDMI);
> int i;
>
> for_each_pipe_crtc_modeset_disable(display, pipe_crtc, old_crtc_state, i) {
> @@ -3211,6 +3213,20 @@ static void intel_ddi_post_disable_hdmi_or_sst(struct intel_atomic_state *state,
>
> intel_disable_transcoder(old_crtc_state);
>
> + /* 128b/132b SST */
> + if (!is_hdmi && intel_dp_is_uhbr(old_crtc_state)) {
> + /* VCPID 1, start slot 0 for 128b/132b, clear */
> + drm_dp_dpcd_write_payload(&intel_dp->aux, 1, 0, 0);
> +
> + intel_ddi_clear_act_sent(encoder, old_crtc_state);
> +
> + intel_de_rmw(display, TRANS_DDI_FUNC_CTL(display, old_crtc_state->cpu_transcoder),
> + TRANS_DDI_DP_VC_PAYLOAD_ALLOC, 0);
> +
> + intel_ddi_wait_for_act_sent(encoder, old_crtc_state);
> + drm_dp_dpcd_poll_act_handled(&intel_dp->aux, 0);
> + }
> +
> intel_ddi_disable_transcoder_func(old_crtc_state);
>
> for_each_pipe_crtc_modeset_disable(display, pipe_crtc, old_crtc_state, i) {
> @@ -3493,6 +3509,19 @@ static void intel_ddi_enable(struct intel_atomic_state *state,
> /* Enable/Disable DP2.0 SDP split config before transcoder */
> intel_audio_sdp_split_update(crtc_state);
>
> + /* 128b/132b SST */
> + if (!is_hdmi && intel_dp_is_uhbr(crtc_state)) {
> + struct intel_dp *intel_dp = enc_to_intel_dp(encoder);
> +
> + intel_ddi_clear_act_sent(encoder, crtc_state);
> +
> + intel_de_rmw(display, TRANS_DDI_FUNC_CTL(display, cpu_transcoder), 0,
> + TRANS_DDI_DP_VC_PAYLOAD_ALLOC);
> +
> + intel_ddi_wait_for_act_sent(encoder, crtc_state);
> + drm_dp_dpcd_poll_act_handled(&intel_dp->aux, 0);
> + }
> +
> intel_enable_transcoder(crtc_state);
>
> intel_ddi_wait_for_fec_status(encoder, crtc_state, true);
> --
> 2.39.5
>
next prev parent reply other threads:[~2025-01-03 14:38 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-03 13:52 [PATCH v3 00/16] drm/i915/dp: 128b/132b uncompressed SST Jani Nikula
2025-01-03 13:52 ` [PATCH v3 01/16] drm/mst: remove mgr parameter and debug logging from drm_dp_get_vc_payload_bw() Jani Nikula
2025-01-07 9:55 ` Jani Nikula
2025-01-07 15:14 ` Maxime Ripard
2025-01-07 17:05 ` Jani Nikula
2025-01-09 22:06 ` Lyude Paul
2025-01-10 8:54 ` Jani Nikula
2025-01-03 13:52 ` [PATCH v3 02/16] drm/i915/mst: drop connector parameter from intel_dp_mst_bw_overhead() Jani Nikula
2025-01-03 13:52 ` [PATCH v3 03/16] drm/i915/mst: drop connector parameter from intel_dp_mst_compute_m_n() Jani Nikula
2025-01-03 13:52 ` [PATCH v3 04/16] drm/i915/mst: change return value of mst_stream_find_vcpi_slots_for_bpp() Jani Nikula
2025-01-03 13:52 ` [PATCH v3 05/16] drm/i915/mst: remove crtc_state->pbn Jani Nikula
2025-01-03 13:52 ` [PATCH v3 06/16] drm/i915/mst: split out a helper for figuring out the TU Jani Nikula
2025-01-03 13:52 ` [PATCH v3 07/16] drm/i915/mst: adapt intel_dp_mtp_tu_compute_config() for 128b/132b SST Jani Nikula
2025-01-03 13:52 ` [PATCH v3 08/16] drm/i915/ddi: enable 128b/132b TRANS_DDI_FUNC_CTL mode for UHBR SST Jani Nikula
2025-01-03 13:52 ` [PATCH v3 09/16] drm/i915/ddi: 128b/132b SST also needs DP_TP_CTL_MODE_MST Jani Nikula
2025-01-03 13:52 ` [PATCH v3 10/16] drm/i915/ddi: write payload for 128b/132b SST Jani Nikula
2025-01-03 14:23 ` Imre Deak
2025-01-07 9:54 ` [PATCH] " Jani Nikula
2025-01-03 13:52 ` [PATCH v3 11/16] drm/i915/ddi: initialize 128b/132b SST DP2 VFREQ registers Jani Nikula
2025-01-03 14:23 ` Imre Deak
2025-01-03 13:52 ` [PATCH v3 12/16] drm/i915/ddi: enable ACT handling for 128b/132b SST Jani Nikula
2025-01-03 14:39 ` Imre Deak [this message]
2025-01-03 13:52 ` [PATCH v3 13/16] drm/i915/ddi: start distinguishing 128b/132b SST and MST at state readout Jani Nikula
2025-01-03 13:52 ` [PATCH v3 14/16] drm/i915/ddi: handle 128b/132b SST in intel_ddi_read_func_ctl() Jani Nikula
2025-01-03 13:52 ` [PATCH v3 15/16] drm/i915/ddi: disable trancoder port select for 128b/132b SST Jani Nikula
2025-01-03 13:52 ` [PATCH v3 16/16] drm/i915/dp: compute config for 128b/132b SST w/o DSC Jani Nikula
2025-01-03 15:25 ` ✓ CI.Patch_applied: success for drm/i915/dp: 128b/132b uncompressed SST (rev4) Patchwork
2025-01-03 15:25 ` ✗ CI.checkpatch: warning " Patchwork
2025-01-03 15:27 ` ✓ CI.KUnit: success " Patchwork
2025-01-03 15:45 ` ✓ CI.Build: " Patchwork
2025-01-03 15:47 ` ✓ CI.Hooks: " Patchwork
2025-01-03 15:49 ` ✗ CI.checksparse: warning " Patchwork
2025-01-03 16:14 ` ✓ Xe.CI.BAT: success " Patchwork
2025-01-03 23:32 ` ✗ Xe.CI.Full: failure " Patchwork
2025-01-07 11:07 ` ✓ CI.Patch_applied: success for drm/i915/dp: 128b/132b uncompressed SST (rev5) Patchwork
2025-01-07 11:08 ` ✗ CI.checkpatch: warning " Patchwork
2025-01-07 11:09 ` ✓ CI.KUnit: success " Patchwork
2025-01-07 11:27 ` ✓ CI.Build: " Patchwork
2025-01-07 11:29 ` ✓ CI.Hooks: " Patchwork
2025-01-07 11:31 ` ✗ CI.checksparse: warning " Patchwork
2025-01-07 11:57 ` ✓ Xe.CI.BAT: success " Patchwork
2025-01-07 17:05 ` [PATCH v3 00/16] drm/i915/dp: 128b/132b uncompressed SST Jani Nikula
2025-01-08 15:43 ` ✗ Xe.CI.Full: failure for drm/i915/dp: 128b/132b uncompressed SST (rev5) 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=Z3f2lT_X49w7lSv6@ideak-desk.fi.intel.com \
--to=imre.deak@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=jani.nikula@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