Skip to contentSkip to conversation

arm-bsp: Add trusted firmware support for N1SDP

PATCH In review Khasim Mohammed 2 participants 4 messages Jun 2, 2020 – Jun 10, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm-bsp: Add trusted firmware support for N1SDP

- Add new bbappend to fetch tfa ver 2.2 required for N1SDP
- Apply additional patch required for N1SDP
- Update machine conf to add image dependency for trusted firmware component

Issue-Id: PLATFORMS-3134

Change-Id Ibf593c1818c9ea08acf71c6b5b80abc4aca79723
---
 meta-arm-bsp/conf/machine/n1sdp.conf          |  6 +++
 ...able-workaround-for-N1-Erratum-13157.patch | 46 +++++++++++++++++++
 .../trusted-firmware-a-n1sdp.inc              | 13 ++++++
 .../trusted-firmware-a_2.2.bbappend           | 11 +++++
 4 files changed, 76 insertions(+)
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-a/files/n1sdp/0001-n1sdp-arm-tf-disable-workaround-for-N1-Erratum-13157.patch
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a-n1sdp.inc
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a_2.2.bbappend
meta-arm-bsp/conf/machine/n1sdp.conf +6 -0
index 5fddcad..133fb89 100644
@@ -21,3 +21,9 @@ PREFERRED_VERSION_linux-linaro-arm ?= "5.4%"
 
 # RTL8168E Gigabit Ethernet Controller is attached to the PCIe interface
 MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "linux-firmware-rtl8168"
+
+# Trusted firmware v2.2 version
+PREFERRED_PROVIDER_virtual/trusted-firmware-a ?= "trusted-firmware-a"
+PREFERRED_VERSION_trusted-firmware-a ?= "2.2%"
+
+EXTRA_IMAGEDEPENDS += "virtual/trusted-firmware-a"
meta-arm-bsp/recipes-bsp/trusted-firmware-a/files/n1sdp/0001-n1sdp-arm-tf-disable-workaround-for-N1-Erratum-13157.patch new file +46 -0

46 lines not on this page · raw message

meta-arm-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a-n1sdp.inc new file +13 -0
new file mode 100644
index 0000000..ad4af5a
@@ -0,0 +1,13 @@
+# N1SDP specific TFA support
+
+COMPATIBLE_MACHINE = "n1sdp"
+TFA_PLATFORM       = "n1sdp"
+TFA_BUILD_TARGET   = "bl31"
+TFA_DEBUG          = "1"
+TFA_MBEDTLS        = "0"
+TFA_UBOOT          = "0"
+
+FILESEXTRAPATHS_prepend := "${THISDIR}/files/n1sdp:"
+SRC_URI_append = " \
+    file://0001-n1sdp-arm-tf-disable-workaround-for-N1-Erratum-13157.patch \
+    "
meta-arm-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a_2.2.bbappend new file +11 -0
new file mode 100644
index 0000000..a87999f
@@ -0,0 +1,11 @@
+# Machine specific TFAs
+
+MACHINE_TFA_REQUIRE ?= ""
+MACHINE_TFA_REQUIRE_n1sdp = "trusted-firmware-a-n1sdp.inc"
+
+require ${MACHINE_TFA_REQUIRE}
+
+# TFA referred in release tag N1SDP-2020.03.26
+SRCREV_tfa_n1sdp = "cfb3f73344217aa000aaff9d84baad7527af75bf"
+
+PV_n1sdp = "2.2+git${SRCPV}"
Signature · 1 line
2.17.1
#1 lore raw
Quoted 8 lines · Khasim Mohammed

- Add new bbappend to fetch tfa ver 2.2 required for N1SDP
- Apply additional patch required for N1SDP
- Update machine conf to add image dependency for trusted firmware component

Issue-Id: PLATFORMS-3134

Change-Id Ibf593c1818c9ea08acf71c6b5b80abc4aca79723

Pulled into master

Thanks,
Jon

