From: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
To: Tim Surber <me@timsurber.de>, Chaoyi Chen <chaoyi.chen@rock-chips.com>
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 01:29:00 +0200 [thread overview]
Message-ID: <669ff367-8d5e-4105-8efb-348dc322310b@collabora.com> (raw)
In-Reply-To: <20261201224240.28157-1-me@timsurber.de>
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.
Cristian
WARNING: multiple messages have this Message-ID (diff)
From: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
To: Tim Surber <me@timsurber.de>, Chaoyi Chen <chaoyi.chen@rock-chips.com>
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 01:29:00 +0200 [thread overview]
Message-ID: <669ff367-8d5e-4105-8efb-348dc322310b@collabora.com> (raw)
In-Reply-To: <20261201224240.28157-1-me@timsurber.de>
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.
Cristian
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
next prev parent reply other threads:[~2026-12-01 23:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 20:45 [PATCH] drm/rockchip: vop2: Reset the AXI master in vop2_enable() Tim Surber
2026-11-25 20:45 ` Tim Surber
2026-11-26 2:15 ` Chaoyi Chen
2026-11-26 2:15 ` Chaoyi Chen
2026-12-01 22:42 ` Tim Surber
2026-12-01 22:42 ` Tim Surber
2026-12-01 23:29 ` Cristian Ciocaltea [this message]
2026-12-01 23:29 ` Cristian Ciocaltea
2026-12-02 1:39 ` Chaoyi Chen
2026-12-02 1:39 ` Chaoyi Chen
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=669ff367-8d5e-4105-8efb-348dc322310b@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.