]> 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)
committerAndrew Turner <andrew@FreeBSD.org>
Mon, 25 Sep 2023 12:13:47 +0000 (13:13 +0100)
commit4df1447f2c76d0db988197f3a05d48e15f976c7c
treefee239e051ffbf1a71b194649fecdf43f6de3e16
parent107bb46b6cc238cc6257f80e58f8fa3c94df45e1
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)
sys/arm64/arm64/cpu_errata.c