Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1527799

[PATCH] powernv: Clear SPRN_PSSCR when a POWER9 CPU comes online

Path csiph.com!1.us.feeder.erje.net!feeder.erje.net!2.eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From "Gautham R. Shenoy" <ego@linux.vnet.ibm.com>
Newsgroups linux.kernel
Subject [PATCH] powernv: Clear SPRN_PSSCR when a POWER9 CPU comes online
Date Tue, 22 Nov 2016 19:10:02 +0100
Message-ID <sGnG2-2it-9@gated-at.bofh.it> (permalink)
X-Mailer git-send-email 1.8.3.1
X-Tm-As-Gconf 00
X-Content-Scanned Fidelis XPS MAILER
X-Cbid 16112218-0056-0000-0000-000002013442
X-Ibm-Spammodules-Versions BY=3.00006124; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000189; SDB=6.00783970; UDB=6.00378660; IPR=6.00561588; BA=6.00004902; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00013408; XFM=3.00000011; UTC=2016-11-22 18:06:48
X-Ibm-Av-Detection SAVI=unused REMOTE=unused XFE=unused
X-Cbparentid 16112218-0057-0000-0000-000006343659
X-Proofpoint-Virus-Version vendor=fsecure engine=2.50.10432:,, definitions=2016-11-22_10:,, signatures=0
X-Proofpoint-Spam-Details rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1611220316
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 32
Organization linux.* mail to news gateway
X-Original-Cc linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, "Gautham R. Shenoy" <ego@linux.vnet.ibm.com>
X-Original-Date Tue, 22 Nov 2016 23:36:40 +0530
X-Original-Message-ID <1479838000-380-1-git-send-email-ego@linux.vnet.ibm.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1527799

Show key headers only | View raw


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>
---
 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
-- 
1.9.4

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH] powernv: Clear SPRN_PSSCR when a POWER9 CPU comes online "Gautham R. Shenoy" <ego@linux.vnet.ibm.com> - 2016-11-22 19:10 +0100
  Re: [PATCH] powernv: Clear SPRN_PSSCR when a POWER9 CPU comes online Michael Ellerman <mpe@ellerman.id.au> - 2016-11-23 00:40 +0100
    Re: [PATCH] powernv: Clear SPRN_PSSCR when a POWER9 CPU comes online Michael Neuling <mikey@neuling.org> - 2016-11-23 00:40 +0100
  Re: [PATCH] powernv: Clear SPRN_PSSCR when a POWER9 CPU comes online Michael Neuling <mikey@neuling.org> - 2016-11-23 01:40 +0100

csiph-web