mbox series

[edk2,edk2-non-osi,v3,0/7] Improve D0x platforms and bug fix

Message ID 1517572648-11343-1-git-send-email-heyi.guo@linaro.org
Headers show
Series Improve D0x platforms and bug fix | expand

Message

gary guo Feb. 2, 2018, 11:57 a.m. UTC
The major features of this patchset:
1 Upgrade trusted firmware to 1.4
2 Workarounds for CVE-2017-5715 on Cortex A57/A72/A73 and A75 #1214
3 Delete some binary for open-source version
4 Update binary follow changing DmaLib to CoherentDmaLib

Code can also be found in github: https://github.com/hisilicon/OpenPlatformPkg.git
branch: rp-1802-osi-v3


Heyi Guo (6):
  Hisilicon D0x: Fix network interface order issue
  Hisilicon D0x: Delete SnpPlatform
  Hisilicon D03/D05: Update SasDriverDxe binary
  Hisilicon D03/D05: Update NativeOhci binary
  Hisilicon/D03: Update binary of trusted-firmware
  Hisilicon/D05: Update binary of trusted-firmware

Jason Zhang (1):
  Hisilicon D03/D05: Delete SasPlatform

 Platform/Hisilicon/D03/Drivers/Net/SnpPV600Dxe/SnpPV600Dxe.efi | Bin 26688 -> 27392 bytes
 Platform/Hisilicon/D03/Drivers/Net/SnpPlatform/SnpPlatform.efi | Bin 3040 -> 0 bytes
 Platform/Hisilicon/D03/Drivers/Net/SnpPlatform/SnpPlatform.inf |  24 --------------------
 Platform/Hisilicon/D03/Drivers/OhciDxe/NativeOhci.efi          | Bin 21664 -> 22336 bytes
 Platform/Hisilicon/D03/Drivers/Sas/SasDriverDxe.efi            | Bin 98112 -> 100224 bytes
 Platform/Hisilicon/D03/Drivers/SasPlatform/SasPlatform.efi     | Bin 3040 -> 0 bytes
 Platform/Hisilicon/D03/Drivers/SasPlatform/SasPlatform.inf     |  24 --------------------
 Platform/Hisilicon/D03/bl1.bin                                 | Bin 14336 -> 12416 bytes
 Platform/Hisilicon/D03/fip.bin                                 | Bin 62513 -> 66758 bytes
 Platform/Hisilicon/D05/Drivers/Net/SnpPV600Dxe/SnpPV600Dxe.efi | Bin 28544 -> 27680 bytes
 Platform/Hisilicon/D05/Drivers/Net/SnpPlatform/SnpPlatform.efi | Bin 3392 -> 0 bytes
 Platform/Hisilicon/D05/Drivers/Net/SnpPlatform/SnpPlatform.inf |  24 --------------------
 Platform/Hisilicon/D05/Drivers/OhciDxe/NativeOhci.efi          | Bin 23328 -> 22624 bytes
 Platform/Hisilicon/D05/Drivers/Sas/SasDriverDxe.efi            | Bin 112832 -> 115008 bytes
 Platform/Hisilicon/D05/Drivers/SasPlatform/SasPlatform.efi     | Bin 3424 -> 0 bytes
 Platform/Hisilicon/D05/Drivers/SasPlatform/SasPlatform.inf     |  24 --------------------
 Platform/Hisilicon/D05/bl1.bin                                 | Bin 14344 -> 12424 bytes
 Platform/Hisilicon/D05/fip.bin                                 | Bin 41493 -> 37546 bytes
 18 files changed, 96 deletions(-)
 delete mode 100644 Platform/Hisilicon/D03/Drivers/Net/SnpPlatform/SnpPlatform.efi
 delete mode 100644 Platform/Hisilicon/D03/Drivers/Net/SnpPlatform/SnpPlatform.inf
 delete mode 100644 Platform/Hisilicon/D03/Drivers/SasPlatform/SasPlatform.efi
 delete mode 100644 Platform/Hisilicon/D03/Drivers/SasPlatform/SasPlatform.inf
 delete mode 100644 Platform/Hisilicon/D05/Drivers/Net/SnpPlatform/SnpPlatform.efi
 delete mode 100644 Platform/Hisilicon/D05/Drivers/Net/SnpPlatform/SnpPlatform.inf
 delete mode 100644 Platform/Hisilicon/D05/Drivers/SasPlatform/SasPlatform.efi
 delete mode 100644 Platform/Hisilicon/D05/Drivers/SasPlatform/SasPlatform.inf

