Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 May 2017 08:26:41 +0000 (UTC)
From:      Wojciech Macek <wma@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r318526 - head/sys/arm/mv/armada38x
Message-ID:  <201705190826.v4J8QfT9007440@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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



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