Skip to content

arm64: errata: Add Qualcomm CPUs to the Spectre mitigation lists

Douglas Anderson linux-arm-kernel linux-arm-msm lkml llvm oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6arm64: errata: Add QCOM_KRYO_4XX_GOLD to the spectre_bhb_k24_listarch/arm64/kernel/proton-pack.c+1 -00 replies
2/6arm64: errata: Add QCOM_KRYO_2XX_GOLD to the spectre_bhb_firmware_mitigated_listarch/arm64/kernel/proton-pack.c+1 -03 replies
3/6arm64: cputype: Add QCOM_CPU_PART_KRYO_3XX_GOLDarch/arm64/include/asm/cputype.h+2 -01 reply
4/6arm64: errata: Add QCOM_KRYO_3XX_GOLD to the spectre_bhb_firmware_mitigated_listarch/arm64/kernel/proton-pack.c+1 -00 replies
5/6arm64: errata: Add QCOM_KRYO_5XX_GOLD to the spectre_bhb_k24_listarch/arm64/kernel/proton-pack.c+1 -05 replies
6/6arm64: errata: Add QCOM_KRYO_6XX_GOLD/PRIME to the spectre_bhb_k32_listarch/arm64/kernel/proton-pack.c+2 -02 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchDmitry Baryshkov
1/6
2/6
3/6R-b
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] arm64: errata: Add Qualcomm CPUs to the Spectre mitigation lists

Since Qualcomm CPUs are all derivatives of ARM cores they all have unique MIDR values. This means that the tables listing necessary Spectre mitigations need special entries for them. However, those entries are not present and that means that some Spectre mitigations are lacking for Qualcomm CPUs.

I've made an attempt at **GUESSING** what the right patches should be to enable mitigations for Qualcomm CPUs. This is mostly me searching the web to figure out what ARM cores various Qualcomm cores are based off of.

These patches get more and more sketchy as the series progresses and I have noted that the later patces DON'T EVEN COMPILE. I have included them to make it obvious that I think these cores are affected even if I don't have all the right information to mitigate them. Hopefully Qualcomm can come and fix this mess for me.

I'll note that I am certainly no expert on Spectre. Mostly I ended up here running lscpu on a device and noticing that it thought that it wasn't affected by Spectre v2 when I thought it was.

Douglas Anderson (6):
arm64: errata: Add QCOM_KRYO_4XX_GOLD to the spectre_bhb_k24_list
arm64: errata: Add QCOM_KRYO_2XX_GOLD to the
spectre_bhb_firmware_mitigated_list
arm64: cputype: Add QCOM_CPU_PART_KRYO_3XX_GOLD
arm64: errata: Add QCOM_KRYO_3XX_GOLD to the
spectre_bhb_firmware_mitigated_list
arm64: errata: Add QCOM_KRYO_5XX_GOLD to the spectre_bhb_k24_list
arm64: errata: Add QCOM_KRYO_6XX_GOLD/PRIME to the
spectre_bhb_k32_list

 arch/arm64/include/asm/cputype.h | 2 ++
 arch/arm64/kernel/proton-pack.c  | 6 ++++++
 2 files changed, 8 insertions(+)
Signature · 1 line
2.47.0.338.g60cca15819-goog