-- 
1.9.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Comments

gary guo Feb. 2, 2018, 11:57 a.m. UTC | #1
1. Rebuild SnpPV600Dxe binary for switching DmaLib to CoherentDmaLib.
2. Fixed bug:Confusing Ethernet port sequence.
Move the most right Ethernet port (when looking from the front of the
chassis) to the first one in BootManage for PXE boot.
https://bugs.linaro.org/show_bug.cgi?id=2657

Note:
This patch is related to "Open SnpPlatform source code" and
"Change DmaLib to CoherentDmaLib" in edk2-platform.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jason Zhang <zhangjinsong2@huawei.com>

Signed-off-by: Ming Huang <huangming23@huawei.com>

Signed-off-by: Heyi Guo <heyi.guo@linaro.org>

Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>

Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>

---
 Platform/Hisilicon/D03/Drivers/Net/SnpPV600Dxe/SnpPV600Dxe.efi | Bin 26688 -> 27392 bytes
 Platform/Hisilicon/D05/Drivers/Net/SnpPV600Dxe/SnpPV600Dxe.efi | Bin 28544 -> 27680 bytes
 2 files changed, 0 insertions(+), 0 deletions(-)

diff --git a/Platform/Hisilicon/D03/Drivers/Net/SnpPV600Dxe/SnpPV600Dxe.efi b/Platform/Hisilicon/D03/Drivers/Net/SnpPV600Dxe/SnpPV600Dxe.efi
index 8ce6a6d..bcb3e4f 100644
Binary files a/Platform/Hisilicon/D03/Drivers/Net/SnpPV600Dxe/SnpPV600Dxe.efi and b/Platform/Hisilicon/D03/Drivers/Net/SnpPV600Dxe/SnpPV600Dxe.efi differ
diff --git a/Platform/Hisilicon/D05/Drivers/Net/SnpPV600Dxe/SnpPV600Dxe.efi b/Platform/Hisilicon/D05/Drivers/Net/SnpPV600Dxe/SnpPV600Dxe.efi
index bc7942a..582f645 100644
Binary files a/Platform/Hisilicon/D05/Drivers/Net/SnpPV600Dxe/SnpPV600Dxe.efi and b/Platform/Hisilicon/D05/Drivers/Net/SnpPV600Dxe/SnpPV600Dxe.efi differ
-- 
1.9.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
gary guo Feb. 2, 2018, 11:57 a.m. UTC | #2
Update SasDriverDxe binary for changing DmaLib to CoherentDmaLib.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ming Huang <huangming23@huawei.com>

Signed-off-by: Heyi Guo <heyi.guo@linaro.org>

Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>

---
 Platform/Hisilicon/D03/Drivers/Sas/SasDriverDxe.efi | Bin 98112 -> 100224 bytes
 Platform/Hisilicon/D05/Drivers/Sas/SasDriverDxe.efi | Bin 112832 -> 115008 bytes
 2 files changed, 0 insertions(+), 0 deletions(-)

