Re: [PATCH v11 12/16] iommu/tegra241-cmdqv: Add a helper to quiesce VCMDQs
From: Nicolin Chen
Date: Wed Sep 30 2026 - 16:35:36 EST
On Wed, Sep 30, 2026 at 07:57:12PM +0000, Pranjal Shrivastava wrote:
> I'm planning to add an impl->suspend op now.. that will cover this, and
> also the late breaking IRQ changes you're referring to in the other
> thread. Roughly:
> - set STOP_FLAG on all lvcmdqs
> - wait for owners & drain all lvcmdqs
> - handle any pending CMDQV errors
> - tegra241_vintf_hw_deinit(vintf0)
>
> I'll call it from arm_smmu_runtime_suspend() before gating the main
> CMDQ, so the CMD_SYNC in tegra241_vcmdq_hw_flush_timeout() still goes
> through and any late cmd simply falls back to smmu->cmdq.
That sounds good to me.
Nicolin