Quoted 117 lines
---
 meta-arm-bsp/conf/machine/n1sdp.conf          |  6 +++
 ...able-workaround-for-N1-Erratum-13157.patch | 46 +++++++++++++++++++
 .../trusted-firmware-a-n1sdp.inc              | 13 ++++++
 .../trusted-firmware-a_2.2.bbappend           | 11 +++++
 4 files changed, 76 insertions(+)
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-a/files/n1sdp/0001-n1sdp-arm-tf-disable-workaround-for-N1-Erratum-13157.patch
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a-n1sdp.inc
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a_2.2.bbappend
meta-arm-bsp/conf/machine/n1sdp.conf +6 -0
index 5fddcad..133fb89 100644
@@ -21,3 +21,9 @@ PREFERRED_VERSION_linux-linaro-arm ?= "5.4%"
 
 # RTL8168E Gigabit Ethernet Controller is attached to the PCIe interface
 MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "linux-firmware-rtl8168"
+
+# Trusted firmware v2.2 version
+PREFERRED_PROVIDER_virtual/trusted-firmware-a ?= "trusted-firmware-a"
+PREFERRED_VERSION_trusted-firmware-a ?= "2.2%"
+
+EXTRA_IMAGEDEPENDS += "virtual/trusted-firmware-a"
meta-arm-bsp/recipes-bsp/trusted-firmware-a/files/n1sdp/0001-n1sdp-arm-tf-disable-workaround-for-N1-Erratum-13157.patch new file +46 -0
new file mode 100644
index 0000000..53a6616
@@ -0,0 +1,46 @@
+From 76847eb46e77d094eb8611760dd1ab880f617321 Mon Sep 17 00:00:00 2001
+From: James Yang <[email protected]>
+Date: Wed, 4 Sep 2019 10:49:45 -0500
+Subject: [PATCH] n1sdp/arm-tf: disable workaround for N1 Erratum 1315703 and
+ Spectre v4
+
+This patch disables the workaround for Erratum 1315703 so that the N1 CPU
+performance in the N1 SDP better reflects that of released versions of the
+N1 for software that does not require mitigation for Spectre Variant 4.
+
+N1 SDP uses N1 version r1p0, which is affected by Erratum 1315703, which
+is fixed in N1 r3p1.  The workaround for r1p0 disables the CPU performance
+feature of bypassing of stores by younger loads.  This can significantly
+affect performance.  The Erratum is classified "Cat A (Rare)" and requires
+a specific sequence of events to occur.
+
+Disabling this CPU performance feature is also the mitigation for Spectre
+Variant 4 (CVE-2018-3639).  On CPUs that provide the PSTATE.SBSS feature,
+the OS selectively applies the mitigation only to programs that require it,
+leaving the performance of other programs unaffected.  However, N1 r1p0
+does not have the PSTATE.SBSS feature (which is introduced in N1 r3p1), and
+Arm-TF does not provide the interface to to dynamically disable the CPU
+performance feature.  Therefore, applying the workaround penalizes ALL
+software running on N1 SDP, including those that do not require mitigation.
+
+This patch is meant for performance evaluation purposes ONLY and should not
+be used for software that requires a seccomp computing environment.
+
+Signed-off-by: James Yang <[email protected]>
+---
+ plat/arm/board/n1sdp/platform.mk | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/plat/arm/board/n1sdp/platform.mk b/plat/arm/board/n1sdp/platform.mk
+index 986bd70a..7e30c857 100644
+--- a/plat/arm/board/n1sdp/platform.mk
++++ b/plat/arm/board/n1sdp/platform.mk
+@@ -66,3 +66,5 @@ include plat/arm/common/arm_common.mk
+ include plat/arm/css/common/css_common.mk
+ include plat/arm/board/common/board_common.mk
+ 
++# N1SDP: disable workaround for Errata 1315703 and global Spectre v4 mitigation
++override ERRATA_N1_1315703 := 0
+-- 
+2.17.1
+
meta-arm-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a-n1sdp.inc new file +13 -0
new file mode 100644
index 0000000..ad4af5a
@@ -0,0 +1,13 @@
+# N1SDP specific TFA support
+
+COMPATIBLE_MACHINE = "n1sdp"
+TFA_PLATFORM       = "n1sdp"
+TFA_BUILD_TARGET   = "bl31"
+TFA_DEBUG          = "1"
+TFA_MBEDTLS        = "0"
+TFA_UBOOT          = "0"
+
+FILESEXTRAPATHS_prepend := "${THISDIR}/files/n1sdp:"
+SRC_URI_append = " \
+    file://0001-n1sdp-arm-tf-disable-workaround-for-N1-Erratum-13157.patch \
+    "
meta-arm-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a_2.2.bbappend new file +11 -0
new file mode 100644
index 0000000..a87999f
@@ -0,0 +1,11 @@
+# Machine specific TFAs
+
+MACHINE_TFA_REQUIRE ?= ""
+MACHINE_TFA_REQUIRE_n1sdp = "trusted-firmware-a-n1sdp.inc"
+
+require ${MACHINE_TFA_REQUIRE}
+
+# TFA referred in release tag N1SDP-2020.03.26
+SRCREV_tfa_n1sdp = "cfb3f73344217aa000aaff9d84baad7527af75bf"
+
+PV_n1sdp = "2.2+git${SRCPV}"
Signature · 1 line
2.17.1
#2 lore raw

