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

Part 18: Debugging, validation and compliance

Prerequisites: 3.2 Entry and return, 3.4 SError, architecturally, 5.8 MMU faults and how to decode them, 9.3 Turning the MMU and caches on, 16.2 External debug and CoreSight, 16.7 RAS architecture, 17.3 The EL3 feature-enable checklist.

If you already know: how to decode ESR_ELx by hand and have triaged EL3 crashes before, skim 18.1 for its dumps and read the rest. If you have run the BSA/SBSA ACS and written ACPI tables, skim 18.6 for its list of common table mistakes.

Why this matters for bring-up/validation: this part turns the architecture in the rest of the book into procedures for finding out why a core crashed, hung or never started, and for proving that a system meets the specifications before an OS ever runs on it.

The first three sections are about failures. 18.1 works through five real crash dumps (a translation fault after MMU-on, an EC 0x18 trap, an SError, BTI and PAC failures, and an alignment fault in early C), reading each register only as far as the architecture says it is valid. 18.2 handles the case with no dump at all: a hung core. It sorts hangs into asleep, spinning on an exclusive, stalled on a Device access and stalled on a DVM sync, using PC sampling, CTI halts and MEM-AP reads, in increasing order of intrusiveness. 18.3 collects the signatures that recur on every new SoC, with the first check for each, and gives a procedure for triaging an SError from the error records outwards.

The last three sections are about validation. 18.4 compares FVP, RTL simulation, emulation, FPGA and silicon by the bug classes each can and cannot find, so that a pass on one platform is not mistaken for a pass on all of them. 18.5 builds a minimal self-checking test harness, with an expected-exception framework, signatures, OS-free multi-core synchronisation and seeded randomisation, and relates it to TF-A’s TFTF. 18.6 places the Arm ARM among the system specifications (BSA, SBSA, BBR, SystemReady, DEN0129), describes the ACS suites, and covers the ACPI and devicetree descriptions that compliance runs most often find wrong.