[POWERPC] Distinguish POWER6 partition modes and tell userspace
authorPaul Mackerras <paulus@samba.org>
Fri, 10 Nov 2006 09:38:53 +0000 (20:38 +1100)
committerPaul Mackerras <paulus@samba.org>
Mon, 4 Dec 2006 09:40:16 +0000 (20:40 +1100)
commit974a76f51355d22f4f63d83d6bb1ccecd019ec58
tree9a6c5745d8e1f592427d96fbf64d8546af4feb39
parent18f2190d796198fbb5d4bc4c87511acf3ced7d47
[POWERPC] Distinguish POWER6 partition modes and tell userspace

This adds code to look at the properties firmware puts in the device
tree to determine what compatibility mode the partition is in on
POWER6 machines, and set the ELF aux vector AT_HWCAP and AT_PLATFORM
entries appropriately.

Specifically, we look at the cpu-version property in the cpu node(s).
If that contains a "logical" PVR value (of the form 0x0f00000x), we
call identify_cpu again with this PVR value.  A value of 0x0f000001
indicates the partition is in POWER5+ compatibility mode, and a value
of 0x0f000002 indicates "POWER6 architected" mode, with various
extensions disabled.  We also look for various other properties:
ibm,dfp, ibm,purr and ibm,spurr.

Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/cputable.c
arch/powerpc/kernel/prom.c
arch/powerpc/kernel/prom_init.c
arch/powerpc/kernel/setup_32.c
arch/powerpc/kernel/setup_64.c
arch/powerpc/platforms/iseries/setup.c
arch/ppc/kernel/setup.c
include/asm-powerpc/cputable.h