Hi Jon,

Quoted 6 lines · Jon Mason via lists.yoctoproject.org
Quoted 5 lines · Khasim Mohammed

- Add new bbappend to fetch tfa ver 2.2 required for N1SDP
- Apply additional patch required for N1SDP
- Update machine conf to add image dependency for trusted firmware component

Quoted 6 lines
Quoted 3 lines

Issue-Id: PLATFORMS-3134

Change-Id Ibf593c1818c9ea08acf71c6b5b80abc4aca79723

Pulled into master

Can you please pull this on Dunfell branch as well ?

Regards,
Khasim

Quoted 162 lines

Thanks,
Jon

Quoted 157 lines
---
 meta-arm-bsp/conf/machine/n1sdp.conf          |  6 +++
 ...able-workaround-for-N1-Erratum-13157.patch | 46
+++++++++++++++++++
 .../trusted-firmware-a-n1sdp.inc              | 13 ++++++
 .../trusted-firmware-a_2.2.bbappend           | 11 +++++
 4 files changed, 76 insertions(+)
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-
a/files/n1sdp/0001-n1sdp-arm-tf-disable-workaround-for-N1-Erratum-
13157.patch
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-
a/trusted-firmware-a-n1sdp.inc
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-

a/trusted-firmware-a_2.2.bbappend

meta-arm- renamed from meta-arm-bsp/conf/machine/n1sdp.conf +0 -0

bsp/conf/machine/n1sdp.conf
index 5fddcad..133fb89 100644

meta-arm-bsp/conf/machine/n1sdp.conf +0 -0
@@ -21,3 +21,9 @@ PREFERRED_VERSION_linux-linaro-arm ?= "5.4%"
 
 # RTL8168E Gigabit Ethernet Controller is attached to the PCIe

interface
MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "linux-firmware-rtl8168"

meta-arm-bsp/conf/machine/n1sdp.conf +3 -0
+
+# Trusted firmware v2.2 version
+PREFERRED_PROVIDER_virtual/trusted-firmware-a ?= "trusted-

firmware-a"

meta-arm-bsp/conf/machine/n1sdp.conf +3 -0
+PREFERRED_VERSION_trusted-firmware-a ?= "2.2%"
+
+EXTRA_IMAGEDEPENDS += "virtual/trusted-firmware-a"
(quoted diff) +0 -0

a/files/n1sdp/0001-n1sdp-arm-tf-disable-workaround-for-N1-Erratum- 13157.patch b/meta-arm-bsp/recipes-bsp/trusted-firmware- a/files/n1sdp/0001-n1sdp-arm-tf-disable-workaround-for-N1-Erratum- 13157.patch
new file mode 100644
index 0000000..53a6616

meta-arm-bsp/recipes-bsp/trusted-firmware-a/files/n1sdp/0001- new file +0 -0

n1sdp-arm-tf-disable-workaround-for-N1-Erratum-13157.patch

meta-arm-bsp/recipes-bsp/trusted-firmware-a/files/n1sdp/0001- new file +1 -0
@@ -0,0 +1,46 @@
+From 76847eb46e77d094eb8611760dd1ab880f617321 Mon Sep 17 00:00:00

2001

meta-arm-bsp/recipes-bsp/trusted-firmware-a/files/n1sdp/0001- new file +3 -0
+From: James Yang <[email protected]>
+Date: Wed, 4 Sep 2019 10:49:45 -0500
+Subject: [PATCH] n1sdp/arm-tf: disable workaround for N1 Erratum

1315703 and
+ Spectre v4

meta-arm-bsp/recipes-bsp/trusted-firmware-a/files/n1sdp/0001- new file +2 -0
+
+This patch disables the workaround for Erratum 1315703 so that the

