Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

18.6 Conformance and platform standards

The Arm ARM defines a PE. An OS needs a system: a timer it can find, an interrupt controller with a known programming model, an SMMU, coherent memory, error reporting, and firmware that describes all of it in a standard form. Arm’s system architecture specifications define that system, and the Architecture Compliance Suites (ACS) test it. For a validation engineer, conformance is the cheapest broad test there is, because someone else has already written thousands of tests against a public spec.

The specification layers

LayerSpecificationWhat it constrains
PE architectureArm ARM (DDI0487)Instructions, exception model, memory model, system registers
Companion architecturesGICv3/v4 (IHI0069), SMMUv3 (IHI0070), RAS (DDI0587), PSCI (DEN0022), SMCCC (DEN0028), FF-A (DEN0077)The interrupt controller, IOMMU, error records and firmware interfaces, each as an architecture with its own options
Base System ArchitectureBSA (DEN0094)The minimum system an OS can rely on: PE features, GIC version and configuration, Generic Timer and system counter (including a memory-mapped timer for wake-up), watchdog, PCIe integration, SMMU, power and wake-up semantics
Server Base System ArchitectureSBSA (DEN0029)BSA plus server requirements, organised in numbered levels. Each level is a superset of the one below and requires newer PE and system features (for example, a minimum architecture version, SMMU and PCIe features, and RAS)
Boot requirementsBBR (DEN0044)Firmware interfaces: UEFI, ACPI or devicetree, SMBIOS, PSCI, and their required subsets, organised as recipes (SBBR for ACPI servers, EBBR for embedded devicetree systems)
RME system architectureDEN0129The system side of Arm CCA: granule protection at completers, the PAS tags carried on the interconnect, Realm-aware SMMUs and debug, MEC (12.4)
Compliance programmeArm SystemReadyA named combination of BSA (and SBSA where applicable), BBR and the ACS results

SystemReady bands. The programme was restructured in late 2024 (requirements specification v3.0). There are now two bands: the SystemReady band, for UEFI plus ACPI systems (it absorbs the former SR and ES bands), and the SystemReady Devicetree band, for UEFI plus devicetree systems (formerly IR). The former LS band is deprecated. Older documents and many vendor pages still use the four-band names, so check the date of anything you read.

Two points that matter when reading these specs:

  • BSA and SBSA select options that the Arm ARM leaves open. The Arm ARM allows a system with no memory-mapped timer and permits the GIC to be configured in many ways. BSA requires a memory-mapped wake-up timer where PEs can enter power states that lose their local timer, and recommends a particular interrupt-ID allocation for the architected PPIs. A design can be fully compliant with the Arm ARM and still fail BSA.
  • The rules are written as numbered requirements (in BSA, IDs such as B_PE_01), and the ACS tests and logs reference them. Use those IDs when you file a failure with the RTL team.

The Arm ACS suites

SuiteTestsWhere it runsAvailability
Architecture compliance for the PE (often called ACK)The PE against the Arm ARM: instructions, exceptions, memory model, registersPre-silicon and silicon, in the licensee’s environmentArm licensees only, under licence. Implementations of Arm-designed cores rely on Arm’s own verification
BSA ACS and SBSA ACSThe system against BSA and SBSA: PE features visible to the OS, GIC and ITS behaviour, timers and watchdog, PCIe (ECAM, MSIs, ATS/PRI where required), SMMU, peripheral DMA coherency, power and wake-up, RAS (SBSA)UEFI application (the main form), plus Linux kernel-module tests for PCIe and DMA paths; also a bare-metal form for pre-siliconOpen source. The BSA and SBSA repositories were consolidated in 2025 into Arm’s sysarch-acs repository
RME ACS (rme-sysarch-acs)The DEN0129 invariants: GPC at completers, PAS propagation, Realm-aware SMMUBare-metal at EL3Open source
SystemReady ACS imageBSA/SBSA ACS plus the UEFI SCT, FWTS and BBR checks. OS installation is a separate step of certification, not part of the imagePrebuilt bootable imageOpen source

The ACS projects say this themselves: compliance tests are not a substitute for design verification. A pass means the system meets the rules the suite checks, in the configurations it reached. Treat the ACS as a broad smoke test, then target what it does not cover with directed tests (18.5).

