From: Burke Cates <burke.cates@gmail.com>
To: Liviu Nicoara <lnicoara@thinkoid.org>,
Thorsten Leemhuis <regressions@leemhuis.info>,
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: Fri, 4 Dec 2026 00:58:15 -0800 [thread overview]
Message-ID: <564c699b-394e-4111-b603-004be2e415e9@gmail.com> (raw)
In-Reply-To: <20261202131230.26167-1-lnicoara@thinkoid.org>
On Wed, 2 Dec 2026 08:12:30 -0500, Liviu Nicoara wrote:
> 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:
Thanks for the report. That failure is in msm_dp_ctrl_on_link(), so
.atomic_enable() returns before power_on is set, and with the patch
msm_dp_display_unprepare() skips msm_dp_ctrl_off_link() in that case.
I expect it to cover your crash.
> 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.
That answers the question my notes left open: the A16 resets without
a log, so I could not tell which access faults. The commit message
only mentions the write to REG_DP_MAINLINK_CTRL; if a v2 is wanted,
I will say there that the read already faults.
> I have not rebuilt with Burke's patch yet, so no Tested-by, just
> confirming the regression is live on mainline X1E80100.
A Tested-by would help if you find the time.
One update to my earlier reply: Gianfranco Mariotti's v3, posted on
2026-12-02, now covers this path too. Its 08/11 adds dp->prepared and
returns early from msm_dp_display_unprepare() when the link was never
prepared:
https://lore.kernel.org/all/20261202234640.9379-9-gianfranco.mariotti94@gmail.com/
That patch is part of an 11-patch series based on msm-next, and
sashiko-bot raised an open eDP PHY question on it, so for -rc I
think the small fix is the safer choice; 08/11 would then need a
trivial rebase. The patch still applies to current mainline and
drm-fixes.
An AI coding assistant helped check the trees and draft this reply.
Thanks,
Burke
next prev parent reply other threads:[~2026-12-04 8:58 UTC|newest]
Thread overview: 7+ 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
2026-12-04 8:58 ` Burke Cates [this message]
2026-12-05 14:41 ` Liviu Nicoara
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=564c699b-394e-4111-b603-004be2e415e9@gmail.com \
--to=burke.cates@gmail.com \
--cc=abhinav.kumar@linux.dev \
--cc=airlied@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=lnicoara@thinkoid.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®