arm64: Unconditionally set virtual cpu id registers
Subsystems (2)
PATCH v2 1/1 arm64: Unconditionally set virtual cpu id registers
Commit 78869f0f0552 ("arm64: Extract parts of el2_setup into a macro") reorganized el2 setup in such way that virtual cpu id registers set only in nVHE, yet they used (and need) to be set irrespective VHE support.
---
Changelog
v1 -> v2
- Drop the reference to 32bit guests from commit message (per Marc)
There is no upstream fix since issue went away due to code there has been reworked in 5.12: nVHE comes first, so virtual cpu id register are always set.
Maintainers, please, Ack.
arch/arm64/include/asm/el2_setup.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/include/asm/el2_setup.h +2 -2
@@ -113,7 +113,7 @@ .endm /* Virtual CPU ID registers */ -.macro __init_el2_nvhe_idregs +.macro __init_el2_idregsmrs x0, midr_el1 mrs x1, mpidr_el1 msr vpidr_el2, x0
@@ -165,6 +165,7 @@__init_el2_stage2 __init_el2_gicv3__init_el2_hstr + __init_el2_idregs/* * When VHE is not in use, early init of EL2 needs to be done here.
@@ -173,7 +174,6 @@* will be done via the _EL1 system register aliases in __cpu_setup. */ .ifeqs "\mode", "nvhe" - __init_el2_nvhe_idregs __init_el2_nvhe_cptr __init_el2_nvhe_sve __init_el2_nvhe_prepare_eret
Signature · 1 line
2.24.0
Quoted 8 lines · Vladimir Murzin
Commit
78869f0f0552("arm64: Extract parts ofel2_setupinto a macro") reorganized el2 setup in such way that virtual cpu id registers set only in nVHE, yet they used (and need) to be set irrespective VHE support.Fixes 78869f0f0552 ("arm64: Extract parts of el2_setup into a macro")Signed-off-by Vladimir Murzin <[email protected]>
Thanks,
M.
Signature · 1 line
Without deviation from the norm, progress is not possible.
Quoted 13 lines · Vladimir Murzin
Commit
78869f0f0552("arm64: Extract parts ofel2_setupinto a macro") reorganized el2 setup in such way that virtual cpu id registers set only in nVHE, yet they used (and need) to be set irrespective VHE support.Fixes 78869f0f0552 ("arm64: Extract parts of el2_setup into a macro")Signed-off-by Vladimir Murzin <[email protected]>---
Changelogv1 -> v2
- Drop the reference to 32bit guests from commit message (per Marc)
Quoted 8 lines
There is no upstream fix since issue went away due to code there has been reworked in 5.12: nVHE comes first, so virtual cpu id register are always set.
Maintainers, please, Ack.
arch/arm64/include/asm/el2_setup.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
It's a bit weird to have a patch in stable that isn't upstream, but I don't see a better option here.
Will
Quoted 20 lines · Will Deacon
Quoted 19 lines · Vladimir Murzin
Commit
78869f0f0552("arm64: Extract parts ofel2_setupinto a macro") reorganized el2 setup in such way that virtual cpu id registers set only in nVHE, yet they used (and need) to be set irrespective VHE support.Fixes 78869f0f0552 ("arm64: Extract parts of el2_setup into a macro")Signed-off-by Vladimir Murzin <[email protected]>---
Changelogv1 -> v2
- Drop the reference to 32bit guests from commit message (per Marc)There is no upstream fix since issue went away due to code there has been reworked in 5.12: nVHE comes first, so virtual cpu id register are always set.
Maintainers, please, Ack.
Quoted 7 lines
Quoted 2 lines
arch/arm64/include/asm/el2_setup.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)Acked-by Will Deacon <[email protected]>It's a bit weird to have a patch in stable that isn't upstream, but I don't see a better option here.
Yes, I'd agree here - the commits that would need to be backported look way too invasive.
I've queued it up, thanks.
Signature · 2 lines
Thanks, Sasha
Quoted 26 lines · Sasha Levin
Quoted 25 lines · Will Deacon
Quoted 13 lines · Vladimir Murzin
Commit
78869f0f0552("arm64: Extract parts ofel2_setupinto a macro") reorganized el2 setup in such way that virtual cpu id registers set only in nVHE, yet they used (and need) to be set irrespective VHE support.Fixes 78869f0f0552 ("arm64: Extract parts of el2_setup into a macro")Signed-off-by Vladimir Murzin <[email protected]>---
Changelogv1 -> v2
- Drop the reference to 32bit guests from commit message (per Marc)Quoted 8 lines
There is no upstream fix since issue went away due to code there has been reworked in 5.12: nVHE comes first, so virtual cpu id register are always set.
Maintainers, please, Ack.
arch/arm64/include/asm/el2_setup.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)Acked-by Will Deacon <[email protected]>
Quoted 7 lines
Quoted 2 lines
It's a bit weird to have a patch in stable that isn't upstream, but I don't see a better option here.
Yes, I'd agree here - the commits that would need to be backported look way too invasive.
I've queued it up, thanks.
I don't see it, so I've added it as well...
thanks,
greg k-h
Patch "arm64: Unconditionally set virtual cpu id registers" has been added to the 5.11-stable tree
In reply to Vladimir MurzinThis is a note to let you know that I've just added the patch titled
arm64: Unconditionally set virtual cpu id registers
to the 5.11-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
arm64-unconditionally-set-virtual-cpu-id-registers.patch
and it can be found in the queue-5.11 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
From [email protected] Fri Mar 19 10:43:20 2021
From: Vladimir Murzin <[email protected]>
Date: Tue, 16 Mar 2021 13:43:19 +0000
Subject: arm64: Unconditionally set virtual cpu id registers
To: [email protected], [email protected]
Cc: [email protected], [email protected], [email protected], [email protected]
Message-ID: <[email protected]>
From: Vladimir Murzin <[email protected]>
Commit 78869f0f0552 ("arm64: Extract parts of el2_setup into a macro") reorganized el2 setup in such way that virtual cpu id registers set only in nVHE, yet they used (and need) to be set irrespective VHE support.
--- arch/arm64/include/asm/el2_setup.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/include/asm/el2_setup.h +2 -2
@@ -111,7 +111,7 @@ .endm /* Virtual CPU ID registers */ -.macro __init_el2_nvhe_idregs +.macro __init_el2_idregsmrs x0, midr_el1 mrs x1, mpidr_el1 msr vpidr_el2, x0
@@ -163,6 +163,7 @@__init_el2_stage2 __init_el2_gicv3__init_el2_hstr + __init_el2_idregs/* * When VHE is not in use, early init of EL2 needs to be done here.
@@ -171,7 +172,6 @@* will be done via the _EL1 system register aliases in __cpu_setup. */ .ifeqs "\mode", "nvhe" - __init_el2_nvhe_idregs __init_el2_nvhe_cptr __init_el2_nvhe_sve __init_el2_nvhe_prepare_eret
Patches currently in stable-queue which might be from [email protected] are
queue-5.11/arm64-unconditionally-set-virtual-cpu-id-registers.patch
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Patch "arm64: Unconditionally set virtual cpu id registers" has been added to the 4.14-stable tree
In reply to Vladimir MurzinThis is a note to let you know that I've just added the patch titled
arm64: Unconditionally set virtual cpu id registers
to the 4.14-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
arm64-unconditionally-set-virtual-cpu-id-registers.patch
and it can be found in the queue-4.14 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
From [email protected] Fri Mar 19 10:43:20 2021
From: Vladimir Murzin <[email protected]>
Date: Tue, 16 Mar 2021 13:43:19 +0000
Subject: arm64: Unconditionally set virtual cpu id registers
To: [email protected], [email protected]
Cc: [email protected], [email protected], [email protected], [email protected]
Message-ID: <[email protected]>
From: Vladimir Murzin <[email protected]>
Commit 78869f0f0552 ("arm64: Extract parts of el2_setup into a macro") reorganized el2 setup in such way that virtual cpu id registers set only in nVHE, yet they used (and need) to be set irrespective VHE support.
---
Changelog
v1 -> v2
- Drop the reference to 32bit guests from commit message (per Marc)
There is no upstream fix since issue went away due to code there has been reworked in 5.12: nVHE comes first, so virtual cpu id register are always set.
Maintainers, please, Ack.
arch/arm64/include/asm/el2_setup.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/include/asm/el2_setup.h +2 -2
@@ -113,7 +113,7 @@ .endm /* Virtual CPU ID registers */ -.macro __init_el2_nvhe_idregs +.macro __init_el2_idregsmrs x0, midr_el1 mrs x1, mpidr_el1 msr vpidr_el2, x0
@@ -165,6 +165,7 @@__init_el2_stage2 __init_el2_gicv3__init_el2_hstr + __init_el2_idregs/* * When VHE is not in use, early init of EL2 needs to be done here.
@@ -173,7 +174,6 @@* will be done via the _EL1 system register aliases in __cpu_setup. */ .ifeqs "\mode", "nvhe" - __init_el2_nvhe_idregs __init_el2_nvhe_cptr __init_el2_nvhe_sve __init_el2_nvhe_prepare_eret
Signature · 12 lines
2.24.0 Patches currently in stable-queue which might be from [email protected] are queue-4.14/arm64-unconditionally-set-virtual-cpu-id-registers.patch _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Greg KH
maintainerRe: Patch "arm64: Unconditionally set virtual cpu id registers" has been added to the 4.14-stable tree
Quoted 7 lines · On Fri, Mar 19, 2021 at 10:52:29AM +0100, [email protected] wrote:
This is a note to let you know that I've just added the patch titled
arm64: Unconditionally set virtual cpu id registers
to the 4.14-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
OOps, no, wrong branch, my fault.
greg k-h