From: Imre Deak <imre.deak@intel.com>
To: Mika Kahola <mika.kahola@intel.com>
Cc: <intel-gfx@lists.freedesktop.org>, <intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH v2] drm/i915/display: Select AUX path before power-up
Date: Fri, 4 Dec 2026 18:09:02 +0200 [thread overview]
Message-ID: <axLlnt52Q8St9UJ2@ideak-desk.lan> (raw)
In-Reply-To: <20261204142043.1049728-1-mika.kahola@intel.com>
On Fri, Dec 04, 2026 at 02:20:43PM +0000, Mika Kahola wrote:
> Select TBT/native AUX before requesting power on display version 20+.
> Clear it on AUX power-well disable. This patch updates the sequence
> according to a recent BSpec change to avoid following error.
>
> [drm] Timeout waiting for PHY G AUX channel power to be up
>
> The timeout was only occurring during the first AUX power-up, since the
> AUX transfer left the TBT_IO bit on, so all subsequent power-ups would see
> that bit set.
>
> BSpec: 65247, 68967
>
> v2: Combine AUX selector and power request in one RMW (Imre)
>
> Signed-off-by: Mika Kahola <mika.kahola@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
> ---
> .../i915/display/intel_display_power_well.c | 27 +++++++++++++------
> 1 file changed, 19 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_display_power_well.c b/drivers/gpu/drm/i915/display/intel_display_power_well.c
> index cc91eafb30f8..044b819cf1ef 100644
> --- a/drivers/gpu/drm/i915/display/intel_display_power_well.c
> +++ b/drivers/gpu/drm/i915/display/intel_display_power_well.c
> @@ -1941,11 +1941,20 @@ static void xelpdp_aux_power_well_enable(struct intel_display *display,
> struct i915_power_well *power_well)
> {
> enum aux_ch aux_ch = i915_power_well_instance(power_well)->xelpdp.aux_ch;
> + struct intel_digital_port *dig_port = aux_ch_to_digital_port(display, aux_ch);
> enum phy phy = icl_aux_pw_to_phy(display, power_well);
> + u32 clear_bits = XELPDP_DP_AUX_CH_CTL_POWER_REQUEST |
> + DP_AUX_CH_CTL_SEND_BUSY;
> + u32 set_bits = XELPDP_DP_AUX_CH_CTL_POWER_REQUEST;
>
> if (icl_aux_pw_is_tc_phy(display, power_well))
> - icl_tc_port_assert_ref_held(display, power_well,
> - aux_ch_to_digital_port(display, aux_ch));
> + icl_tc_port_assert_ref_held(display, power_well, dig_port);
> +
> + if (DISPLAY_VER(display) >= 20) {
> + clear_bits |= DP_AUX_CH_CTL_TBT_IO;
> + if (dig_port && intel_tc_port_in_tbt_alt_mode(dig_port))
> + set_bits |= DP_AUX_CH_CTL_TBT_IO;
> + }
>
> /*
> * This is the same register the AUX engine is driven through, so
> @@ -1954,9 +1963,7 @@ static void xelpdp_aux_power_well_enable(struct intel_display *display,
> * and trigger the transaction again.
> */
> intel_de_rmw(display, XELPDP_DP_AUX_CH_CTL(display, aux_ch),
> - XELPDP_DP_AUX_CH_CTL_POWER_REQUEST |
> - DP_AUX_CH_CTL_SEND_BUSY,
> - XELPDP_DP_AUX_CH_CTL_POWER_REQUEST);
> + clear_bits, set_bits);
>
> if (HAS_LT_PHY(display)) {
> if (intel_de_wait_for_set_ms(display, XELPDP_DP_AUX_CH_CTL(display, aux_ch),
> @@ -1980,12 +1987,16 @@ static void xelpdp_aux_power_well_disable(struct intel_display *display,
> {
> enum aux_ch aux_ch = i915_power_well_instance(power_well)->xelpdp.aux_ch;
> enum phy phy = icl_aux_pw_to_phy(display, power_well);
> + u32 clear_bits = XELPDP_DP_AUX_CH_CTL_POWER_REQUEST |
> + DP_AUX_CH_CTL_SEND_BUSY;
> + u32 set_bits = 0;
> +
> + if (DISPLAY_VER(display) >= 20)
> + clear_bits |= DP_AUX_CH_CTL_TBT_IO;
>
> /* don't write Send Busy back as 1, see the enable path */
> intel_de_rmw(display, XELPDP_DP_AUX_CH_CTL(display, aux_ch),
> - XELPDP_DP_AUX_CH_CTL_POWER_REQUEST |
> - DP_AUX_CH_CTL_SEND_BUSY,
> - 0);
> + clear_bits, set_bits);
>
> if (HAS_LT_PHY(display)) {
> if (intel_de_wait_for_clear_ms(display, XELPDP_DP_AUX_CH_CTL(display, aux_ch),
> --
> 2.43.0
>
next prev parent reply other threads:[~2026-12-04 16:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 14:20 [PATCH v2] drm/i915/display: Select AUX path before power-up Mika Kahola
2026-12-04 14:37 ` ✓ CI.KUnit: success for drm/i915/display: Select AUX path before power-up (rev2) Patchwork
2026-12-04 14:52 ` [PATCH v2] drm/i915/display: Select AUX path before power-up sashiko-bot
2026-12-04 15:25 ` ✓ i915.CI.BAT: success for drm/i915/display: Select AUX path before power-up (rev2) Patchwork
2026-12-04 16:09 ` Imre Deak [this message]
2026-12-05 2:58 ` ✗ i915.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=axLlnt52Q8St9UJ2@ideak-desk.lan \
--to=imre.deak@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=mika.kahola@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 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.