Re: [PATCH v15 09/15] pmdomain: rockchip: add optional per-domain power-on settle delay
From: Heiko Stübner
Date: Tue Nov 03 2026 - 17:34:54 EST
Am Sonntag, 1. November 2026, 09:23:01 Mitteleuropäische Normalzeit schrieb Jiaxing Hu:
> The RK3576 NPU domains need a short settle time after the idle request is
> released before the registers behind the domain answer. Without it the QoS
> writes that rockchip_pmu_restore_qos() issues land while the domain is
> still coming up, and the NPU throws an async SError on the first cold
> power-on.
>
> Give rockchip_domain_info an optional delay_us and wait for it between
> releasing idle and restoring QoS. Rename DOMAIN_M_O_R_G to
> DOMAIN_M_O_R_G_W for the settle delay it now carries; RK3576 is its only
> user, so the old spelling is not kept around.
>
> The macro also takes the regulator argument DOMAIN_M_O_R and DOMAIN_M_R
> already have, and RK3576_PD_NPU passes true, so
> rockchip_pm_add_one_domain() powers that domain off at probe and the delay
> runs on the first power-on even when a bootloader left the NPU up.
>
> Signed-off-by: Jiaxing Hu <gahing@xxxxxxxxxxxxx>
> Reviewed-by: Abel Vesa <abel.vesa@xxxxxxxxxxxxxxxx>
Reviewed-by: Heiko Stuebner <heiko@xxxxxxxxx>