From: Ryan Brue <ryanbrue.dev@gmail.com>
To: zi-hao.huang@mediatek.com
Cc: airlied@gmail.com, angelogioacchino.delregno@collabora.com,
chunkuang.hu@kernel.org, ck.hu@mediatek.com,
dri-devel@lists.freedesktop.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org,
matthias.bgg@gmail.com, p.zabel@pengutronix.de,
shaoming.chen@mediatek.com, simona@ffwll.ch
Subject: Re: [PATCH v2] drm/mediatek: dsi: Don't let a signal cut the IRQ wait short
Date: Mon, 23 Nov 2026 18:31:36 -0600 [thread overview]
Message-ID: <fe208c0c-cea4-4e56-8283-e242ac1cd2ae@gmail.com> (raw)
In-Reply-To: <20261119033634.1844084-1-zi-hao.huang@mediatek.com>
On Thu, Nov 19, 2026 at 11:36:34AM +0800, Zi-Hao Huang wrote:
> I'm not sure the trigger is specific to our downstream driver.
I hit the same lockup on MT8173 (Amazon Fire HD 10 2017) with the
upstream driver. v7.4-rc4, whose only DSI change is "drm/mediatek: dsi:
force command mode in mtk_dsi_poweron()" from the mediatek tree, and the
mainline NT51021 panel driver, which also sets prepare_prev_first and
sends display off and enter sleep from .unprepare.
The trigger for me was suspend under Plasma. logind's PrepareForSleep
makes KWin turn the display off, and the session is frozen while KWin's
commit is still in the panel's unprepare. The freezer's fake signal ends
the interruptible wait with -ERESTARTSYS, mtk_dsi_host_send_cmd() takes
that for success, and the late CMD_DONE lands in mtk_dsi_irq()'s
DSI_BUSY loop. After the watchdog reset, MT8173's last-PC latch showed
CPU0 at mtk_dsi_irq+0x84, the DSI_INTSTA read in that loop.
With only mediatek-drm.ko changed, suspending through logind with a GPU
benchmark running: without the patch 5 of 6 suspends reset the board
(about one in three without the load); with this v2, 0 of 10, with no
DSI IRQ or vblank timeouts, and the panel's power-down still takes 270ms.
The wake_up() hunk matters. With only the wait changed, every command
waited out its 2s timeout and the panel's power-down took 10.4s.
Tested-by: Ryan Brue <ryanbrue.dev@gmail.com> # MT8173, NT51021
I actually had a similar fix ready to go, and found your patch, so thank
you :)
Best regards,
Ryan Brue
next parent reply other threads:[~2026-11-24 0:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20261119033634.1844084-1-zi-hao.huang@mediatek.com>
2026-11-24 0:31 ` Ryan Brue [this message]
2026-11-18 9:33 [PATCH v2] drm/mediatek: dsi: Don't let a signal cut the IRQ wait short Zi-Hao Huang via B4 Relay
2026-11-18 12:32 ` AngeloGioacchino Del Regno
2026-11-19 1:28 ` CK Hu (胡俊光)
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=fe208c0c-cea4-4e56-8283-e242ac1cd2ae@gmail.com \
--to=ryanbrue.dev@gmail.com \
--cc=airlied@gmail.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=chunkuang.hu@kernel.org \
--cc=ck.hu@mediatek.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=p.zabel@pengutronix.de \
--cc=shaoming.chen@mediatek.com \
--cc=simona@ffwll.ch \
--cc=zi-hao.huang@mediatek.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