Skip to contentSkip to conversation

foundation: disable Scalable Vector Extension (SVE)

PATCH Applied Rahul Singh 3 participants 3 messages Mar 18, 2020 – Mar 19, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 foundation: disable Scalable Vector Extension (SVE)

When foundation platform is booted with SVE enabled in linux kernel and with Xen hypervisor, linux kernel is stopped by a trap catched by Xen during early boot as Xen is configuring the coprocessor to trap access to SVE to EL2.Disabling the SVE in foundation to boot the guest and host.

Change-Id I862540a46686f1fb5343a3143da61db6073bb1d3
---
 .../recipes-devtools/fvp-common/files/start-foundation-armv8.sh | 2 ++
 1 file changed, 2 insertions(+)
meta-arm-bsp/recipes-devtools/fvp-common/files/start-foundation-armv8.sh +2 -0
index 1df4fd8..e014124 100755
@@ -41,9 +41,11 @@ FOUNDATION_PLAT_EXE="Foundation_Platform"
 
 # Foundation Platform arguments
 # 4 cores
+# Disable Scalable Vector Extension (SVE)
 # gicv3 emulation (required for hardware virtualisation)
 FOUNDATION_PLAT_ARGS=" \
     --cores=4 \
+    --no-sve \
     --gicv3"
 
 # Foundation Platform user arguments
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw

On 18 Mar 2020, at 12:01, Rahul Singh via Lists.Yoctoproject.Org<http://Lists.Yoctoproject.Org> <[email protected]<mailto:[email protected]>> wrote:

When foundation platform is booted with SVE enabled in linux kernel and with Xen hypervisor, linux kernel is stopped by a trap catched by Xen during early boot as Xen is configuring the coprocessor to trap access to SVE to EL2.Disabling the SVE in foundation to boot the guest and host.

Change-Id I862540a46686f1fb5343a3143da61db6073bb1d3

---
.../recipes-devtools/fvp-common/files/start-foundation-armv8.sh | 2 ++

1 file changed, 2 insertions(+)
meta-arm-bsp/recipes-devtools/fvp-common/files/start-foundation-armv8.sh +0 -0
index 1df4fd8..e014124 100755
@@ -41,9 +41,11 @@ FOUNDATION_PLAT_EXE="Foundation_Platform"
 

# Foundation Platform arguments
# 4 cores
+# Disable Scalable Vector Extension (SVE)

# gicv3 emulation (required for hardware virtualisation)
FOUNDATION_PLAT_ARGS=" \
    --cores=4 \
+    --no-sve \
    --gicv3"

# Foundation Platform user arguments
--
2.17.1

Applied
#2 lore raw
Quoted 9 lines · Bertrand Marquis

On 18 Mar 2020, at 12:01, Rahul Singh via Lists.Yoctoproject.Org<http://Lists.Yoctoproject.Org> <[email protected]<mailto:[email protected]>> wrote:

When foundation platform is booted with SVE enabled in linux kernel and with Xen hypervisor, linux kernel is stopped by a trap catched by Xen during early boot as Xen is configuring the coprocessor to trap access to SVE to EL2.Disabling the SVE in foundation to boot the guest and host.

Applied to the master branch of meta-arm.

Thanks,
Jon

Quoted 31 lines
Change-Id I862540a46686f1fb5343a3143da61db6073bb1d3

---
.../recipes-devtools/fvp-common/files/start-foundation-armv8.sh | 2 ++

1 file changed, 2 insertions(+)
meta-arm-bsp/recipes-devtools/fvp-common/files/start-foundation-armv8.sh +2 -1
index 1df4fd8..e014124 100755
@@ -41,9 +41,11 @@ FOUNDATION_PLAT_EXE="Foundation_Platform"
 
 # Foundation Platform arguments
 # 4 cores
+# Disable Scalable Vector Extension (SVE)
 # gicv3 emulation (required for hardware virtualisation)
 FOUNDATION_PLAT_ARGS=" \
    --cores=4 \
+    --no-sve \
    --gicv3"
 
 # Foundation Platform user arguments
--

2.17.1