mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Liviu Nicoara <lnicoara@thinkoid.org>
To: Thorsten Leemhuis <regressions@leemhuis.info>,
	Burke Cates <burke.cates@gmail.com>,
	Simona Vetter <simona@ffwll.ch>, David Airlie <airlied@gmail.com>
Cc: Abhinav Kumar <abhinav.kumar@linux.dev>,
	Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>,
	robin.clark@oss.qualcomm.com,
	Yongxing Mou <yongxing.mou@oss.qualcomm.com>,
	Jessica Zhang <jesszhan0024@gmail.com>,
	Sean Paul <sean@poorly.run>,
	Marijn Suijten <marijn.suijten@somainline.org>,
	Dmitry Baryshkov <lumag@kernel.org>, Xilin Wu <sophon@radxa.com>,
	Gianfranco Mariotti <gianfranco.mariotti94@gmail.com>,
	linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org,
	freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org,
	regressions@lists.linux.dev
Subject: Re: [PATCH] drm/msm/dp: skip the link teardown after a failed enable
Date: Wed,  2 Dec 2026 08:12:30 -0500	[thread overview]
Message-ID: <20261202131230.26167-1-lnicoara@thinkoid.org> (raw)
In-Reply-To: <dadc3866-dbad-4990-accf-c662a5bcf529@leemhuis.info>

On Tue, 1 Dec 2026 12:18:17 +0100, Thorsten Leemhuis wrote:
> Given that we are close to -rc6 (which is where Linus wants all known
> regressions to be fixed), I'm considering to ask Linus to pull this
> straight from the list.
>
> Dave, Sima: Or do you want to pick this up for this weeks -fixes pull?

Another data point for taking this in -rc6: this regression also hits
organically on mainline-supported X1E80100 (Dell XPS 13 9345, external
USB-C DisplayPort monitor) running v7.4-rc5 with unmodified
drivers/gpu/drm/msm (the only local patches are board DTS additions for
audio, camera, and thermal zones).

When the external DP attach fails to enable ctrl_link (-16) during
.atomic_enable() and the connector is then turned off, the unguarded
msm_dp_ctrl_off_link() in msm_dp_display_unprepare() takes an EL1
synchronous external abort and the machine resets seconds later:

  [   21.612656] disp_cc_mdss_dptx1_link_clk status stuck at 'off'
  [   21.612665] WARNING: drivers/clk/qcom/clk-branch.c:87 at clk_branch_toggle+0x180/0x1a4, CPU#5: tyler/1463
  [   21.612999] Failed to enable clk 'ctrl_link': -16
  [   21.613001] [drm:msm_dp_ctrl_enable_mainlink_clocks [msm]] *ERROR* Unable to start link clocks. ret=-16
  [   21.613013] [drm:msm_dp_display_atomic_enable [msm]] *ERROR* Failed link training (rc=-16)
  [   21.613024] [drm:msm_dp_display_atomic_enable [msm]] *ERROR* DP display prepare failed, rc=-16
  [   22.134699] Internal error: synchronous external abort: 0000000096001610 [#1]  SMP
  [   22.134828] CPU: 5 UID: 1001 PID: 1463 Comm: tyler Tainted: G   M    W           7.4.0-rc5-1.1-aarch64-ARTIX #1 PREEMPT(full)
  [   22.134832] Hardware name: Dell Inc. XPS 13 9345/0W8JXV, BIOS 2.15.0 08/31/2026
  [   22.134836] pc : msm_dp_ctrl_off_link+0x4c/0xa8 [msm]
  [   22.134853] lr : msm_dp_ctrl_off_link+0x44/0xa8 [msm]
  [   22.134888] Call trace:
  [   22.134889]  msm_dp_ctrl_off_link+0x4c/0xa8 [msm] (P)
  [   22.134901]  msm_dp_display_atomic_post_disable+0x64/0x190 [msm]
  [   22.134911]  msm_dp_bridge_atomic_post_disable+0x18/0x40 [msm]
  [   22.134921]  drm_atomic_bridge_chain_post_disable+0x88/0x260 [drm]
  [   22.134934]  drm_atomic_helper_commit_encoder_bridge_post_disable+0xf8/0x19c [drm_kms_helper]
  [   22.134940]  drm_atomic_helper_commit_modeset_disables+0x2c/0x80 [drm_kms_helper]
  [   22.134944]  msm_atomic_commit_tail+0x198/0x590 [msm]
  [   22.135032] Code: 9129c063 97f5b6aa f9401a61 d503201f (b9400020)

From the disassembly of msm_dp_ctrl_off_link+0x4c, the faulting
instruction (b9400020: ldr w0, [x1]) is the first REG_DP_MAINLINK_CTRL
read inside msm_dp_ctrl_mainlink_disable(), before DP_SW_RESET is
reached.

On v7.2.14 (before 1bda647ce61b), the same disp_cc_mdss_dptx1_link_clk
-16 failure hit six times in one boot without taking an abort, because
msm_dp_display_disable() returned early on !power_on.

I have not rebuilt with Burke's patch yet, so no Tested-by, just
confirming the regression is live on mainline X1E80100.

Thanks,
Liviu

      reply	other threads:[~2026-12-02 13:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-04  7:20 Burke Cates
2026-11-23 11:00 ` Thorsten Leemhuis
2026-11-23 16:25   ` Burke Cates
2026-12-01 11:18     ` Thorsten Leemhuis
2026-12-02 13:12       ` Liviu Nicoara [this message]

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=20261202131230.26167-1-lnicoara@thinkoid.org \
    --to=lnicoara@thinkoid.org \
    --cc=abhinav.kumar@linux.dev \
    --cc=airlied@gmail.com \
    --cc=burke.cates@gmail.com \
    --cc=dmitry.baryshkov@oss.qualcomm.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=freedreno@lists.freedesktop.org \
    --cc=gianfranco.mariotti94@gmail.com \
    --cc=jesszhan0024@gmail.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lumag@kernel.org \
    --cc=marijn.suijten@somainline.org \
    --cc=regressions@leemhuis.info \
    --cc=regressions@lists.linux.dev \
    --cc=robin.clark@oss.qualcomm.com \
    --cc=sean@poorly.run \
    --cc=simona@ffwll.ch \
    --cc=sophon@radxa.com \
    --cc=yongxing.mou@oss.qualcomm.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

all inboxes | Powered by JetHome®