]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 6 Mar 2017 21:20:10 +0000 (14:20 -0700)
commit412740d20d83dce50b9848fd4955990bcd4aaa6f
tree489c3e513277b7bec2329bb89a6eeb0d17ce8608
parent2fc652ad97cb8d3b6b268a27d7c5954db02901be
powerpc/pseries: Fixes for the "ibm,architecture-vec-5" options

BugLink: http://bugs.launchpad.net/bugs/1670315
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>
(cherry picked from commit 3f4ab2f83b4e443c66549206eb88a9fa5a85d647)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
arch/powerpc/include/asm/prom.h
arch/powerpc/platforms/pseries/firmware.c