svn commit: r318526 - head/sys/arm/mv/armada38x

Wojciech Macek wma at FreeBSD.org
Fri May 19 08:26:42 UTC 2017


Author: wma
Date: Fri May 19 08:26:41 2017
New Revision: 318526
URL: https://svnweb.freebsd.org/changeset/base/318526

Log:
  Fix boot up on ARMADA38X uniprocessor variant
  
  Marvell Armada 380 is a uni-processor variant of the 38x SoC
  family. A function platform_mp_setmaxid() was setting a hardcoded
  value, which caused boot fail on A380. Fix this by relying on
  the CPU count obtained from device tree nodes.
  
  Submitted by:  Marcin Wojtas <mw at semihalf.com
  Obtained from: Semihalf
  Sponsored by:  Netgate
  Reviewed by:   loos
  Differential revision: https://reviews.freebsd.org/D10783

Modified:
  head/sys/arm/mv/armada38x/armada38x_mp.c

Modified: head/sys/arm/mv/armada38x/armada38x_mp.c
==============================================================================
--- head/sys/arm/mv/armada38x/armada38x_mp.c	Fri May 19 08:25:40 2017	(r318525)
+++ head/sys/arm/mv/armada38x/armada38x_mp.c	Fri May 19 08:26:41 2017	(r318526)
@@ -127,7 +127,7 @@ platform_mp_setmaxid(void)
 
 	/* Armada38x family supports maximum 2 cores */
 	mp_ncpus = platform_cnt_cpus();
-	mp_maxid = 1;
+	mp_maxid = mp_ncpus - 1;
 }
 
 void


More information about the svn-src-all mailing list