[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241209174430.2904353-1-dianders@chromium.org>
Date: Mon, 9 Dec 2024 09:43:10 -0800
From: Douglas Anderson <dianders@...omium.org>
To: Catalin Marinas <catalin.marinas@....com>,
Will Deacon <will@...nel.org>,
Mark Rutland <mark.rutland@....com>
Cc: Julius Werner <jwerner@...omium.org>,
Jeffrey Hugo <quic_jhugo@...cinc.com>,
Roxana Bradescu <roxabee@...gle.com>,
bjorn.andersson@....qualcomm.com,
linux-arm-kernel@...ts.infradead.org,
Trilok Soni <quic_tsoni@...cinc.com>,
linux-arm-msm@...r.kernel.org,
Douglas Anderson <dianders@...omium.org>,
Anshuman Khandual <anshuman.khandual@....com>,
Besar Wicaksono <bwicaksono@...dia.com>,
D Scott Phillips <scott@...amperecomputing.com>,
Easwar Hariharan <eahariha@...ux.microsoft.com>,
Oliver Upton <oliver.upton@...ux.dev>,
linux-kernel@...r.kernel.org
Subject: [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(+)
--
2.47.0.338.g60cca15819-goog
Powered by blists - more mailing lists