FYI: snapshot images FreeBSD-15.0-CURRENT-arm64-aarch64*230921-febba4622b60-265435*.img* panic on cortex-A57/72/73/75

From: Mark Millard <marklmi_at_yahoo.com>
Date: Thu, 21 Sep 2023 19:01:28 UTC
The snapshot images:

FreeBSD-15.0-CURRENT-arm64-aarch64*230921-febba4622b60-265435*.img*

are all missing the following later update and, so, get a panic on
Coretex-A57/A72/A73/A75 based systems. The panic message is:

panic: Assertion smccc_version != 0 failed at /usr/src/sys/dev/psci/smccc.c:81


The missing change is . . .

URL: https://cgit.FreeBSD.org/src/commit/?id=843bea18711d726cd2f0a3c3f9144b218e4de3e8

commit 843bea18711d726cd2f0a3c3f9144b218e4de3e8
Author:     Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2023-09-21 09:32:55 +0000
Commit:     Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2023-09-21 09:32:55 +0000

    arm64: Move all BP hardening quirks later
    
    Some quirks were missed due to the change being initially written on a
    branch where they are all merged. Move all calls to
    install_psci_bp_hardening until after device drivers have attached.
    
    Sponsored by:   Arm Ltd
---
 sys/arm64/arm64/cpu_errata.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sys/arm64/arm64/cpu_errata.c b/sys/arm64/arm64/cpu_errata.c
index 6c294ff1237c..fee22240bb0e 100644
--- a/sys/arm64/arm64/cpu_errata.c
+++ b/sys/arm64/arm64/cpu_errata.c
@@ -67,21 +67,25 @@ static struct cpu_quirks cpu_quirks[] = {
 		.midr_mask = CPU_IMPL_MASK | CPU_PART_MASK,
 		.midr_value = CPU_ID_RAW(CPU_IMPL_ARM, CPU_PART_CORTEX_A57,0,0),
 		.quirk_install = install_psci_bp_hardening,
+		.flags = CPU_QUIRK_POST_DEVICE,
 	},
 	{
 		.midr_mask = CPU_IMPL_MASK | CPU_PART_MASK,
 		.midr_value = CPU_ID_RAW(CPU_IMPL_ARM, CPU_PART_CORTEX_A72,0,0),
 		.quirk_install = install_psci_bp_hardening,
+		.flags = CPU_QUIRK_POST_DEVICE,
 	},
 	{
 		.midr_mask = CPU_IMPL_MASK | CPU_PART_MASK,
 		.midr_value = CPU_ID_RAW(CPU_IMPL_ARM, CPU_PART_CORTEX_A73,0,0),
 		.quirk_install = install_psci_bp_hardening,
+		.flags = CPU_QUIRK_POST_DEVICE,
 	},
 	{
 		.midr_mask = CPU_IMPL_MASK | CPU_PART_MASK,
 		.midr_value = CPU_ID_RAW(CPU_IMPL_ARM, CPU_PART_CORTEX_A75,0,0),
 		.quirk_install = install_psci_bp_hardening,
+		.flags = CPU_QUIRK_POST_DEVICE,
 	},
 	{
 		.midr_mask = CPU_IMPL_MASK | CPU_PART_MASK,

===
Mark Millard
marklmi at yahoo.com