From: Chaoyi Chen <chaoyi.chen@rock-chips.com>
To: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>,
Tim Surber <me@timsurber.de>
Cc: Heiko Stuebner <heiko@sntech.de>,
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] drm/rockchip: vop2: Reset the AXI master in vop2_enable()
Date: Wed, 2 Dec 2026 09:39:41 +0800 [thread overview]
Message-ID: <551837f7-b500-4bb2-b0ff-419c1ffc4122@rock-chips.com> (raw)
In-Reply-To: <669ff367-8d5e-4105-8efb-348dc322310b@collabora.com>
Hi Tim, Cristian,
On 12/2/2026 7:29 AM, Cristian Ciocaltea wrote:
> Hi,
>
> On 12/2/26 12:42 AM, Tim Surber wrote:
>> Hi Chaoyi,
>>
>> On 11/26/26 03:15, Chaoyi Chen wrote:
>>> On 11/26/2026 4:45 AM, Tim Surber wrote:
>>>> static void vop2_disable(struct vop2 *vop2)
>>>> {
>>>> - vop2_reset_assert_deassert(vop2, vop2->axi_rst);
>>>> -
>>>> rockchip_drm_dma_detach_device(vop2->drm, vop2->dev);
>>>
>>> This looks great. But what happens if you place
>>> vop2_reset_assert_deassert() after rockchip_drm_dma_detach_device()?
>>
>> That works as well.
>>
>> Would you prefer it this way?
>
> I also verified this approach with over 500 cycles of Tim's reproducer script,
> as well as with manual modetests, and didn't notice regressions or visual issues.
>
> I'd prefer it for keeping the reset in the disable path as initially intended
> and leaving the enable sequence untouched.
>
Thank you very much for your testing. This confirms that performing
a reset before IOMMU-related operations may corrupt the IOMMU's own state.
@Tim, could you make the changes as Cristian suggested? Thank you.
--
Best,
Chaoyi
prev parent reply other threads:[~2026-12-02 1:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 20:45 Tim Surber
2026-11-26 2:15 ` Chaoyi Chen
2026-12-01 22:42 ` Tim Surber
2026-12-01 23:29 ` Cristian Ciocaltea
2026-12-02 1:39 ` Chaoyi Chen [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=551837f7-b500-4bb2-b0ff-419c1ffc4122@rock-chips.com \
--to=chaoyi.chen@rock-chips.com \
--cc=airlied@gmail.com \
--cc=andy.yan@rock-chips.com \
--cc=andyshrk@163.com \
--cc=cristian.ciocaltea@collabora.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
all inboxes | Powered by JetHome®