N1 CPU
+performance in the N1 SDP better reflects that of released versions of the
+N1 for software that does not require mitigation for Spectre Variant 4.

meta-arm-bsp/recipes-bsp/trusted-firmware-a/files/n1sdp/0001- new file +2 -0
+
+N1 SDP uses N1 version r1p0, which is affected by Erratum 1315703,

which
+is fixed in N1 r3p1. The workaround for r1p0 disables the CPU performance
+feature of bypassing of stores by younger loads. This can significantly
+affect performance. The Erratum is classified "Cat A (Rare)" and requires

meta-arm-bsp/recipes-bsp/trusted-firmware-a/files/n1sdp/0001- new file +3 -0
+a specific sequence of events to occur.
+
+Disabling this CPU performance feature is also the mitigation for

Spectre
+Variant 4 (CVE-2018-3639). On CPUs that provide the PSTATE.SBSS feature,
+the OS selectively applies the mitigation only to programs that require it,
+leaving the performance of other programs unaffected. However, N1 r1p0
+does not have the PSTATE.SBSS feature (which is introduced in N1 r3p1), and
+Arm-TF does not provide the interface to to dynamically disable the CPU
+performance feature. Therefore, applying the workaround penalizes ALL
+software running on N1 SDP, including those that do not require mitigation.

meta-arm-bsp/recipes-bsp/trusted-firmware-a/files/n1sdp/0001- new file +2 -0
+
+This patch is meant for performance evaluation purposes ONLY and

should not
+be used for software that requires a seccomp computing environment.

meta-arm-bsp/recipes-bsp/trusted-firmware-a/files/n1sdp/0001- new file +7 -0
+
+Signed-off-by: James Yang <[email protected]>
+---
+ plat/arm/board/n1sdp/platform.mk | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/plat/arm/board/n1sdp/platform.mk

b/plat/arm/board/n1sdp/platform.mk
+index 986bd70a..7e30c857 100644
+--- a/plat/arm/board/n1sdp/platform.mk
++++ b/plat/arm/board/n1sdp/platform.mk
+@@ -66,3 +66,5 @@ include plat/arm/common/arm_common.mk
+ include plat/arm/css/common/css_common.mk
+ include plat/arm/board/common/board_common.mk
+
++# N1SDP: disable workaround for Errata 1315703 and global Spectre v4 mitigation
++override ERRATA_N1_1315703 := 0
+--
+2.17.1

meta-arm-bsp/recipes-bsp/trusted-firmware-a/files/n1sdp/0001- new file +1 -0
+
(quoted diff) +0 -0

firmware-a-n1sdp.inc b/meta-arm-bsp/recipes-bsp/trusted-firmware- a/trusted-firmware-a-n1sdp.inc
new file mode 100644
index 0000000..ad4af5a

meta-arm-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware- new file +0 -0

a-n1sdp.inc

meta-arm-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware- new file +12 -0
@@ -0,0 +1,13 @@
+# N1SDP specific TFA support
+
+COMPATIBLE_MACHINE = "n1sdp"
+TFA_PLATFORM       = "n1sdp"
+TFA_BUILD_TARGET   = "bl31"
+TFA_DEBUG          = "1"
+TFA_MBEDTLS        = "0"
+TFA_UBOOT          = "0"
+
+FILESEXTRAPATHS_prepend := "${THISDIR}/files/n1sdp:"
+SRC_URI_append = " \
+    file://0001-n1sdp-arm-tf-disable-workaround-for-N1-Erratum-

13157.patch \

meta-arm-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware- new file +1 -0
+    "
(quoted diff) +0 -0

firmware-a_2.2.bbappend b/meta-arm-bsp/recipes-bsp/trusted- firmware-a/trusted-firmware-a_2.2.bbappend
new file mode 100644
index 0000000..a87999f

meta-arm-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware- new file +0 -0

a_2.2.bbappend

meta-arm-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware- new file +11 -0
@@ -0,0 +1,11 @@
+# Machine specific TFAs
+
+MACHINE_TFA_REQUIRE ?= ""
+MACHINE_TFA_REQUIRE_n1sdp = "trusted-firmware-a-n1sdp.inc"
+
+require ${MACHINE_TFA_REQUIRE}
+
+# TFA referred in release tag N1SDP-2020.03.26
+SRCREV_tfa_n1sdp = "cfb3f73344217aa000aaff9d84baad7527af75bf"
+
+PV_n1sdp = "2.2+git${SRCPV}"
Signature · 1 line
2.17.1
#3 lore raw
Quoted 10 lines · Khasim Mohammed