diff --git a/Platform/Hisilicon/D03/Drivers/Sas/SasDriverDxe.efi b/Platform/Hisilicon/D03/Drivers/Sas/SasDriverDxe.efi
index c37b922..6b61504 100644
Binary files a/Platform/Hisilicon/D03/Drivers/Sas/SasDriverDxe.efi and b/Platform/Hisilicon/D03/Drivers/Sas/SasDriverDxe.efi differ
diff --git a/Platform/Hisilicon/D05/Drivers/Sas/SasDriverDxe.efi b/Platform/Hisilicon/D05/Drivers/Sas/SasDriverDxe.efi
index a57b8e1..b74c23b 100644
Binary files a/Platform/Hisilicon/D05/Drivers/Sas/SasDriverDxe.efi and b/Platform/Hisilicon/D05/Drivers/Sas/SasDriverDxe.efi differ
-- 
1.9.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
gary guo Feb. 2, 2018, 11:57 a.m. UTC | #3
Update NativeOhci bianry for changing DmaLib to CoherentDmaLib.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ming Huang <huangming23@huawei.com>

Signed-off-by: Heyi Guo <heyi.guo@linaro.org>

Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>

---
 Platform/Hisilicon/D03/Drivers/OhciDxe/NativeOhci.efi | Bin 21664 -> 22336 bytes
 Platform/Hisilicon/D05/Drivers/OhciDxe/NativeOhci.efi | Bin 23328 -> 22624 bytes
 2 files changed, 0 insertions(+), 0 deletions(-)

diff --git a/Platform/Hisilicon/D03/Drivers/OhciDxe/NativeOhci.efi b/Platform/Hisilicon/D03/Drivers/OhciDxe/NativeOhci.efi
index e1970fd..5472254 100644
Binary files a/Platform/Hisilicon/D03/Drivers/OhciDxe/NativeOhci.efi and b/Platform/Hisilicon/D03/Drivers/OhciDxe/NativeOhci.efi differ
diff --git a/Platform/Hisilicon/D05/Drivers/OhciDxe/NativeOhci.efi b/Platform/Hisilicon/D05/Drivers/OhciDxe/NativeOhci.efi
index 9e7dd0e..7f0ac10 100644
Binary files a/Platform/Hisilicon/D05/Drivers/OhciDxe/NativeOhci.efi and b/Platform/Hisilicon/D05/Drivers/OhciDxe/NativeOhci.efi differ
-- 
1.9.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
gary guo Feb. 2, 2018, 11:57 a.m. UTC | #4
1 Workarounds for CVE-2017-5715 on Cortex A57/A72/A73 and A75 #1214.
2 Upgrade trusted firmware to 1.4

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ming Huang <huangming23@huawei.com>

Signed-off-by: Heyi Guo <heyi.guo@linaro.org>

Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>

Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>

---
 Platform/Hisilicon/D03/bl1.bin | Bin 14336 -> 12416 bytes
 Platform/Hisilicon/D03/fip.bin | Bin 62513 -> 66758 bytes
 2 files changed, 0 insertions(+), 0 deletions(-)

diff --git a/Platform/Hisilicon/D03/bl1.bin b/Platform/Hisilicon/D03/bl1.bin
index cdaa743..19ceb9b 100644
Binary files a/Platform/Hisilicon/D03/bl1.bin and b/Platform/Hisilicon/D03/bl1.bin differ
diff --git a/Platform/Hisilicon/D03/fip.bin b/Platform/Hisilicon/D03/fip.bin
index ae4ed1a..e91b0da 100644
Binary files a/Platform/Hisilicon/D03/fip.bin and b/Platform/Hisilicon/D03/fip.bin differ
-- 
1.9.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
gary guo Feb. 2, 2018, 11:57 a.m. UTC | #5
1 Workarounds for CVE-2017-5715 on Cortex A57/A72/A73 and A75 #1214.
2 Upgrade trusted firmware to 1.4

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ming Huang <huangming23@huawei.com>

Signed-off-by: Heyi Guo <heyi.guo@linaro.org>

Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>

Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>

---
 Platform/Hisilicon/D05/bl1.bin | Bin 14344 -> 12424 bytes
 Platform/Hisilicon/D05/fip.bin | Bin 41493 -> 37546 bytes
 2 files changed, 0 insertions(+), 0 deletions(-)

