public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] arm64: errata: Add Qualcomm CPUs to the Spectre mitigation lists
@ 2024-12-09 17:43 Douglas Anderson
  2024-12-09 17:43 ` [PATCH 1/6] arm64: errata: Add QCOM_KRYO_4XX_GOLD to the spectre_bhb_k24_list Douglas Anderson
                   ` (6 more replies)
  0 siblings, 7 replies; 24+ messages in thread
From: Douglas Anderson @ 2024-12-09 17:43 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon, Mark Rutland
  Cc: Julius Werner, Jeffrey Hugo, Roxana Bradescu, bjorn.andersson,
	linux-arm-kernel, Trilok Soni, linux-arm-msm, Douglas Anderson,
	Anshuman Khandual, Besar Wicaksono, D Scott Phillips,
	Easwar Hariharan, Oliver Upton, linux-kernel


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(+)

-- 
2.47.0.338.g60cca15819-goog


^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2024-12-16 21:54 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-09 17:43 [PATCH 0/6] arm64: errata: Add Qualcomm CPUs to the Spectre mitigation lists Douglas Anderson
2024-12-09 17:43 ` [PATCH 1/6] arm64: errata: Add QCOM_KRYO_4XX_GOLD to the spectre_bhb_k24_list Douglas Anderson
2024-12-09 17:43 ` [PATCH 2/6] arm64: errata: Add QCOM_KRYO_2XX_GOLD to the spectre_bhb_firmware_mitigated_list Douglas Anderson
2024-12-09 23:13   ` Dmitry Baryshkov
2024-12-09 23:34     ` Julius Werner
2024-12-09 23:52       ` Dmitry Baryshkov
2024-12-09 17:43 ` [PATCH 3/6] arm64: cputype: Add QCOM_CPU_PART_KRYO_3XX_GOLD Douglas Anderson
2024-12-09 23:02   ` Dmitry Baryshkov
2024-12-09 17:43 ` [PATCH 4/6] arm64: errata: Add QCOM_KRYO_3XX_GOLD to the spectre_bhb_firmware_mitigated_list Douglas Anderson
2024-12-09 17:43 ` [PATCH 5/6] arm64: errata: Add QCOM_KRYO_5XX_GOLD to the spectre_bhb_k24_list Douglas Anderson
2024-12-09 23:07   ` Dmitry Baryshkov
2024-12-14  0:53     ` Doug Anderson
2024-12-14  1:28       ` Julius Werner
2024-12-14 11:39         ` Dmitry Baryshkov
2024-12-16 21:53           ` Doug Anderson
2024-12-10 14:45   ` kernel test robot
2024-12-10 14:45   ` kernel test robot
2024-12-09 17:43 ` [PATCH 6/6] arm64: errata: Add QCOM_KRYO_6XX_GOLD/PRIME to the spectre_bhb_k32_list Douglas Anderson
2024-12-09 23:09   ` Dmitry Baryshkov
2024-12-14  0:53     ` Doug Anderson
2024-12-10 17:02   ` kernel test robot
2024-12-10 15:56 ` [PATCH 0/6] arm64: errata: Add Qualcomm CPUs to the Spectre mitigation lists Will Deacon
2024-12-10 16:53   ` Doug Anderson
2024-12-11 21:34     ` Will Deacon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox