mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-07-27 19:37:04 +00:00
arm-autonomy/xen: remove patches that have been mainlined in xen 4.14.1
Remove the 4 patches from recipes-extended/xen/xen_4.14.bbappend that have been integrated in xen 4.14.1 Issue-Id: SCM-2133 Signed-off-by: Richard Neill <richard.neill@arm.com> Change-Id: If38262d17699794eb600b11e131c168ed4de4391 Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
-40
@@ -1,40 +0,0 @@
|
|||||||
From 3b418b33265402aab0cb1bf2b745a25724bae2d8 Mon Sep 17 00:00:00 2001
|
|
||||||
Message-Id: <3b418b33265402aab0cb1bf2b745a25724bae2d8.1602684880.git.diego.sueiro@arm.com>
|
|
||||||
From: Bertrand Marquis <bertrand.marquis@arm.com>
|
|
||||||
Date: Tue, 18 Aug 2020 14:47:38 +0100
|
|
||||||
Subject: [PATCH] arm: Add Neoverse N1 processor identification
|
|
||||||
|
|
||||||
Add MIDR and CPU part numbers for Neoverse N1
|
|
||||||
|
|
||||||
Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
|
|
||||||
Acked-by: Julien Grall <jgrall@amazon.com>
|
|
||||||
|
|
||||||
Upstream-Status: Backport
|
|
||||||
Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>
|
|
||||||
---
|
|
||||||
xen/include/asm-arm/processor.h | 2 ++
|
|
||||||
1 file changed, 2 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/xen/include/asm-arm/processor.h b/xen/include/asm-arm/processor.h
|
|
||||||
index aa642e3..3ca67f8 100644
|
|
||||||
--- a/xen/include/asm-arm/processor.h
|
|
||||||
+++ b/xen/include/asm-arm/processor.h
|
|
||||||
@@ -58,6 +58,7 @@
|
|
||||||
#define ARM_CPU_PART_CORTEX_A73 0xD09
|
|
||||||
#define ARM_CPU_PART_CORTEX_A75 0xD0A
|
|
||||||
#define ARM_CPU_PART_CORTEX_A76 0xD0B
|
|
||||||
+#define ARM_CPU_PART_NEOVERSE_N1 0xD0C
|
|
||||||
|
|
||||||
#define MIDR_CORTEX_A12 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A12)
|
|
||||||
#define MIDR_CORTEX_A17 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A17)
|
|
||||||
@@ -68,6 +69,7 @@
|
|
||||||
#define MIDR_CORTEX_A73 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A73)
|
|
||||||
#define MIDR_CORTEX_A75 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A75)
|
|
||||||
#define MIDR_CORTEX_A76 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A76)
|
|
||||||
+#define MIDR_NEOVERSE_N1 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_NEOVERSE_N1)
|
|
||||||
|
|
||||||
/* MPIDR Multiprocessor Affinity Register */
|
|
||||||
#define _MPIDR_UP (30)
|
|
||||||
--
|
|
||||||
2.7.4
|
|
||||||
|
|
||||||
-42
@@ -1,42 +0,0 @@
|
|||||||
From 858c0be8c2fa4125a0fa0acaa03ae730e5c7cb3c Mon Sep 17 00:00:00 2001
|
|
||||||
Message-Id: <858c0be8c2fa4125a0fa0acaa03ae730e5c7cb3c.1602684183.git.diego.sueiro@arm.com>
|
|
||||||
From: Bertrand Marquis <bertrand.marquis@arm.com>
|
|
||||||
Date: Tue, 18 Aug 2020 14:47:39 +0100
|
|
||||||
Subject: [PATCH] xen/arm: Enable CPU Erratum 1165522 for Neoverse
|
|
||||||
|
|
||||||
Enable CPU erratum of Speculative AT on the Neoverse N1 processor
|
|
||||||
versions r0p0 to r2p0.
|
|
||||||
Also Fix Cortex A76 Erratum string which had a wrong errata number.
|
|
||||||
|
|
||||||
Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
|
|
||||||
Acked-by: Julien Grall <jgrall@amazon.com>
|
|
||||||
|
|
||||||
Upstream-Status: Backport
|
|
||||||
Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>
|
|
||||||
---
|
|
||||||
xen/arch/arm/cpuerrata.c | 8 +++++++-
|
|
||||||
1 file changed, 7 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/xen/arch/arm/cpuerrata.c b/xen/arch/arm/cpuerrata.c
|
|
||||||
index 0248893..6c09017 100644
|
|
||||||
--- a/xen/arch/arm/cpuerrata.c
|
|
||||||
+++ b/xen/arch/arm/cpuerrata.c
|
|
||||||
@@ -477,8 +477,14 @@ static const struct arm_cpu_capabilities arm_errata[] = {
|
|
||||||
},
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
+ /* Neoverse r0p0 - r2p0 */
|
|
||||||
+ .desc = "ARM erratum 1165522",
|
|
||||||
+ .capability = ARM64_WORKAROUND_AT_SPECULATE,
|
|
||||||
+ MIDR_RANGE(MIDR_NEOVERSE_N1, 0, 2 << MIDR_VARIANT_SHIFT),
|
|
||||||
+ },
|
|
||||||
+ {
|
|
||||||
/* Cortex-A76 r0p0 - r2p0 */
|
|
||||||
- .desc = "ARM erratum 116522",
|
|
||||||
+ .desc = "ARM erratum 1165522",
|
|
||||||
.capability = ARM64_WORKAROUND_AT_SPECULATE,
|
|
||||||
MIDR_RANGE(MIDR_CORTEX_A76, 0, 2 << MIDR_VARIANT_SHIFT),
|
|
||||||
},
|
|
||||||
--
|
|
||||||
2.7.4
|
|
||||||
|
|
||||||
-35
@@ -1,35 +0,0 @@
|
|||||||
From 1814a626fb5811184eda64fe22f0055df4600211 Mon Sep 17 00:00:00 2001
|
|
||||||
Message-Id: <1814a626fb5811184eda64fe22f0055df4600211.1602684203.git.diego.sueiro@arm.com>
|
|
||||||
From: Julien Grall <jgrall@amazon.com>
|
|
||||||
Date: Tue, 25 Aug 2020 18:38:10 +0100
|
|
||||||
Subject: [PATCH] xen/arm: Update silicon-errata.txt with the Neovers AT
|
|
||||||
erratum
|
|
||||||
|
|
||||||
Commit 858c0be8c2fa "xen/arm: Enable CPU Erratum 1165522 for Neoverse"
|
|
||||||
added a new erratum but forgot to update silicon-errata.txt.
|
|
||||||
|
|
||||||
Update the file accordingly to keep track of errata workaround in Xen.
|
|
||||||
|
|
||||||
Signed-off-by: Julien Grall <jgrall@amazon.com>
|
|
||||||
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
|
|
||||||
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
|
|
||||||
|
|
||||||
Upstream-Status: Backport
|
|
||||||
Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>
|
|
||||||
---
|
|
||||||
docs/misc/arm/silicon-errata.txt | 1 +
|
|
||||||
1 file changed, 1 insertion(+)
|
|
||||||
|
|
||||||
diff --git a/docs/misc/arm/silicon-errata.txt b/docs/misc/arm/silicon-errata.txt
|
|
||||||
index 11e5a9d..e15d092 100644
|
|
||||||
--- a/docs/misc/arm/silicon-errata.txt
|
|
||||||
+++ b/docs/misc/arm/silicon-errata.txt
|
|
||||||
@@ -51,4 +51,5 @@ stable hypervisors.
|
|
||||||
| ARM | Cortex-A57 | #1319537 | N/A |
|
|
||||||
| ARM | Cortex-A72 | #1319367 | N/A |
|
|
||||||
| ARM | Cortex-A76 | #1165522 | N/A |
|
|
||||||
+| ARM | Neoverse-N1 | #1165522 | N/A
|
|
||||||
| ARM | MMU-500 | #842869 | N/A |
|
|
||||||
--
|
|
||||||
2.7.4
|
|
||||||
|
|
||||||
-51
@@ -1,51 +0,0 @@
|
|||||||
From 968bb86d04913f52d7678a842474f2a674a8b23e Mon Sep 17 00:00:00 2001
|
|
||||||
Message-Id: <968bb86d04913f52d7678a842474f2a674a8b23e.1602683678.git.diego.sueiro@arm.com>
|
|
||||||
From: Wei Chen <wei.chen@arm.com>
|
|
||||||
Date: Fri, 28 Aug 2020 02:34:03 +0000
|
|
||||||
Subject: [PATCH] xen/arm: Missing N1/A76/A75 FP registers in vCPU context
|
|
||||||
switch
|
|
||||||
|
|
||||||
Xen has cpu_has_fp/cpu_has_simd to detect whether the CPU supports
|
|
||||||
FP/SIMD or not. But currently, these two MACROs only consider value 0
|
|
||||||
of ID_AA64PFR0_EL1.FP/SIMD as FP/SIMD features enabled. But for CPUs
|
|
||||||
that support FP/SIMD and half-precision floating-point arithmetic, the
|
|
||||||
ID_AA64PFR0_EL1.FP/SIMD are 1 (see Arm ARM DDI0487F.b, D13.2.64).
|
|
||||||
For these CPUs, xen will treat them as no FP/SIMD support, the
|
|
||||||
vfp_save/restore_state will not take effect.
|
|
||||||
|
|
||||||
From the TRM documents of Cortex-A75/A76/N1, we know these CPUs support
|
|
||||||
basic Advanced SIMD/FP and half-precision floating-point arithmetic. In
|
|
||||||
this case, on N1/A76/A75 platforms, Xen will always miss the floating
|
|
||||||
pointer registers save/restore. If different vCPUs are running on the
|
|
||||||
same pCPU, the floating pointer registers will be corrupted randomly.
|
|
||||||
|
|
||||||
This patch fixes Xen on these new cores.
|
|
||||||
|
|
||||||
Signed-off-by: Wei Chen <wei.chen@arm.com>
|
|
||||||
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
|
|
||||||
Reviewed-by: Julien Grall <jgrall@amazon.com>
|
|
||||||
|
|
||||||
Upstream-Status: Backport
|
|
||||||
Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>
|
|
||||||
---
|
|
||||||
xen/include/asm-arm/cpufeature.h | 4 ++--
|
|
||||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/xen/include/asm-arm/cpufeature.h b/xen/include/asm-arm/cpufeature.h
|
|
||||||
index 674beb0..10878ea 100644
|
|
||||||
--- a/xen/include/asm-arm/cpufeature.h
|
|
||||||
+++ b/xen/include/asm-arm/cpufeature.h
|
|
||||||
@@ -13,8 +13,8 @@
|
|
||||||
#define cpu_has_el2_64 (boot_cpu_feature64(el2) >= 1)
|
|
||||||
#define cpu_has_el3_32 (boot_cpu_feature64(el3) == 2)
|
|
||||||
#define cpu_has_el3_64 (boot_cpu_feature64(el3) >= 1)
|
|
||||||
-#define cpu_has_fp (boot_cpu_feature64(fp) == 0)
|
|
||||||
-#define cpu_has_simd (boot_cpu_feature64(simd) == 0)
|
|
||||||
+#define cpu_has_fp (boot_cpu_feature64(fp) < 8)
|
|
||||||
+#define cpu_has_simd (boot_cpu_feature64(simd) < 8)
|
|
||||||
#define cpu_has_gicv3 (boot_cpu_feature64(gic) == 1)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
--
|
|
||||||
2.7.4
|
|
||||||
|
|
||||||
@@ -1,9 +1,5 @@
|
|||||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-4.14:"
|
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-4.14:"
|
||||||
|
|
||||||
SRC_URI += " \
|
SRC_URI += " \
|
||||||
file://0001-arm-Add-Neoverse-N1-processor-identification.patch \
|
file://0001-xen-arm-Throw-messages-for-unknown-FP-SIMD-implement.patch \
|
||||||
file://0002-xen-arm-Enable-CPU-Erratum-1165522-for-Neoverse.patch \
|
|
||||||
file://0003-xen-arm-Update-silicon-errata.txt-with-the-Neovers-A.patch \
|
|
||||||
file://0004-xen-arm-Missing-N1-A76-A75-FP-registers-in-vCPU-cont.patch \
|
|
||||||
file://0005-xen-arm-Throw-messages-for-unknown-FP-SIMD-implement.patch \
|
|
||||||
"
|
"
|
||||||
|
|||||||
Reference in New Issue
Block a user