Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Arun Iyengar" <aiyengar1990@gmail.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org,
	media-ci@linuxtv.org
Subject: Re: [PATCH v4 14/18] arm64: dts: rockchip: Add the reset lines of the RK3588 AV1 IOMMU
Date: Sun, 06 Dec 2026 06:21:40 +0000	[thread overview]
Message-ID: <sashiko-outbox-252219@kernel.org> (raw)
In-Reply-To: <20261206-hantro-robust-v4-14-b99d33a5ec6d@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] arm64: dts: rockchip: shared AV1 resets race without EBUSY
  deferral in probe
--

commit 3f6ec41e4fd112ee4560a8e6441836d00641d43d
Author: Arun Iyengar <aiyengar1990@gmail.com>

arm64: dts: rockchip: Add the reset lines of the RK3588 AV1 IOMMU

This commit adds the four shared AV1 reset lines to the RK3588 AV1 IOMMU
device tree node.

> diff --git a/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi
> index 227465d446a29..96898fefe8401 100644
> --- a/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi
> +++ b/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi
> @@ -1491,6 +1491,8 @@ av1d_mmu: iommu@fdca0000 {
>  		clock-names = "core", "iface";
>  		#iommu-cells = <0>;
>  		power-domains = <&power RK3588_PD_AV1>;
> +		resets = <&cru SRST_A_AV1>, <&cru SRST_A_AV1_BIU>,
> +			 <&cru SRST_P_AV1>, <&cru SRST_P_AV1_BIU>;
>  	};
>  
>  	vicap: video-capture@fdce0000 {

[Severity: Medium]
Can sharing these four AV1 resets between av1d_mmu and av1d cause
vsi_iommu_probe() or hantro_probe() to fail permanently with -EBUSY?

Because of_supplier_bindings marks iommus as an optional fw_devlink
supplier, no device link orders av1d behind av1d_mmu by default.  Once
deferred_probe_timeout expires (or is 0), of_dma_configure_id() ignores
-ETIMEDOUT from of_iommu_configure() and lets both probes run together:

CPU0                              CPU1
vsi_iommu_probe()                 hantro_probe()
  reset_control_acquire(resets)
                                    reset_control_acquire(vpu->resets)
                                      <-- returns -EBUSY, probe fails
  reset_control_release(resets)

reset_control_acquire() returns -EBUSY immediately when another consumer
holds the reset, and neither probe retries or returns -EPROBE_DEFER.  A
failed av1d_mmu probe also cannot be rebound via sysfs because
rockchip_vsi_iommu_driver sets suppress_bind_attrs.

Should vsi_iommu_probe() and hantro_probe() convert -EBUSY from
reset_control_acquire() to -EPROBE_DEFER (or retry)?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261206-hantro-robust-v4-0-b99d33a5ec6d@gmail.com?part=14

  reply	other threads:[~2026-12-06  6:21 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-06  5:57 [PATCH v4 00/18] media: verisilicon: Recover the Rockchip VPUs from faults and timeouts Arun Iyengar via B4 Relay
2026-12-06  5:57 ` [PATCH v4 01/18] dt-bindings: media: rockchip,rk3568-vepu: Add the reset lines Arun Iyengar via B4 Relay
2026-12-06  5:57 ` [PATCH v4 02/18] media: verisilicon: Check the match data in hantro_probe() Arun Iyengar via B4 Relay
2026-12-06  5:57 ` [PATCH v4 03/18] media: verisilicon: Complete the request when the VPU can't resume Arun Iyengar via B4 Relay
2026-12-06  5:57 ` [PATCH v4 04/18] media: verisilicon: Copy the buffer metadata before a job can fail Arun Iyengar via B4 Relay
2026-12-06  5:57 ` [PATCH v4 05/18] media: verisilicon: Don't hold the VPU in reset after remove Arun Iyengar via B4 Relay
2026-12-06  5:57 ` [PATCH v4 06/18] media: verisilicon: Disable runtime PM before unpreparing the clocks on probe failure Arun Iyengar via B4 Relay
2026-12-06  6:11   ` sashiko-bot
2026-12-06  5:57 ` [PATCH v4 07/18] media: verisilicon: Enable the Rockchip encoder interrupt again after a reset Arun Iyengar via B4 Relay
2026-12-06  5:57 ` [PATCH v4 08/18] media: verisilicon: Reset the Rockchip encoder cores on timeout Arun Iyengar via B4 Relay
2026-12-06  6:23   ` sashiko-bot
2026-12-06  5:57 ` [PATCH v4 09/18] media: verisilicon: Reinitialize the IOMMU after resetting an encoder core Arun Iyengar via B4 Relay
2026-12-06  6:21   ` sashiko-bot
2026-12-06  5:57 ` [PATCH v4 10/18] media: verisilicon: Acquire the reset lines only while using them Arun Iyengar via B4 Relay
2026-12-06  5:57 ` [PATCH v4 11/18] dt-bindings: iommu: verisilicon: Add the reset lines Arun Iyengar via B4 Relay
2026-12-06  5:57 ` [PATCH v4 12/18] iommu/vsi: Deassert the reset lines on probe Arun Iyengar via B4 Relay
2026-12-06  5:57 ` [PATCH v4 13/18] arm64: dts: rockchip: Add the reset lines of the RK3588 VEPU121 cores Arun Iyengar via B4 Relay
2026-12-06  6:26   ` sashiko-bot
2026-12-06  5:57 ` [PATCH v4 14/18] arm64: dts: rockchip: Add the reset lines of the RK3588 AV1 IOMMU Arun Iyengar via B4 Relay
2026-12-06  6:21   ` sashiko-bot [this message]
2026-12-06  5:57 ` [PATCH v4 15/18] pmdomain: rockchip: Add rockchip_pmu_idle_reset() Arun Iyengar via B4 Relay
2026-12-06  5:57 ` [PATCH v4 16/18] dt-bindings: media: rockchip-vpu: Add reset-names Arun Iyengar via B4 Relay
2026-12-06  5:57 ` [PATCH v4 17/18] media: verisilicon: Reset the RK3588 AV1 decoder after an error Arun Iyengar via B4 Relay
2026-12-06  6:32   ` sashiko-bot
2026-12-06  5:57 ` [PATCH v4 18/18] arm64: dts: rockchip: Name the RK3588 AV1 decoder resets Arun Iyengar via B4 Relay

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=sashiko-outbox-252219@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=aiyengar1990@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=media-ci@linuxtv.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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