Hi Jon,

Quoted 6 lines · Jon Mason via lists.yoctoproject.org
Quoted 5 lines · Khasim Mohammed

- Add new bbappend to fetch tfa ver 2.2 required for N1SDP
- Apply additional patch required for N1SDP
- Update machine conf to add image dependency for trusted firmware component

Quoted 7 lines
Quoted 6 lines
Quoted 3 lines

Issue-Id: PLATFORMS-3134

Change-Id Ibf593c1818c9ea08acf71c6b5b80abc4aca79723

Pulled into master

Can you please pull this on Dunfell branch as well ?

Done.

Thanks,
Jon

Quoted 167 lines

Regards,
Khasim

Quoted 162 lines

Thanks,
Jon

Quoted 157 lines
---
 meta-arm-bsp/conf/machine/n1sdp.conf          |  6 +++
 ...able-workaround-for-N1-Erratum-13157.patch | 46
+++++++++++++++++++
 .../trusted-firmware-a-n1sdp.inc              | 13 ++++++
 .../trusted-firmware-a_2.2.bbappend           | 11 +++++
 4 files changed, 76 insertions(+)
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-
a/files/n1sdp/0001-n1sdp-arm-tf-disable-workaround-for-N1-Erratum-
13157.patch
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-
a/trusted-firmware-a-n1sdp.inc
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-

a/trusted-firmware-a_2.2.bbappend

meta-arm- renamed from meta-arm-bsp/conf/machine/n1sdp.conf +0 -0

bsp/conf/machine/n1sdp.conf
index 5fddcad..133fb89 100644

meta-arm-bsp/conf/machine/n1sdp.conf +0 -0
@@ -21,3 +21,9 @@ PREFERRED_VERSION_linux-linaro-arm ?= "5.4%"
 
 # RTL8168E Gigabit Ethernet Controller is attached to the PCIe

interface
MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "linux-firmware-rtl8168"

meta-arm-bsp/conf/machine/n1sdp.conf +3 -0
+
+# Trusted firmware v2.2 version
+PREFERRED_PROVIDER_virtual/trusted-firmware-a ?= "trusted-

firmware-a"

meta-arm-bsp/conf/machine/n1sdp.conf +3 -0
+PREFERRED_VERSION_trusted-firmware-a ?= "2.2%"
+
+EXTRA_IMAGEDEPENDS += "virtual/trusted-firmware-a"
(quoted diff) +0 -0

a/files/n1sdp/0001-n1sdp-arm-tf-disable-workaround-for-N1-Erratum- 13157.patch b/meta-arm-bsp/recipes-bsp/trusted-firmware- a/files/n1sdp/0001-n1sdp-arm-tf-disable-workaround-for-N1-Erratum- 13157.patch
new file mode 100644
index 0000000..53a6616

meta-arm-bsp/recipes-bsp/trusted-firmware-a/files/n1sdp/0001- new file +0 -0

n1sdp-arm-tf-disable-workaround-for-N1-Erratum-13157.patch

meta-arm-bsp/recipes-bsp/trusted-firmware-a/files/n1sdp/0001- new file +1 -0
@@ -0,0 +1,46 @@
+From 76847eb46e77d094eb8611760dd1ab880f617321 Mon Sep 17 00:00:00

2001

meta-arm-bsp/recipes-bsp/trusted-firmware-a/files/n1sdp/0001- new file +3 -0
+From: James Yang <[email protected]>
+Date: Wed, 4 Sep 2019 10:49:45 -0500
+Subject: [PATCH] n1sdp/arm-tf: disable workaround for N1 Erratum

1315703 and
+ Spectre v4

meta-arm-bsp/recipes-bsp/trusted-firmware-a/files/n1sdp/0001- new file +2 -0
+
+This patch disables the workaround for Erratum 1315703 so that the

N1 CPU
+performance in the N1 SDP better reflects that of released versions of the
+N1 for software that does not require mitigation for Spectre Variant 4.

