svn commit: r333271 - in head/sys/powerpc: aim powerpc

Justin Hibbits jhibbits at FreeBSD.org
Sat May 5 15:42:59 UTC 2018


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;


More information about the svn-src-all mailing list