From: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
To: Tim Surber <me@timsurber.de>, Heiko Stuebner <heiko@sntech.de>
Cc: Chaoyi Chen <chaoyi.chen@rock-chips.com>,
Sandy Huang <hjc@rock-chips.com>, Andy Yan <andyshrk@163.com>,
Andy Yan <andy.yan@rock-chips.com>,
Sebastian Reichel <sebastian.reichel@collabora.com>,
Daniel Stone <daniel@fooishbar.org>,
Philipp Zabel <p.zabel@pengutronix.de>,
Nicolas Frattaroli <nicolas.frattaroli@collabora.com>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
kernel@collabora.com, dri-devel@lists.freedesktop.org,
linux-rockchip@lists.infradead.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] drm/rockchip: vop2: Reset the AXI master after detaching the IOMMU
Date: Thu, 3 Dec 2026 00:22:22 +0200 [thread overview]
Message-ID: <0dd82ce5-5b0a-45a9-aff5-cee64b31429d@collabora.com> (raw)
In-Reply-To: <20261202200037.309413-1-me@timsurber.de>
On 12/2/26 10:00 PM, Tim Surber wrote:
> Asserting the AXI reset in vop2_disable(), while the IOMMU is still
> attached, can hang RK3588 hard when buffers are mapped into or unmapped
> from the VOP's IOMMU domain at the same time, e.g. when a KMS client
> exits and fbcon takes the display back.
>
> Assert the reset after the IOMMU is detached instead. Mapping and
> unmapping buffers then no longer goes through the VOP's IOMMU, so it
> cannot race with the reset.
>
> Fixes: 67a391e50271 ("drm/rockchip: vop2: Reset AXI and DCLK to improve robustness")
We should also add:
Suggested-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
> Signed-off-by: Tim Surber <me@timsurber.de>
> ---
> Changes in v2:
> - Keep the reset in vop2_disable(), after the IOMMU is detached, instead
> of moving it to vop2_enable() (Chaoyi Chen)
> - Link to v1: https://lore.kernel.org/linux-rockchip/20261125204511.2867433-1-me@timsurber.de/
>
[...]
As previously discussed, I confirm that this solves the problem, and I also
didn't notice any regressions during manual testing. In the meantime, I
verified again on my ROCK 5B board with over 1K cycles of the reproducer script.
Reviewed-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Tested-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
prev parent reply other threads:[~2026-12-02 22:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 20:00 [PATCH v2] drm/rockchip: vop2: Reset the AXI master after detaching the IOMMU Tim Surber
2026-12-02 22:22 ` Cristian Ciocaltea [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=0dd82ce5-5b0a-45a9-aff5-cee64b31429d@collabora.com \
--to=cristian.ciocaltea@collabora.com \
--cc=airlied@gmail.com \
--cc=andy.yan@rock-chips.com \
--cc=andyshrk@163.com \
--cc=chaoyi.chen@rock-chips.com \
--cc=daniel@fooishbar.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=heiko@sntech.de \
--cc=hjc@rock-chips.com \
--cc=kernel@collabora.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=me@timsurber.de \
--cc=mripard@kernel.org \
--cc=nicolas.frattaroli@collabora.com \
--cc=p.zabel@pengutronix.de \
--cc=sebastian.reichel@collabora.com \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
/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