Bring-up note: BSA and SBSA ACS have bare-metal and “pre-silicon” builds that run on emulation, given a platform abstraction layer (PAL) you write for your platform’s addresses and interrupt IDs. Run them before tape-out. A wrong PPI allocation or a missing wake-up timer is a cheap RTL change on emulation and an erratum on silicon.

What a validation engineer checks first

In this order, because each step depends on the one before:

  1. ID registers against the specification. Read every ID_AA64*_EL1 register on every core type and compare it with the core’s TRM and the SoC’s feature sheet: FEAT_ levels, PA size (ID_AA64MMFR0_EL1.PARange), granule support, GIC CPU interface (ID_AA64PFR0_EL1.GIC), RAS and AMU versions. Check them against what EL3 actually enables (1.1, 17.3). A heterogeneous system whose cores report different values for fields the OS treats as system-wide is a finding in itself.
  2. Timer frequency. CNTFRQ_EL0 on every core equals the system counter’s real frequency (measure it against an external reference), the counter is enabled and running (4.6), and the timer PPIs use BSA’s recommended IDs. Check BSA for the current list. The usual assignment is 30 for the EL1 physical timer, 27 for the EL1 virtual timer, 26 and 28 for the EL2 physical and virtual timers, and 29 for the Secure EL1 physical timer.
  3. GIC and ITS. Affinity routing on, GICD_TYPER and GICR_TYPER consistent with the topology, every Redistributor present and wakeable, and an LPI delivered through the ITS from a real device (4.4, 4.5).
  4. SMMU. SMMU_IDR0–IDR5 against the claimed features, stage 1 and stage 2 both working, StreamIDs as documented, and the PCIe RID-to-StreamID mapping as the firmware will describe it (11.5).
  5. PE coherency and memory. Multi-core coherency across clusters and dies, DMA coherency for masters claimed as coherent, and exclusives and atomics in every memory region an OS will place a lock in (8.10, 10.1).
  6. RAS injection. Every RAS node reachable, its records as described, and a pseudo-fault from each node delivered to firmware and reported to the OS (16.8).

Describing the hardware to the OS

Silicon that passes every architectural test can still fail compliance because firmware describes it wrongly. The OS knows the platform only through ACPI tables or a devicetree.

ACPI tableDescribesDT equivalent
MADTGIC Distributor, Redistributors, ITSs; one GICC entry per PE with its MPIDR, ACPI Processor UID, PMU and VGIC maintenance interruptsinterrupt-controller (arm,gic-v3) node, cpus node with reg = MPIDR affinity
GTDTArchitected timer interrupts and flags, CNTControlBase, memory-mapped timer frames, watchdogsarm,armv8-timer, arm,armv7-timer-mem, arm,sbsa-gwdt
IORTITS groups, SMMUv3 nodes, PCIe root complexes and named components, and the ID mappings between them (RID → StreamID → DeviceID)iommu-map, msi-map, iommus, msi-parent
PPTTProcessor hierarchy (package, cluster, core, thread) and cache propertiescpu-map, next-level-cache and cache nodes
SRAT, SLIT, HMATNUMA proximity domains for memory and PEs, distances, and bandwidth and latency attributesnuma-node-id, distance-map
AESTRAS error nodes: type (PE, memory, SMMU, GIC, vendor), interface (system register or memory-mapped), record ranges and interruptsNo standard binding in common use
APMTSystem PMUs: CMN, SMMU PMCG, and other Arm CoreSight PMU-architecture countersVendor-specific compatible nodes
MPAMMPAM MSCs: base address, interrupts, and the resource each controls (8.9)Proposed bindings

Others that appear in every compliance run: SPCR and DBG2 (the console), MCFG (PCIe ECAM), FADT (the HW_REDUCED_ACPI flag and the PSCI-compliant boot flags), and SDEI and HEST for error handling (16.8).

