From owner-freebsd-ia64@FreeBSD.ORG Tue Nov 18 13:27:04 2008 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 026CC1065673 for ; Tue, 18 Nov 2008 13:27:04 +0000 (UTC) (envelope-from prvs=1208bfed0c=marc.loerner@hob.de) Received: from mailgate.hob.de (mailgate.hob.de [212.185.199.3]) by mx1.freebsd.org (Postfix) with ESMTP id BC9338FC0C for ; Tue, 18 Nov 2008 13:27:03 +0000 (UTC) (envelope-from prvs=1208bfed0c=marc.loerner@hob.de) Received: from imap.hob.de (mail2.hob.de [172.25.1.102]) by mailgate.hob.de (Postfix) with ESMTP id 04716520010 for ; Tue, 18 Nov 2008 13:58:20 +0100 (CET) Received: from linux03.hob.de (linux03.hob.de [172.22.0.190]) by imap.hob.de (Postfix on SuSE eMail Server 2.0) with ESMTP id AC7A5FD8C8 for ; Tue, 18 Nov 2008 13:58:19 +0100 (CET) From: Marc =?iso-8859-1?q?L=F6rner?= Organization: hob To: freebsd-ia64@freebsd.org Date: Tue, 18 Nov 2008 13:59:42 +0100 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200811181359.42291.marc.loerner@hob.de> Subject: problem with more cpus than MAXCPU X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Nov 2008 13:27:04 -0000 Hello, on booting a montecito machine with sources from 7.0-Release-p3 I get an Page-Not-Present fault in vcnt on access of pcpu-struct. I think this is because of mp_ncpus being the real core number of the machine (ia64_count_cpus) and mp_maxid being the cores used (also number of pcpu-structs malloced in pcpu-struct). Also I think (on comparing to other architectures and usage in vcnt) that mp_ncpus should be the number of real active cores with malloced pcpu. So my quick-fix was to put following line after "mp_maxid = min(mp_ncpus, MAXCPU) - 1;": mp_ncpus = mp_maxid + 1; Regards, Marc Loerner