diff --git a/Platform/Hisilicon/D05/bl1.bin b/Platform/Hisilicon/D05/bl1.bin
index 7341476..b95257c 100644
Binary files a/Platform/Hisilicon/D05/bl1.bin and b/Platform/Hisilicon/D05/bl1.bin differ
diff --git a/Platform/Hisilicon/D05/fip.bin b/Platform/Hisilicon/D05/fip.bin
index 496a9b8..5958293 100644
Binary files a/Platform/Hisilicon/D05/fip.bin and b/Platform/Hisilicon/D05/fip.bin differ
-- 
1.9.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
Leif Lindholm Feb. 7, 2018, 3:39 p.m. UTC | #6
Thanks!

For the series:
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>


Pushed as 168344f..1aaec67

On Fri, Feb 02, 2018 at 07:57:21PM +0800, Heyi Guo wrote:
> The major features of this patchset:

> 1 Upgrade trusted firmware to 1.4

> 2 Workarounds for CVE-2017-5715 on Cortex A57/A72/A73 and A75 #1214

> 3 Delete some binary for open-source version

> 4 Update binary follow changing DmaLib to CoherentDmaLib

> 

> Code can also be found in github: https://github.com/hisilicon/OpenPlatformPkg.git

> branch: rp-1802-osi-v3

> 

> 

> Heyi Guo (6):

>   Hisilicon D0x: Fix network interface order issue

>   Hisilicon D0x: Delete SnpPlatform

>   Hisilicon D03/D05: Update SasDriverDxe binary

>   Hisilicon D03/D05: Update NativeOhci binary

>   Hisilicon/D03: Update binary of trusted-firmware

>   Hisilicon/D05: Update binary of trusted-firmware

> 

> Jason Zhang (1):

>   Hisilicon D03/D05: Delete SasPlatform

> 

>  Platform/Hisilicon/D03/Drivers/Net/SnpPV600Dxe/SnpPV600Dxe.efi | Bin 26688 -> 27392 bytes

>  Platform/Hisilicon/D03/Drivers/Net/SnpPlatform/SnpPlatform.efi | Bin 3040 -> 0 bytes

>  Platform/Hisilicon/D03/Drivers/Net/SnpPlatform/SnpPlatform.inf |  24 --------------------

>  Platform/Hisilicon/D03/Drivers/OhciDxe/NativeOhci.efi          | Bin 21664 -> 22336 bytes

>  Platform/Hisilicon/D03/Drivers/Sas/SasDriverDxe.efi            | Bin 98112 -> 100224 bytes

>  Platform/Hisilicon/D03/Drivers/SasPlatform/SasPlatform.efi     | Bin 3040 -> 0 bytes

>  Platform/Hisilicon/D03/Drivers/SasPlatform/SasPlatform.inf     |  24 --------------------

>  Platform/Hisilicon/D03/bl1.bin                                 | Bin 14336 -> 12416 bytes

>  Platform/Hisilicon/D03/fip.bin                                 | Bin 62513 -> 66758 bytes

>  Platform/Hisilicon/D05/Drivers/Net/SnpPV600Dxe/SnpPV600Dxe.efi | Bin 28544 -> 27680 bytes

>  Platform/Hisilicon/D05/Drivers/Net/SnpPlatform/SnpPlatform.efi | Bin 3392 -> 0 bytes

>  Platform/Hisilicon/D05/Drivers/Net/SnpPlatform/SnpPlatform.inf |  24 --------------------

>  Platform/Hisilicon/D05/Drivers/OhciDxe/NativeOhci.efi          | Bin 23328 -> 22624 bytes

>  Platform/Hisilicon/D05/Drivers/Sas/SasDriverDxe.efi            | Bin 112832 -> 115008 bytes

>  Platform/Hisilicon/D05/Drivers/SasPlatform/SasPlatform.efi     | Bin 3424 -> 0 bytes

>  Platform/Hisilicon/D05/Drivers/SasPlatform/SasPlatform.inf     |  24 --------------------

