From: Michael Neuling <mikey@neuling.org>
To: "Gautham R. Shenoy" <ego@linux.vnet.ibm.com>,
Michael Ellerman <mpe@ellerman.id.au>,
Benjamin Herrenschmidt <benh@kernel.crashing.org>,
Paul Mackerras <paulus@samba.org>,
Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>,
"Shreyas B. Prabhu" <shreyasbp@gmail.com>
Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] powernv: Clear SPRN_PSSCR when a POWER9 CPU comes online
Date: Wed, 23 Nov 2016 11:32:52 +1100 [thread overview]
Message-ID: <1479861172.6542.62.camel@neuling.org> (raw)
In-Reply-To: <1479838000-380-1-git-send-email-ego@linux.vnet.ibm.com>
On Tue, 2016-11-22 at 23:36 +0530, Gautham R. Shenoy wrote:
> From: "Gautham R. Shenoy" <ego@linux.vnet.ibm.com>
>=20
> Ensure that PSSCR is set to a safe value corresponding to no
> state-loss each time a POWER9 CPU comes online.
>=20
> Signed-off-by: Gautham R. Shenoy <ego@linux.vnet.ibm.com>
Tested here on my configuration... FWIW
Acked-By: Michael Neuling <mikey@neuling.org>
> ---
> =C2=A0arch/powerpc/kernel/cpu_setup_power.S | 2 ++
> =C2=A01 file changed, 2 insertions(+)
>=20
> diff --git a/arch/powerpc/kernel/cpu_setup_power.S
> b/arch/powerpc/kernel/cpu_setup_power.S
> index 52ff3f0..37ad045 100644
> --- a/arch/powerpc/kernel/cpu_setup_power.S
> +++ b/arch/powerpc/kernel/cpu_setup_power.S
> @@ -96,6 +96,7 @@ _GLOBAL(__setup_cpu_power9)
> =C2=A0 mtlr r11
> =C2=A0 beqlr
> =C2=A0 li r0,0
> + mtspr SPRN_PSSCR,r0
> =C2=A0 mtspr SPRN_LPID,r0
> =C2=A0 mfspr r3,SPRN_LPCR
> =C2=A0 ori r3, r3, LPCR_PECEDH
> @@ -116,6 +117,7 @@ _GLOBAL(__restore_cpu_power9)
> =C2=A0 mtlr r11
> =C2=A0 beqlr
> =C2=A0 li r0,0
> + mtspr SPRN_PSSCR,r0
> =C2=A0 mtspr SPRN_LPID,r0
> =C2=A0 mfspr=C2=A0=C2=A0=C2=A0r3,SPRN_LPCR
> =C2=A0 ori r3, r3, LPCR_PECEDH
WARNING: multiple messages have this Message-ID (diff)
From: Michael Neuling <mikey@neuling.org>
To: "Gautham R. Shenoy" <ego@linux.vnet.ibm.com>,
Michael Ellerman <mpe@ellerman.id.au>,
Benjamin Herrenschmidt <benh@kernel.crashing.org>,
Paul Mackerras <paulus@samba.org>,
Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>,
"Shreyas B. Prabhu" <shreyasbp@gmail.com>
Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] powernv: Clear SPRN_PSSCR when a POWER9 CPU comes online
Date: Wed, 23 Nov 2016 11:32:52 +1100 [thread overview]
Message-ID: <1479861172.6542.62.camel@neuling.org> (raw)
In-Reply-To: <1479838000-380-1-git-send-email-ego@linux.vnet.ibm.com>
On Tue, 2016-11-22 at 23:36 +0530, Gautham R. Shenoy wrote:
> From: "Gautham R. Shenoy" <ego@linux.vnet.ibm.com>
>
> Ensure that PSSCR is set to a safe value corresponding to no
> state-loss each time a POWER9 CPU comes online.
>
> Signed-off-by: Gautham R. Shenoy <ego@linux.vnet.ibm.com>
Tested here on my configuration... FWIW
Acked-By: Michael Neuling <mikey@neuling.org>
> ---
> arch/powerpc/kernel/cpu_setup_power.S | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/powerpc/kernel/cpu_setup_power.S
> b/arch/powerpc/kernel/cpu_setup_power.S
> index 52ff3f0..37ad045 100644
> --- a/arch/powerpc/kernel/cpu_setup_power.S
> +++ b/arch/powerpc/kernel/cpu_setup_power.S
> @@ -96,6 +96,7 @@ _GLOBAL(__setup_cpu_power9)
> mtlr r11
> beqlr
> li r0,0
> + mtspr SPRN_PSSCR,r0
> mtspr SPRN_LPID,r0
> mfspr r3,SPRN_LPCR
> ori r3, r3, LPCR_PECEDH
> @@ -116,6 +117,7 @@ _GLOBAL(__restore_cpu_power9)
> mtlr r11
> beqlr
> li r0,0
> + mtspr SPRN_PSSCR,r0
> mtspr SPRN_LPID,r0
> mfspr r3,SPRN_LPCR
> ori r3, r3, LPCR_PECEDH
next prev parent reply other threads:[~2016-11-23 0:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-22 18:06 [PATCH] powernv: Clear SPRN_PSSCR when a POWER9 CPU comes online Gautham R. Shenoy
2016-11-22 23:30 ` Michael Ellerman
2016-11-22 23:35 ` Michael Neuling
2016-11-22 23:35 ` Michael Neuling
2016-11-23 0:32 ` Michael Neuling [this message]
2016-11-23 0:32 ` Michael Neuling
2016-11-28 12:15 ` Michael Ellerman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1479861172.6542.62.camel@neuling.org \
--to=mikey@neuling.org \
--cc=benh@kernel.crashing.org \
--cc=ego@linux.vnet.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mpe@ellerman.id.au \
--cc=paulus@samba.org \
--cc=shreyasbp@gmail.com \
--cc=svaidy@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.