[PATCH v2] powerpc: Add POWER9 architected mode to cputable
Michael Ellerman
mpe at ellerman.id.au
Fri Feb 17 21:11:16 AEDT 2017
Daniel Axtens <dja at axtens.net> writes:
> Hi Russell,
>
> This seems to go Power8, Power9, Power7 - is that intentional?
>
> Regards,
> Daniel
>
>> .platform = "power8",
> ...
>> + .platform = "power9",
> ...
>> { /* Power7 */
It's because we have the architected PVRs and the raw ones, and the
ordering is a bit odd:
$ grep -n -e '(architected)' -e '(raw)' arch/powerpc/kernel/cputable.c
323: .cpu_name = "POWER6 (raw)",
343: .cpu_name = "POWER6 (architected)",
356: .cpu_name = "POWER7 (architected)",
374: .cpu_name = "POWER8 (architected)",
392: .cpu_name = "POWER9 (architected)",
411: .cpu_name = "POWER7 (raw)",
431: .cpu_name = "POWER7+ (raw)",
451: .cpu_name = "POWER8E (raw)",
471: .cpu_name = "POWER8NVL (raw)",
491: .cpu_name = "POWER8 (raw)",
511: .cpu_name = "POWER8 (raw)",
531: .cpu_name = "POWER9 (raw)",
550: .cpu_name = "POWER9 (raw)",
But I don't think it matters in practice. The architected entries use a
pvr_mask of 0xffffffff so it has to be an exact match.
cheers
More information about the Linuxppc-dev
mailing list