Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 May 2018 15:42:58 +0000 (UTC)
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r333271 - in head/sys/powerpc: aim powerpc
Message-ID:  <201805051542.w45Fgw5f009693@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhibbits
Date: Sat May  5 15:42:58 2018
New Revision: 333271
URL: https://svnweb.freebsd.org/changeset/base/333271

Log:
  Add POWER9 to the POWER8 bootstrap case blocks
  
  POWER8 and POWER9 have similar configuration requirements for hypervisor setup,
  and in the cases here they're identical.  Add the POWER9 constant to the POWER8
  list so it's initialized correctly.
  
  Reviewed by:	nwhitehorn

Modified:
  head/sys/powerpc/aim/mp_cpudep.c
  head/sys/powerpc/powerpc/cpu.c

Modified: head/sys/powerpc/aim/mp_cpudep.c
==============================================================================
--- head/sys/powerpc/aim/mp_cpudep.c	Sat May  5 08:16:19 2018	(r333270)
+++ head/sys/powerpc/aim/mp_cpudep.c	Sat May  5 15:42:58 2018	(r333271)
@@ -85,6 +85,7 @@ cpudep_ap_early_bootstrap(void)
 		break;
 	case IBMPOWER8:
 	case IBMPOWER8E:
+	case IBMPOWER9:
 #ifdef __powerpc64__
 		if (mfmsr() & PSL_HV) {
 			isync();
@@ -397,6 +398,7 @@ cpudep_ap_setup()
 	case IBMPOWER7PLUS:
 	case IBMPOWER8:
 	case IBMPOWER8E:
+	case IBMPOWER9:
 #ifdef __powerpc64__
 		if (mfmsr() & PSL_HV) {
 			mtspr(SPR_LPCR, mfspr(SPR_LPCR) | LPCR_LPES |

Modified: head/sys/powerpc/powerpc/cpu.c
==============================================================================
--- head/sys/powerpc/powerpc/cpu.c	Sat May  5 08:16:19 2018	(r333270)
+++ head/sys/powerpc/powerpc/cpu.c	Sat May  5 15:42:58 2018	(r333271)
@@ -638,6 +638,7 @@ cpu_powerx_setup(int cpuid, uint16_t vers)
 	switch (vers) {
 	case IBMPOWER8:
 	case IBMPOWER8E:
+	case IBMPOWER9:
 		mtspr(SPR_LPCR, mfspr(SPR_LPCR) | LPCR_PECE_WAKESET);
 		isync();
 		break;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805051542.w45Fgw5f009693>