From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Ellerman Subject: Re: [1/3] Powernv: Remove the usage of PACAR1 from opal wrappers Date: Fri, 18 Mar 2016 14:33:31 +1100 (AEDT) Message-ID: <3qR9mW32mxz9sCk@ozlabs.org> References: <20160114031457.1287.32132.stgit@mars> Cc: KVM , KVM-PPC To: Mahesh Salgaonkar , linuxppc-dev , Paul Mackerras Return-path: Received: from ozlabs.org ([103.22.144.67]:45634 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751271AbcCRDdd (ORCPT ); Thu, 17 Mar 2016 23:33:33 -0400 In-Reply-To: <20160114031457.1287.32132.stgit@mars> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, 2016-14-01 at 03:14:58 UTC, Mahesh Salgaonkar wrote: > From: Mahesh Salgaonkar > > 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 Acked-by: Michael Ellerman cheers