meta-arm-bsp/recipes-bsp/trusted-firmware-a/files/n1sdp/0001- new file +2 -0
+
+N1 SDP uses N1 version r1p0, which is affected by Erratum 1315703,

which
+is fixed in N1 r3p1. The workaround for r1p0 disables the CPU performance
+feature of bypassing of stores by younger loads. This can significantly
+affect performance. The Erratum is classified "Cat A (Rare)" and requires

meta-arm-bsp/recipes-bsp/trusted-firmware-a/files/n1sdp/0001- new file +3 -0
+a specific sequence of events to occur.
+
+Disabling this CPU performance feature is also the mitigation for

Spectre
+Variant 4 (CVE-2018-3639). On CPUs that provide the PSTATE.SBSS feature,
+the OS selectively applies the mitigation only to programs that require it,
+leaving the performance of other programs unaffected. However, N1 r1p0
+does not have the PSTATE.SBSS feature (which is introduced in N1 r3p1), and
+Arm-TF does not provide the interface to to dynamically disable the CPU
+performance feature. Therefore, applying the workaround penalizes ALL
+software running on N1 SDP, including those that do not require mitigation.

meta-arm-bsp/recipes-bsp/trusted-firmware-a/files/n1sdp/0001- new file +2 -0
+
+This patch is meant for performance evaluation purposes ONLY and

should not
+be used for software that requires a seccomp computing environment.

meta-arm-bsp/recipes-bsp/trusted-firmware-a/files/n1sdp/0001- new file +7 -0
+
+Signed-off-by: James Yang <[email protected]>
+---
+ plat/arm/board/n1sdp/platform.mk | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/plat/arm/board/n1sdp/platform.mk

b/plat/arm/board/n1sdp/platform.mk
+index 986bd70a..7e30c857 100644
+--- a/plat/arm/board/n1sdp/platform.mk
++++ b/plat/arm/board/n1sdp/platform.mk
+@@ -66,3 +66,5 @@ include plat/arm/common/arm_common.mk
+ include plat/arm/css/common/css_common.mk
+ include plat/arm/board/common/board_common.mk
+
++# N1SDP: disable workaround for Errata 1315703 and global Spectre v4 mitigation
++override ERRATA_N1_1315703 := 0
+--
+2.17.1

meta-arm-bsp/recipes-bsp/trusted-firmware-a/files/n1sdp/0001- new file +1 -0
+
(quoted diff) +0 -0

firmware-a-n1sdp.inc b/meta-arm-bsp/recipes-bsp/trusted-firmware- a/trusted-firmware-a-n1sdp.inc
new file mode 100644
index 0000000..ad4af5a

meta-arm-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware- new file +0 -0

a-n1sdp.inc

meta-arm-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware- new file +12 -0
@@ -0,0 +1,13 @@
+# N1SDP specific TFA support
+
+COMPATIBLE_MACHINE = "n1sdp"
+TFA_PLATFORM       = "n1sdp"
+TFA_BUILD_TARGET   = "bl31"
+TFA_DEBUG          = "1"
+TFA_MBEDTLS        = "0"
+TFA_UBOOT          = "0"
+
+FILESEXTRAPATHS_prepend := "${THISDIR}/files/n1sdp:"
+SRC_URI_append = " \
+    file://0001-n1sdp-arm-tf-disable-workaround-for-N1-Erratum-

13157.patch \

meta-arm-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware- new file +1 -0
+    "
(quoted diff) +0 -0

firmware-a_2.2.bbappend b/meta-arm-bsp/recipes-bsp/trusted- firmware-a/trusted-firmware-a_2.2.bbappend
new file mode 100644
index 0000000..a87999f

meta-arm-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware- new file +0 -0

a_2.2.bbappend

meta-arm-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware- new file +11 -0
@@ -0,0 +1,11 @@
+# Machine specific TFAs
+
+MACHINE_TFA_REQUIRE ?= ""
+MACHINE_TFA_REQUIRE_n1sdp = "trusted-firmware-a-n1sdp.inc"
+
+require ${MACHINE_TFA_REQUIRE}
+
+# TFA referred in release tag N1SDP-2020.03.26
+SRCREV_tfa_n1sdp = "cfb3f73344217aa000aaff9d84baad7527af75bf"
+
+PV_n1sdp = "2.2+git${SRCPV}"
Signature · 1 line
2.17.1