aws / aws-graviton-getting-started

Helping developers to use AWS Graviton2, Graviton3, and Graviton4 processors which power the 6th, 7th, and 8th generation of Amazon EC2 instances (C6g[d], M6g[d], R6g[d], T4g, X2gd, C6gn, I4g, Im4gn, Is4gen, G5g, C7g[d][n], M7g[d], R7g[d], R8g).
https://aws.amazon.com/ec2/graviton/
Other
885 stars 200 forks source link

Please document Linux kernel kconfig options for ARM errata workarounds #430

Closed joshtriplett closed 1 week ago

joshtriplett commented 3 weeks ago

The Linux kernel has a whole family of configuration options for various ARM errata workarounds; see https://www.kernel.org/doc/html/latest/arch/arm64/silicon-errata.html and arch/arm64/Kconfig under menu "ARM errata workarounds via the alternatives framework".

Please consider documenting which of these apply to Graviton 4 (and forward), so that people building Linux kernels specifically for c8g and newer can turn off all unnecessary errata workaround code.

geoffreyblake commented 1 week ago

Hi @joshtriplett , all Graviton CPUs use standard cores from the Arm Neoverse line and we have the required MIDR information so the kernel can dynamically select and apply the relevant Errata at runtime. If you really want to customize your kernel build, then the relevant errata for Neoverse-N1 (Graviton2), Neoverse-V1 (Graviton3) and Neoverse-V2 (Graviton4) apply, but I wouldn't recommend doing so.