Common mistakes found in compliance runs

  • MADT GICC MPIDR does not match the hardware, often because the Aff fields are packed differently from what the cores report (for example, multi-threaded cores where Aff0 is the thread). The OS then brings up the wrong core or fails CPU_ON. The cross-check is MPIDR_EL1 read on each core against the table.
  • PPTT and MADT disagree. The PPTT processor’s ACPI Processor ID does not match the MADT UID, or caches are described without the “valid” flags set, so the OS’s scheduler topology and cache sizes are wrong without anything failing loudly.
  • GTDT timer flags. The architected timers are level-sensitive. Marking them edge-triggered, or giving the wrong polarity, causes lost or stuck timer interrupts. CNTControlBase must be set to 0xFFFFFFFFFFFFFFFF when not provided, not to 0.
  • IORT ID mappings off by one or misdirected. A RID range mapped to the wrong StreamID base, an output reference pointing at the ITS instead of the SMMU, or a missing single mapping for the SMMU’s own MSIs. PCIe devices enumerate, but DMA faults in the SMMU or MSIs never arrive.
  • NUMA domains that do not match the hardware, or SRAT without HMAT on systems where latency differences are large. This is not a functional failure, but it is a performance finding.
  • AEST and MPAM base addresses copied from a different SoC revision. The OS probes a RAS node or MSC that is not there, and takes an SError at boot.
  • Devicetree specific: a clock-frequency property in the arm,armv8-timer node that overrides CNTFRQ_EL0 (it exists only as a workaround for firmware that does not program CNTFRQ_EL0), PPI numbers given as INTIDs rather than PPI indices (devicetree uses INTID - 16), and missing dma-coherent on coherent masters, or present on non-coherent ones.

Validation note: make the tables testable. Generate the MADT, PPTT and IORT from the same source of truth as the RTL configuration (the topology, the address map and the StreamID allocation), not by hand. Then run the BSA ACS and FWTS on every firmware build. A failure in FWTS’s MADT or IORT checks, or an ACS PE test reporting “MPIDR mismatch”, is a firmware bug. A failure in an ACS GIC, timer or SMMU behavioural test is a hardware or integration bug. Classifying each failure this way before filing it saves a round trip.

Checkpoint

Q18.6.1 A design passes Arm’s PE compliance tests but fails a BSA ACS check because the system has no memory-mapped wake-up timer. How should this be classified?

  • A. An Arm ARM violation, since the Generic Timer architecture requires memory-mapped frames
  • B. A BSA non-compliance: the Arm ARM permits such a system, but BSA requires a timer that can wake PEs whose local timers are powered off
  • C. An ACS bug, because the PE tests passed
  • D. A devicetree problem, because the frame is not described
Answer

B. BSA constrains the options that the Arm ARM leaves open. The memory-mapped timer frames are described in the Arm ARM but are a system-level option there. BSA makes a wake-up-capable timer mandatory. D could cause a similar failure if the timer exists but is not described, but here it does not exist.

Read more: Arm Base System Architecture (DEN0094), Generic Timer and wake-up requirements; Arm ARM (DDI0487), The Generic Timer memory-mapped registers

Q18.6.2 On an ACPI system, PCIe devices enumerate correctly, but DMA from them faults in the SMMU with “unknown StreamID” events. Which table is most likely wrong?

  • A. MADT
  • B. GTDT
  • C. PPTT
  • D. IORT
Answer

D. The IORT holds the ID mappings from PCIe Requester IDs to SMMU StreamIDs (and on to ITS DeviceIDs). If a mapping is wrong, the OS programs the SMMU stream table for StreamIDs that the hardware does not emit. MADT (A) describes the GIC and PEs. It would matter for MSIs only through the ITS entries, not for SMMU StreamIDs.

Read more: Arm IO Remapping Table specification (DEN0049), ID mappings; SMMUv3 (IHI0070), Stream table

Q18.6.3 After a firmware update, Linux on a devicetree board reports a timer frequency that differs from CNTFRQ_EL0. What is the most likely cause?

  • A. A clock-frequency property in the arm,armv8-timer node, which the kernel uses in place of CNTFRQ_EL0
  • B. CNTCR.EN was cleared
  • C. The GTDT has the wrong timer flags
  • D. CNTVOFF_EL2 is non-zero
Answer

A. The property exists for firmware that fails to program CNTFRQ_EL0, and when present it overrides the register. B stops the counter but does not change the reported frequency. C is an ACPI table and does not apply to a devicetree boot. D shifts the virtual count, not its frequency.

Read more: Linux devicetree binding arm,arch_timer; Arm ARM (DDI0487), CNTFRQ_EL0