[PATCH 1/4] ARM: fix demoting HWCAP_SWP
Ard Biesheuvel
ard.biesheuvel at linaro.org
Wed Jan 27 01:34:14 PST 2016
On 26 January 2016 at 10:23, Vladimir Murzin <vladimir.murzin at arm.com> wrote:
> Commit b8c9592 "ARM: 8318/1: treat CPU feature register fields as signed
> quantities" accidentally altered cpuid register used to demote
> HWCAP_SWP.
> ARM ARM says that SyncPrim_instrs bits in ID_ISAR3 should be used with
> SynchPrim_instrs_frac from ID_ISAR4. So, follow this rule.
>
> Signed-off-by: Vladimir Murzin <vladimir.murzin at arm.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel at linaro.org>
Apologies for breaking that ...
> ---
> arch/arm/kernel/setup.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c
> index 7d0cba6f..fde041b 100644
> --- a/arch/arm/kernel/setup.c
> +++ b/arch/arm/kernel/setup.c
> @@ -510,7 +510,7 @@ static void __init elf_hwcap_fixup(void)
> */
> if (cpuid_feature_extract(CPUID_EXT_ISAR3, 12) > 1 ||
> (cpuid_feature_extract(CPUID_EXT_ISAR3, 12) == 1 &&
> - cpuid_feature_extract(CPUID_EXT_ISAR3, 20) >= 3))
> + cpuid_feature_extract(CPUID_EXT_ISAR4, 20) >= 3))
> elf_hwcap &= ~HWCAP_SWP;
> }
>
> --
> 1.7.9.5
>
More information about the linux-arm-kernel
mailing list