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
Approved by: so
Security: FreeBSD-SA-23:14.smccc
Security: CVE-2023-5370
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D41916

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

Details

Provenance
andrewAuthored on Sep 18 2023, 4:34 PM
gordonCommitted on Oct 3 2023, 9:29 PM
Reviewer
emaste
Differential Revision
D41916: arm64: Fix errata workarounds that depend on smccc
Parents
rG2d23f6c33431: copy_file_range: require CAP_SEEK capability
Branches
Unknown
Tags
Unknown