>  Platform/Hisilicon/D05/bl1.bin                                 | Bin 14344 -> 12424 bytes

>  Platform/Hisilicon/D05/fip.bin                                 | Bin 41493 -> 37546 bytes

>  18 files changed, 96 deletions(-)

>  delete mode 100644 Platform/Hisilicon/D03/Drivers/Net/SnpPlatform/SnpPlatform.efi

>  delete mode 100644 Platform/Hisilicon/D03/Drivers/Net/SnpPlatform/SnpPlatform.inf

>  delete mode 100644 Platform/Hisilicon/D03/Drivers/SasPlatform/SasPlatform.efi

>  delete mode 100644 Platform/Hisilicon/D03/Drivers/SasPlatform/SasPlatform.inf

>  delete mode 100644 Platform/Hisilicon/D05/Drivers/Net/SnpPlatform/SnpPlatform.efi

>  delete mode 100644 Platform/Hisilicon/D05/Drivers/Net/SnpPlatform/SnpPlatform.inf

>  delete mode 100644 Platform/Hisilicon/D05/Drivers/SasPlatform/SasPlatform.efi

>  delete mode 100644 Platform/Hisilicon/D05/Drivers/SasPlatform/SasPlatform.inf

> 

> -- 

> 1.9.1

> 

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
Jeremy Linton Feb. 23, 2018, 2:37 a.m. UTC | #7
Hi,

On 02/02/2018 05:57 AM, Heyi Guo wrote:
> 1 Workarounds for CVE-2017-5715 on Cortex A57/A72/A73 and A75 #1214.


I've been trying to verify spectre fixes, and I don't get a smccc 
version from this firmware (see this kernel branch 
https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git/log/?h=kpti) 
image.

This means that the spectre BP hardening isn't activating on the D05. 
So, unless i'm doing something wrong (quite possible) it appears that 
this image isn't utilizing the correct ATF patches.

Can someone please verify/check this image with a SMCCC enabled kernel?

Thanks,


> 2 Upgrade trusted firmware to 1.4

> 

> Contributed-under: TianoCore Contribution Agreement 1.1

> Signed-off-by: Ming Huang <huangming23@huawei.com>

> Signed-off-by: Heyi Guo <heyi.guo@linaro.org>

> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>

> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>

> ---

>   Platform/Hisilicon/D05/bl1.bin | Bin 14344 -> 12424 bytes

>   Platform/Hisilicon/D05/fip.bin | Bin 41493 -> 37546 bytes

>   2 files changed, 0 insertions(+), 0 deletions(-)

> 

> diff --git a/Platform/Hisilicon/D05/bl1.bin b/Platform/Hisilicon/D05/bl1.bin

> index 7341476..b95257c 100644

> Binary files a/Platform/Hisilicon/D05/bl1.bin and b/Platform/Hisilicon/D05/bl1.bin differ

> diff --git a/Platform/Hisilicon/D05/fip.bin b/Platform/Hisilicon/D05/fip.bin

> index 496a9b8..5958293 100644

> Binary files a/Platform/Hisilicon/D05/fip.bin and b/Platform/Hisilicon/D05/fip.bin differ

> 


_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
gary guo Feb. 23, 2018, 3:17 a.m. UTC | #8
Hi Jeremy,

This TF binaries have not been patched the latest SMCCC workaround; it is based
on v1.4 release and was only
patched with "disable/enable MMU in PSCI SMC call", as the commit in upstream TF
code:
f62ad322695d16178db464dc062fe0af592c6780 

When we generated these binaries, SMCCC patches had not come out so they are not
contained in these binaries.

Do you recommend using the latest smccc patches?

Thanks and regards,

Heyi

On Thu, Feb 22, 2018 at 08:37:11PM -0600, Jeremy Linton wrote:
> Hi,

> 

> On 02/02/2018 05:57 AM, Heyi Guo wrote:

> >1 Workarounds for CVE-2017-5715 on Cortex A57/A72/A73 and A75 #1214.

