]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries: Fixes for the "ibm,architecture-vec-5" options
authorPaul Mackerras <paulus@ozlabs.org>
Mon, 30 Jan 2017 10:21:35 +0000 (21:21 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 31 Jan 2017 08:11:44 +0000 (19:11 +1100)
commitdece138c5372ed835dbf17129bf55f4357b464a0
tree6c93b3256d99f7a3e328215c2a6f68ffe2b58e9e
parent345c9e0dffd69744fd5e9550da7722e2d8d62aa8
powerpc/pseries: Fixes for the "ibm,architecture-vec-5" options

This fixes the byte index values for some of the option bits in
the "ibm,architectur-vec-5" property. The "platform facilities options"
bits are in byte 17 not byte 14, so the upper 8 bits of their
definitions need to be 0x11 not 0x0E. The "sub processor support" option
is in byte 21 not byte 15.

Note none of these options are actually looked up in
"ibm,architecture-vec-5" at this time, so there is no bug.

When checking whether option bits are set, we should check that
the offset of the byte being checked is less than the vector
length that we got from the hypervisor.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/prom.h
arch/powerpc/platforms/pseries/firmware.c