Skip to content

RFC Cavium CN99xx SMMUv3 Errata workarounds

[email protected] acpica-devel linux-acpi linux-arm-kernel linux-iommu 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest0 of 7 patches 1 replyIn review

Patches in v1 No applies recorded yet

None of the 7 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/7] Cavium CN99xx SMMUv3 Errata workarounds

From: Linu Cherian <linu.cherian-YGCgFSpz5w/[email protected]>

Cavium CN99xx SMMUv3 implementation has two Silicon Erratas.
1. Errata ID #74
SMMU register alias Page 1 is not implemented
2. Errata ID #126
SMMU doesnt support unique IRQ lines for gerror, eventq and cmdq-sync

The following patchset does software workaround for these two erratas. An option flag is introduced for each errata which will enable/disable the errata workarounds.
For device tree based probing, option flags can be turned on by passing relevant options along with the smmuv3 device node. For ACPI, option flags are turned on when Cavium CN99xx SMMuv3 model is identified in the IORT.

Note: We are in the process of getting necessary IORT SMMUv3 model ID
for Cavium CN99xx SMMUv3 implementation and it is yet to get allocated. We have assumed model ID 3 for this.

Geetha (1):
iommu/arm-smmu-v3: Introduce smmu option USE_SHARED_IRQS for Silicon
errata

Linu Cherian (6):
iommu/arm-smmu-v3: Introduce smmu option PAGE0_REGS_ONLY for Silicon
errata.
iommu/arm-smmu-v3: Do resource size checks based on smmu option
PAGE0_REGS_ONLY
ACPICA: IORT: Add SMMuV3 model definitions. iommu/arm-smmu-v3: For ACPI based device probing, set relevant options
for different SMMUv3 implementations.
ACPI/IORT: Fixup SMMUv3 resource size for Cavium 99xx SMMUv3 model.
arm64: Documentation: Add Cavium ThunderX2 SMMUv3 erratas.

 Documentation/arm64/silicon-errata.txt |   2 +
 drivers/acpi/arm64/iort.c              |  10 ++-
 drivers/iommu/arm-smmu-v3.c            | 115 ++++++++++++++++++++++++++-------
 include/acpi/actbl2.h                  |   5 ++
 4 files changed, 107 insertions(+), 25 deletions(-)
Signature · 1 line
1.9.1