]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
UBUNTU: SAUCE: Powernv: Remove the usage of PACAR1 from opal wrappers
authorMahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Thu, 14 Jan 2016 03:14:58 +0000 (08:44 +0530)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 29 Feb 2016 15:57:51 +0000 (08:57 -0700)
commit7cd96a409212242c7acc738f38a770cf17506df0
treeea079a53a8ac616f73dd35f0b5b5e5303a5851ae
parente35fe56838480981337153af1236bf49ebb27c8a
UBUNTU: SAUCE: Powernv: Remove the usage of PACAR1 from opal wrappers

BugLink: http://bugs.launchpad.net/bugs/1537881
https://lists.ozlabs.org/pipermail/linuxppc-dev/2016-January/138009.html

OPAL_CALL wrapper code sticks the r1 (stack pointer) into PACAR1 purely
for debugging purpose only. The power7_wakeup* functions relies on stack
pointer saved in PACAR1. Any opal call made using opal wrapper (directly
or in-directly) before we fall through power7_wakeup*, then it ends up
replacing r1 in PACAR1(r13) leading to kernel panic. So far we don't see
any issues because we have never made any opal calls using OPAL wrapper
before power7_wakeup*. But the subsequent HMI patch would need to invoke
C calls during cpu wakeup/idle path that in-directly makes opal call using
opal wrapper. This patch facilitates the subsequent HMI patch by removing
usage of PACAR1 from opal call wrapper.

Signed-off-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
arch/powerpc/platforms/powernv/opal-wrappers.S