31 lines
933 B
Diff
31 lines
933 B
Diff
From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
|
|
Date: Thu, 12 Aug 2021 11:52:42 +0200
|
|
Subject: [PATCH] arm64: don't issue HVC on boot
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Broadcom's CFE loader seems to miss setting SCR_EL3.HCE which results in
|
|
generating an UNDEF and kernel panic on the first HVC.
|
|
|
|
HVC gets issued by kernels 5.12+ while booting, by kexec and KVM. Until
|
|
someone finds a workaround we have to avoid all above.
|
|
|
|
Workarounds: 0c93df9622d4 ("arm64: Initialise as nVHE before switching to VHE")
|
|
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
|
|
---
|
|
arch/arm64/kernel/hyp-stub.S | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/arch/arm64/kernel/hyp-stub.S
|
|
+++ b/arch/arm64/kernel/hyp-stub.S
|
|
@@ -252,7 +252,7 @@ SYM_FUNC_START(finalise_el2)
|
|
b.ne 1f
|
|
|
|
mov x0, #HVC_FINALISE_EL2
|
|
- hvc #0
|
|
+// hvc #0
|
|
1:
|
|
ret
|
|
SYM_FUNC_END(finalise_el2)
|