On Fri, Aug 14, 2026 at 12:26:20AM +0800, Tao Tang wrote:
> Implement read/write handlers for the SMMU_S_INIT secure-only register.
> 
> Writing INV_ALL provides a mechanism for software to perform a global
> invalidation of ALL caches within the SMMU, including IOTLBs and
> configuration caches across all security states.
> 
> The MMIO dispatcher decodes the target register bank from the offset and
> normalizes Secure-window offsets by subtracting SMMU_SECURE_REG_START
> before switching on the bank-local offset. S_INIT is a Secure-only
> register and its A_S_INIT constant is an absolute Secure-window offset,
> so the handler matches it using A_S_INIT - SMMU_SECURE_REG_START and
> rejects accesses through Non-secure banks.
> 
> Signed-off-by: Tao Tang <[email protected]>
> Reviewed-by: Pierrick Bouvier <[email protected]>
> ---
>  hw/arm/smmuv3.c     | 43 +++++++++++++++++++++++++++++++++++++++++++
>  hw/arm/trace-events |  1 +
>  2 files changed, 44 insertions(+)
> 

Reviewed-by: Jim MacArthur <[email protected]>


Reply via email to