Re: [PATCH v7 2/3] iommu/arm-smmu-v3: Introduce CFGI/TLBI-repeat workaround infrastructure
From: Ashish Mhetre
Date: Wed Jul 22 2026 - 05:29:43 EST
On 7/20/2026 2:07 AM, Nicolin Chen wrote:
On Sat, Jul 18, 2026 at 01:45:48PM -0300, Jason Gunthorpe wrote:
On Fri, Jul 17, 2026 at 02:16:53PM -0700, Nicolin Chen wrote:OK.
Given the use cases on Tegra264, instead of patching the iommufdNope, in this case you need to make the errata discoverable through
path as this patch does, perhaps we should simply spit a WARN in
arm_vsmmu_init():
the viommu info so the VMM can validate the right DT is used, or apply
the WAR itself before submitting commands to the kernel.
Some kind of new flag in the viommu struct I guessstruct iommu_hw_info_arm_smmuv3 has an unused "flags" field:
/**
* enum iommu_hw_info_smmuv3_flags - Flags for ARM SMMUv3 hw_info
* @IOMMU_HW_INFO_SMMUV3_ERRATA_REPEAT_TLBI_CFGI: If set, user space must issue
* TLBI/CFGI+SYNC commands twice
* due to a hardware erratum:
* <link-to-erratum>
*/
enum iommu_hw_info_smmuv3_flags {
IOMMU_HW_INFO_SMMUV3_ERRATA_REPEAT_TLBI_CFGI = 1 << 0,
};
Thanks
Nicolin
Ack, I am sending v8 addressing this.
Thanks,
Ashish Mhetre