> 

> I've been trying to verify spectre fixes, and I don't get a smccc version

> from this firmware (see this kernel branch

> https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git/log/?h=kpti)

> image.

> 

> This means that the spectre BP hardening isn't activating on the D05. So,

> unless i'm doing something wrong (quite possible) it appears that this image

> isn't utilizing the correct ATF patches.

> 

> Can someone please verify/check this image with a SMCCC enabled kernel?

> 

> Thanks,

> 

> 

> >2 Upgrade trusted firmware to 1.4

> >

> >Contributed-under: TianoCore Contribution Agreement 1.1

> >Signed-off-by: Ming Huang <huangming23@huawei.com>

> >Signed-off-by: Heyi Guo <heyi.guo@linaro.org>

> >Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>

> >Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>

> >---

> >  Platform/Hisilicon/D05/bl1.bin | Bin 14344 -> 12424 bytes

> >  Platform/Hisilicon/D05/fip.bin | Bin 41493 -> 37546 bytes

> >  2 files changed, 0 insertions(+), 0 deletions(-)

> >

> >diff --git a/Platform/Hisilicon/D05/bl1.bin b/Platform/Hisilicon/D05/bl1.bin

> >index 7341476..b95257c 100644

> >Binary files a/Platform/Hisilicon/D05/bl1.bin and b/Platform/Hisilicon/D05/bl1.bin differ

> >diff --git a/Platform/Hisilicon/D05/fip.bin b/Platform/Hisilicon/D05/fip.bin

> >index 496a9b8..5958293 100644

> >Binary files a/Platform/Hisilicon/D05/fip.bin and b/Platform/Hisilicon/D05/fip.bin differ

> >

> 

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
Ard Biesheuvel Feb. 23, 2018, 9:02 a.m. UTC | #9
On 23 February 2018 at 03:17, Guo Heyi <heyi.guo@linaro.org> wrote:
> Hi Jeremy,

>

> This TF binaries have not been patched the latest SMCCC workaround; it is based

> on v1.4 release and was only

> patched with "disable/enable MMU in PSCI SMC call", as the commit in upstream TF

> code:

> f62ad322695d16178db464dc062fe0af592c6780

>

> When we generated these binaries, SMCCC patches had not come out so they are not

> contained in these binaries.

>

> Do you recommend using the latest smccc patches?

>


Yes.

The Spectre v2 mitigations that landed in v4.16 and were backported to
v4.15 and v4.14 LTS do not use the PSCI_VERSION call anymore to
perform branch predictor invalidation. Instead, it checks for
SMCCCv1.1, and uses the ARCH_WORKAROUND_1 SMC call if supported. If
not, no BP maintenance is performed.
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
gary guo Feb. 24, 2018, 1:53 a.m. UTC | #10
On Fri, Feb 23, 2018 at 09:02:46AM +0000, Ard Biesheuvel wrote:
> On 23 February 2018 at 03:17, Guo Heyi <heyi.guo@linaro.org> wrote:

> > Hi Jeremy,

> >

> > This TF binaries have not been patched the latest SMCCC workaround; it is based

> > on v1.4 release and was only

> > patched with "disable/enable MMU in PSCI SMC call", as the commit in upstream TF

> > code:

> > f62ad322695d16178db464dc062fe0af592c6780

> >

> > When we generated these binaries, SMCCC patches had not come out so they are not

> > contained in these binaries.

> >

> > Do you recommend using the latest smccc patches?

> >

> 

> Yes.

> 

> The Spectre v2 mitigations that landed in v4.16 and were backported to

> v4.15 and v4.14 LTS do not use the PSCI_VERSION call anymore to

> perform branch predictor invalidation. Instead, it checks for

> SMCCCv1.1, and uses the ARCH_WORKAROUND_1 SMC call if supported. If

> not, no BP maintenance is performed.


Thanks, we'll try to apply the smccc patch to TF.

Heyi
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel