]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
arm64: Fix errata workarounds that depend on smccc
authorAndrew Turner <andrew@FreeBSD.org>
Mon, 18 Sep 2023 16:34:51 +0000 (17:34 +0100)
committerGordon Tetlow <gordon@FreeBSD.org>
Tue, 3 Oct 2023 21:29:11 +0000 (14:29 -0700)
commit485912e051bbea273a480a24d7f321cc7c06f335
tree2975d487736b728829e195144c24828499489cd5
parent2d23f6c33431b19d8f91ad4832db01aa25062d43
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)
sys/arm64/arm64/cpu_errata.c