mbox series

[0/2] arm64: Taint the kernel on different GMID_EL1.BS

Message ID 20210511182322.3830-1-catalin.marinas@arm.com (mailing list archive)
Headers show
Series arm64: Taint the kernel on different GMID_EL1.BS | expand

Message

Catalin Marinas May 11, 2021, 6:23 p.m. UTC
Hi,

The GMID_EL1.BS field determines the number of tags accessed by
STGM/LDGM. While I haven't heard of a system where this field differs
across CPUs in a system, it's better to check.

In addition, "upgrade" the sysreg storage in struct cpuinfo_arm64 to
u64.

Catalin Marinas (2):
  arm64: Change the cpuinfo_arm64 member type for some sysregs to u64
  arm64: Check if GMID_EL1.BS is the same on all CPUs

 arch/arm64/include/asm/cpu.h   | 11 ++++++-----
 arch/arm64/kernel/cpufeature.c | 17 +++++++++++++++++
 arch/arm64/kernel/cpuinfo.c    |  3 ++-
 3 files changed, 25 insertions(+), 6 deletions(-)

Comments

Will Deacon May 25, 2021, 6:58 p.m. UTC | #1
On Tue, 11 May 2021 19:23:20 +0100, Catalin Marinas wrote:
> The GMID_EL1.BS field determines the number of tags accessed by
> STGM/LDGM. While I haven't heard of a system where this field differs
> across CPUs in a system, it's better to check.
> 
> In addition, "upgrade" the sysreg storage in struct cpuinfo_arm64 to
> u64.
> 
> [...]

Applied to arm64 (for-next/cpufeature), thanks!

[1/2] arm64: Change the cpuinfo_arm64 member type for some sysregs to u64
      https://git.kernel.org/arm64/c/0f7b586f8fe7
[2/2] arm64: Check if GMID_EL1.BS is the same on all CPUs
      https://git.kernel.org/arm64/c/71b7566d3fd6

Cheers,