[PATCH] arm64/sme: Fix tests for 0b1111 value ID registers

Catalin Marinas catalin.marinas at arm.com
Wed Jun 8 11:47:44 PDT 2022


On Tue, 7 Jun 2022 17:51:28 +0100, Mark Brown wrote:
> For both ID_AA64SMFR0_EL1.I16I64 and ID_AA64SMFR0_EL1.I8I32 we check for
> the presence of the feature by looking for a specific ID value of 0x4 but
> should instead be checking for the value 0xf defined by the architecture.
> 
> This had no practical effect since we are looking for values >= our define
> and the only valid values in the architecture are 0b0000 and 0b1111 so we
> would detect things appropriately with the architecture as it stands even
> with the incorrect defines.

The risk is that the architects start making use of the intermiediate
values. So better to have this fixed.

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

[1/1] arm64/sme: Fix tests for 0b1111 value ID registers
      https://git.kernel.org/arm64/c/a3d52ac77500

-- 
Catalin




More information about the linux-arm-kernel mailing list