arm64/sysreg: ISR register conversions
v2 cover arm64/sysreg: ISR register conversions
This series pulls the generated sysreg updates out of the previously posted series for NMI support then adds an incremental patch on top of that using the generated constant for ISR_EL1.A in the KVM entry code suggested by Marc Zyngier. This should hopefully help these progress without getting tied up by the more involved NMI rework (and cut down the size of that series if they do get merged).
v2:
- Rebased onto v6.2-rc1.
To: Catalin Marinas <[email protected]>
To: Will Deacon <[email protected]>
---
Mark Brown (3):
arm64/sysreg: Add definition for ICC_NMIAR1_EL1 arm64/sysreg: Add definition of ISR_EL1
KVM: arm64: Use symbolic definition for ISR_EL1.A
arch/arm64/kvm/hyp/entry.S | 2 +- arch/arm64/tools/sysreg | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-)
---
base-commit: 1b929c02afd37871d5afb9d498426f83432e71c2
change-id: 20221208-arm64-isr-el1-945133823d50
Best regards,
Signature · 1 line
Mark Brown <[email protected]>
PATCH v2 1/3 arm64/sysreg: Add definition for ICC_NMIAR1_EL1
FEAT_NMI adds a new interrupt status register for NMIs, ICC_NMIAR1_EL1. Add the definition for this register as per IHI0069H.
--- arch/arm64/tools/sysreg | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm64/tools/sysreg +5 -0
@@ -1842,3 +1842,8 @@ Field 23:16 LD Res0 15:8 Field 7:0 LR EndSysreg + +Sysreg ICC_NMIAR1_EL1 3 0 12 9 5 +Res0 63:24 +Field 23:0 INTID +EndSysreg
Signature · 1 line
2.30.2
PATCH v2 2/3 arm64/sysreg: Add definition of ISR_EL1
In reply to Mark BrownAdd a definition of ISR_EL1 as per DDI0487I.a. This register was not previously defined in sysreg.h, no functional changes.
--- arch/arm64/tools/sysreg | 10 ++++++++++ 1 file changed, 10 insertions(+)
arch/arm64/tools/sysreg +10 -0
@@ -1843,6 +1843,16 @@ Res0 15:8 Field 7:0 LR EndSysreg +Sysreg ISR_EL1 3 0 12 1 0 +Res0 63:11 +Field 10 IS +Field 9 FS +Field 8 A +Field 7 I +Field 6 F +Res0 5:0 +EndSysreg + Sysreg ICC_NMIAR1_EL1 3 0 12 9 5 Res0 63:24 Field 23:0 INTID
Signature · 1 line
2.30.2
PATCH v2 3/3 KVM: arm64: Use symbolic definition for ISR_EL1.A
In reply to Mark BrownNow that we are generating ISR_EL1 we have acquired a constant for ISR_EL1.A, use it rather than the magic number we had been using in the KVM entry code.
--- arch/arm64/kvm/hyp/entry.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/kvm/hyp/entry.S +1 -1
@@ -171,7 +171,7 @@ alternative_else dsb sy // Synchronize against in-flight ld/st isb // Prevent an early read of side-effect free ISR mrs x2, isr_el1 - tbnz x2, #8, 2f // ISR_EL1.A + tbnz x2, #ISR_EL1_A_SHIFT, 2f ret nop 2:
Signature · 1 line
2.30.2
Quoted 8 lines · Mark Brown
This series pulls the generated sysreg updates out of the previously posted series for NMI support then adds an incremental patch on top of that using the generated constant for ISR_EL1.A in the KVM entry code suggested by Marc Zyngier. This should hopefully help these progress without getting tied up by the more involved NMI rework (and cut down the size of that series if they do get merged).
[...]
Applied to arm64 (for-next/sysreg), thanks!
[1/3] arm64/sysreg: Add definition for ICC_NMIAR1_EL1
https://git.kernel.org/arm64/c/541826afb2c7 [2/3] arm64/sysreg: Add definition of ISR_EL1 https://git.kernel.org/arm64/c/df5f1775aab2 [3/3] KVM: arm64: Use symbolic definition for ISR_EL1.A https://git.kernel.org/arm64/c/1abf363d085c
Signature · 1 line
Catalin