HomeFreeBSD

arm64: Fix errata workarounds that depend on smccc

Description

arm64: Fix errata workarounds that depend on smccc

Some arm64 errata depend on calling into the firmware via the SMCCC
interface. This needs to happen after the psci driver has attached
as they share the interface.

Fix this by allowing the workarounds to mark when they depend on
device drivers attaching.

This is only an issue on CPU 0 as the workarounds are applied later
for the non-boot CPUs.

Reviewed by: emaste
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D41916

(cherry picked from commit c643e82dba0b17b2716de4c9d44a3c9c547cbbd5)
(cherry picked from commit 843bea18711d726cd2f0a3c3f9144b218e4de3e8)

Details

Provenance
andrewAuthored on Sep 18 2023, 4:34 PM
Reviewer
emaste
Differential Revision
D41916: arm64: Fix errata workarounds that depend on smccc
Parents
rG107bb46b6cc2: gicv3: Add checks for the device ID
Branches
Unknown
Tags
Unknown