From owner-cvs-src-old@FreeBSD.ORG Sat Feb 13 14:14:28 2010 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 B73881065692 for ; Sat, 13 Feb 2010 14:14:28 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 8BBCB8FC1A for ; Sat, 13 Feb 2010 14:14:28 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o1DEESoW034845 for ; Sat, 13 Feb 2010 14:14:28 GMT (envelope-from marius@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o1DEESb4034844 for cvs-src-old@freebsd.org; Sat, 13 Feb 2010 14:14:28 GMT (envelope-from marius@repoman.freebsd.org) Message-Id: <201002131414.o1DEESb4034844@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to marius@repoman.freebsd.org using -f From: Marius Strobl Date: Sat, 13 Feb 2010 14:13:39 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/boot/sparc64/loader main.c src/sys/sparc64/include asi.h cmt.h fireplane.h jbus.h src/sys/sun4v/include asi.h cmt.h fireplane.h jbus.h 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: Sat, 13 Feb 2010 14:14:28 -0000 marius 2010-02-13 14:13:39 UTC FreeBSD src repository Modified files: sys/boot/sparc64/loader main.c sys/sparc64/include asi.h sys/sun4v/include asi.h Added files: sys/sparc64/include cmt.h fireplane.h jbus.h sys/sun4v/include cmt.h fireplane.h jbus.h Log: SVN rev 203829 on 2010-02-13 14:13:39Z by marius - Assert that HEAPSZ is a multiple of PAGE_SIZE as at least the firmware of Sun Fire V1280 doesn't round up the size itself but instead lets claiming of non page-sized amounts of memory fail. - Change parameters and variables related to the TLB slots to unsigned which is more appropriate. - Search the whole OFW device tree instead of only the children of the root nexus device for the BSP as starting with UltraSPARC IV the 'cpu' nodes hang off of from 'cmp' (chip multi-threading processor) or 'core' or combinations thereof. Also in large UltraSPARC III based machines the 'cpu' nodes hang off of 'ssm' (scalable shared memory) nodes which group snooping-coherency domains together instead of directly from the nexus. - Add support for UltraSPARC IV and IV+ BSPs. Due to the fact that these are multi-core each CPU has two Fireplane config registers and thus the module/target ID has to be determined differently so the one specific to a certain core is used. Similarly, starting with UltraSPARC IV the individual cores use a different property in the OFW device tree to indicate the CPU/core ID as it no longer is in coincidence with the shared slot/socket ID. While at it additionally distinguish between CPUs with Fireplane and JBus interconnects as these also use slightly different sizes for the JBus/agent/module/target IDs. - Check the return value of init_heap(). This requires moving it after cons_probe() so we can panic when appropriate. This should be fine as the PowerPC OFW loader uses that order for quite some time now. Revision Changes Path 1.45 +115 -34 src/sys/boot/sparc64/loader/main.c 1.15 +14 -6 src/sys/sparc64/include/asi.h 1.1 +39 -0 src/sys/sparc64/include/cmt.h (new) 1.1 +40 -0 src/sys/sparc64/include/fireplane.h (new) 1.1 +39 -0 src/sys/sparc64/include/jbus.h (new) 1.4 +7 -0 src/sys/sun4v/include/asi.h 1.1 +7 -0 src/sys/sun4v/include/cmt.h (new) 1.1 +7 -0 src/sys/sun4v/include/fireplane.h (new) 1.1 +7 -0 src/sys/sun4v/include/jbus.h (new)