]> 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>
Wed, 20 Sep 2023 16:01:10 +0000 (17:01 +0100)
commitc643e82dba0b17b2716de4c9d44a3c9c547cbbd5
tree1a3aa85d28d95e4d5139c4bb0e23057fda0662da
parent8789e3b0214e1bea8452d62b41ac2e32547686a4
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
sys/arm64/arm64/cpu_errata.c