From owner-cvs-src-old@FreeBSD.ORG Tue May 31 15:12:48 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C334A1065687 for ; Tue, 31 May 2011 15:12:48 +0000 (UTC) (envelope-from nwhitehorn@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id AEDC68FC18 for ; Tue, 31 May 2011 15:12:48 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p4VFCmdg009698 for ; Tue, 31 May 2011 15:12:48 GMT (envelope-from nwhitehorn@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p4VFCmL0009697 for cvs-src-old@freebsd.org; Tue, 31 May 2011 15:12:48 GMT (envelope-from nwhitehorn@repoman.freebsd.org) Message-Id: <201105311512.p4VFCmL0009697@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to nwhitehorn@repoman.freebsd.org using -f From: Nathan Whitehorn Date: Tue, 31 May 2011 15:11:43 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/i386/pci pci_cfgreg.c src/sys/ia64/ia64 machdep.c mp_machdep.c pmap.c src/sys/kern kern_idle.c sched_4bsd.c subr_kdb.c subr_pcpu.c src/sys/mips/mips mp_machdep.c src/sys/net netisr.c src/sys/powerpc/booke pmap.c ... X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 May 2011 15:12:48 -0000 nwhitehorn 2011-05-31 15:11:43 UTC FreeBSD src repository Modified files: sys/i386/pci pci_cfgreg.c sys/ia64/ia64 machdep.c mp_machdep.c pmap.c sys/kern kern_idle.c sched_4bsd.c subr_kdb.c subr_pcpu.c sys/mips/mips mp_machdep.c sys/net netisr.c sys/powerpc/booke pmap.c sys/powerpc/powerpc mp_machdep.c sys/sparc64/sparc64 mp_machdep.c pmap.c sys/sys pcpu.h Log: SVN rev 222531 on 2011-05-31 15:11:43Z by nwhitehorn On multi-core, multi-threaded PPC systems, it is important that the threads be brought up in the order they are enumerated in the device tree (in particular, that thread 0 on each core be brought up first). The SLIST through which we loop to start the CPUs has all of its entries added with SLIST_INSERT_HEAD(), which means it is in reverse order of enumeration and so AP startup would always fail in such situations (causing a machine check or RTAS failure). Fix this by changing the SLIST into an STAILQ, and inserting new CPUs at the end. Reviewed by: jhb Revision Changes Path 1.136 +1 -1 src/sys/i386/pci/pci_cfgreg.c 1.272 +1 -1 src/sys/ia64/ia64/machdep.c 1.89 +4 -4 src/sys/ia64/ia64/mp_machdep.c 1.230 +1 -1 src/sys/ia64/ia64/pmap.c 1.56 +1 -1 src/sys/kern/kern_idle.c 1.155 +2 -2 src/sys/kern/sched_4bsd.c 1.34 +1 -1 src/sys/kern/subr_kdb.c 1.24 +3 -3 src/sys/kern/subr_pcpu.c 1.21 +1 -1 src/sys/mips/mips/mp_machdep.c 1.43 +1 -1 src/sys/net/netisr.c 1.43 +2 -2 src/sys/powerpc/booke/pmap.c 1.38 +3 -3 src/sys/powerpc/powerpc/mp_machdep.c 1.66 +1 -1 src/sys/sparc64/sparc64/mp_machdep.c 1.212 +1 -1 src/sys/sparc64/sparc64/pmap.c 1.52 +2 -2 src/sys/sys/pcpu.h