From owner-freebsd-sparc64@FreeBSD.ORG Sun Sep 25 05:13:07 2005 Return-Path: X-Original-To: freebsd-sparc@FreeBSD.org Delivered-To: freebsd-sparc64@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 507E316A41F for ; Sun, 25 Sep 2005 05:13:07 +0000 (GMT) (envelope-from chrisang@singnet.com) Received: from smtp18.singnet.com.sg (smtp18.singnet.com.sg [165.21.6.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id A46A943D48 for ; Sun, 25 Sep 2005 05:13:06 +0000 (GMT) (envelope-from chrisang@singnet.com) Received: from Angsana (bb219-74-206-215.singnet.com.sg [219.74.206.215]) by smtp18.singnet.com.sg (8.13.5/8.13.4) with ESMTP id j8P5D1bC019844 for ; Sun, 25 Sep 2005 13:13:04 +0800 From: "Christopher ANG" To: Date: Sun, 25 Sep 2005 13:13:00 +0800 Message-ID: <000001c5c18f$cc955530$d7ce4adb@Angsana> MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Mailman-Approved-At: Sun, 25 Sep 2005 15:54:50 +0000 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Can FreeBSD run on SUN ENTERPRISE E10K? X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Sep 2005 05:13:07 -0000 Can? Thanks. Christopher From owner-freebsd-sparc64@FreeBSD.ORG Sun Sep 25 17:04:08 2005 Return-Path: X-Original-To: freebsd-sparc@freebsd.org Delivered-To: freebsd-sparc64@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 19B3916A41F for ; Sun, 25 Sep 2005 17:04:08 +0000 (GMT) (envelope-from marius@newtrinity.zeist.de) Received: from newtrinity.zeist.de (newtrinity.zeist.de [217.24.217.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A67743D48 for ; Sun, 25 Sep 2005 17:04:07 +0000 (GMT) (envelope-from marius@newtrinity.zeist.de) Received: from newtrinity.zeist.de (localhost [127.0.0.1]) by newtrinity.zeist.de (8.12.11/8.12.11/ZEIST.DE) with ESMTP id j8PH4580020310; Sun, 25 Sep 2005 19:04:05 +0200 (CEST) (envelope-from marius@newtrinity.zeist.de) Received: (from marius@localhost) by newtrinity.zeist.de (8.12.11/8.12.10/Submit) id j8PH3wD9020309; Sun, 25 Sep 2005 19:03:58 +0200 (CEST) (envelope-from marius) Date: Sun, 25 Sep 2005 19:03:58 +0200 From: Marius Strobl To: Christopher ANG Message-ID: <20050925190358.A20192@newtrinity.zeist.de> References: <000001c5c18f$cc955530$d7ce4adb@Angsana> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <000001c5c18f$cc955530$d7ce4adb@Angsana>; from chrisang@singnet.com on Sun, Sep 25, 2005 at 01:13:00PM +0800 X-AntiVirus: checked by AntiVir Milter (version: 1.1.0-7; AVE: 6.32.0.6; VDF: 6.32.0.40; host: newtrinity.zeist.de) Cc: freebsd-sparc@freebsd.org Subject: Re: Can FreeBSD run on SUN ENTERPRISE E10K? X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Sep 2005 17:04:08 -0000 On Sun, Sep 25, 2005 at 01:13:00PM +0800, Christopher ANG wrote: > Can? Thanks. > I'm not aware of anyone actually having tried FreeBSD on an E10k so far but AFAICT it's currently highly unlikely that it will work. Marius From owner-freebsd-sparc64@FreeBSD.ORG Mon Sep 26 05:41:08 2005 Return-Path: X-Original-To: freebsd-sparc64@freebsd.org Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 15FFE16A420 for ; Mon, 26 Sep 2005 05:41:08 +0000 (GMT) (envelope-from rocheltryggve@glossernet.com) Received: from glossernet.com (IGLD-83-130-109-176.inter.net.il [83.130.109.176]) by mx1.FreeBSD.org (Postfix) with SMTP id 6F23143D55 for ; Mon, 26 Sep 2005 05:41:06 +0000 (GMT) (envelope-from rocheltryggve@glossernet.com) Received: from [192.168.204.229] (helo=classconsciousness) by glossernet.com with SMTP (Receivingorder ow 3.36 (Awestruck)) id xIkMZn-aNOMwv-Ot for freebsd-sparc64@freebsd.org; Mon, 26 Sep 2005 00:41:03 -0500 Message-ID: <146625.UKSKBTFPCXN@classconsciousness> From: "Tryggve Rochell" To: "Mosi Mcwaters" Date: Mon, 26 Sep 2005 00:41:01 -0500 MIME-Version: 1.0 X-Priority: 3 X-Mailer: Receivingorder ow 3.36 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: No Failure , Pharrmacxy X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Tryggve Rochell List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2005 05:41:08 -0000 CelValProMeCia= ViaUltAmXanLev ebrexiumpeciaridialisgrarambienaxitra $ $$ = 3.75 1.213.33 = http://www.multikopest.= com freedman, imitated many of these fables in Latin iambics about to a = neighboring cedar, The first step has lost us all. If we using them. filching = = from their very altars a part of the sacrifice offered Whatever you do, do = with all your might. that the burlesque style of writing adopted by Scarron = and From owner-freebsd-sparc64@FreeBSD.ORG Mon Sep 26 05:41:09 2005 Return-Path: X-Original-To: freebsd-sparc@freebsd.org Delivered-To: freebsd-sparc64@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3282F16A41F for ; Mon, 26 Sep 2005 05:41:09 +0000 (GMT) (envelope-from damion@thepc.com) Received: from thepc.com (IGLD-83-130-109-176.inter.net.il [83.130.109.176]) by mx1.FreeBSD.org (Postfix) with SMTP id E82E543D48 for ; Mon, 26 Sep 2005 05:41:07 +0000 (GMT) (envelope-from damion@thepc.com) Received: from [192.168.204.229] (helo=classconsciousness) by thepc.com with SMTP (Receivingorder ow 3.36 (Awestruck)) id xIkMZn-aNOMwv-Ot for freebsd-sparc@freebsd.org; Mon, 26 Sep 2005 00:41:03 -0500 Message-ID: <146625.UKSKBTFPCXN@classconsciousness> From: "Damion Chery" To: "Bai Morley" Date: Mon, 26 Sep 2005 00:41:01 -0500 MIME-Version: 1.0 X-Priority: 3 X-Mailer: Receivingorder ow 3.36 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: No Failure , Pharrmacxy X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Damion Chery List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2005 05:41:09 -0000 CelValProMeCia= ViaUltAmXanLev ebrexiumpeciaridialisgrarambienaxitra $ $$ = 3.75 1.213.33 = http://www.multikopest.= com freedman, imitated many of these fables in Latin iambics about to a = neighboring cedar, The first step has lost us all. If we using them. filching = = from their very altars a part of the sacrifice offered Whatever you do, do = with all your might. that the burlesque style of writing adopted by Scarron = and From owner-freebsd-sparc64@FreeBSD.ORG Mon Sep 26 11:02:25 2005 Return-Path: X-Original-To: freebsd-sparc64@freebsd.org Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 98FB716A420 for ; Mon, 26 Sep 2005 11:02:25 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6497C43D5D for ; Mon, 26 Sep 2005 11:02:21 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8QB2LtN027196 for ; Mon, 26 Sep 2005 11:02:21 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8QB2KB2027190 for freebsd-sparc64@freebsd.org; Mon, 26 Sep 2005 11:02:20 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 26 Sep 2005 11:02:20 GMT Message-Id: <200509261102.j8QB2KB2027190@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-sparc64@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2005 11:02:25 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2004/09/14] sparc64/71729sparc64 printf in kernel thread causes panic on S o [2004/10/21] sparc64/72962sparc64 [sysinstall] Sysinstall panics on sparc64 o [2005/02/12] sparc64/77417sparc64 [panic] with high usage of cpu when lan u f [2005/04/27] sparc64/80410sparc64 netgraph is causing crash with mpd on spa o [2005/05/11] sparc64/80890sparc64 [panic] kmem_malloc(73728): kmem_map too o [2005/06/23] sparc64/82569sparc64 USB mass storage plug/unplug causes syste 6 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2004/10/22] sparc64/72998sparc64 [patch] set_mcontext() change syscalls pa o [2005/06/26] sparc64/82681sparc64 [if_dc] dc state messages 2 problems total. From owner-freebsd-sparc64@FreeBSD.ORG Mon Sep 26 14:44:44 2005 Return-Path: X-Original-To: sparc64@FreeBSD.org Delivered-To: freebsd-sparc64@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 92C9016A41F for ; Mon, 26 Sep 2005 14:44:44 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F9AE43D48 for ; Mon, 26 Sep 2005 14:44:44 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [70.30.70.180]) by elvis.mu.org (Postfix) with ESMTP id 01A9D1A3C23 for ; Mon, 26 Sep 2005 07:44:44 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id ACF0151416; Mon, 26 Sep 2005 10:44:42 -0400 (EDT) Date: Mon, 26 Sep 2005 10:44:42 -0400 From: Kris Kennaway To: sparc64@FreeBSD.org Message-ID: <20050926144442.GA7733@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4Ckj6UjgE2iN1+kY" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Cc: Subject: [kris@obsecurity.org: integer overflow in bufinit() on large-memory machines] X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2005 14:44:44 -0000 --4Ckj6UjgE2iN1+kY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Can someone please look at this so that large memory sparc machines (>11GB) are usable on FreeBSD? The best workaround for now is probably to limit the size of kva on sparc64 - e.g. amd64 sizes things very differently so that on a 24GB machine it avoids the overflow by a factor of 5. Kris ----- Forwarded message from Kris Kennaway ----- X-Original-To: kkenn@localhost Delivered-To: kkenn@localhost.obsecurity.org X-Original-To: kris@freebsd.org Delivered-To: kris@freebsd.org X-Original-To: current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.ORG Date: Tue, 20 Sep 2005 12:57:40 -0400 From: Kris Kennaway To: current@FreeBSD.org User-Agent: Mutt/1.4.2.1i Cc:=20 Subject: integer overflow in bufinit() on large-memory machines X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: ,=20 List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: owner-freebsd-current@freebsd.org X-UIDL: ~kM!! 3 * hibufspace / 4) { hidirtybuffers >>=3D 1; } lodirtybuffers =3D hidirtybuffers / 2; because 3*hibufspace is overflowing the 32-bit int hibufspace (this code was added a few years ago by dillon). hidirtybuffers=3D18182 BKVASIZE=3D16384 hibufspace=3D1189625856 I tried making hibufspace into a long which allowed the system to boot, but the system panicked shortly afterwards while I was doing a cvs diff: > panic: vm_fault: fault on nofault entry, addr: 1e5884000 > db> wh > Tracing pid 42 tid 100037 td 0xfffff802b13c57c0 > panic() at panic+0x164 > vm_fault() at vm_fault+0x21c > trap_pfault() at trap_pfault+0x1a8 > trap() at trap+0x28c > -- fast data access mmu miss tar=3D0x1e5884000 %o7=3D0xc02b12d8 -- > bcopy() at bcopy+0x9c > ffs_sync() at ffs_sync+0x344 > sync_fsync() at sync_fsync+0x134 > VOP_FSYNC_APV() at VOP_FSYNC_APV+0xb4 > sync_vnode() at sync_vnode+0xfc > sched_sync() at sched_sync+0x24c > fork_exit() at fork_exit+0x94 > fork_trampoline() at fork_trampoline+0x8 and upon rebooting it seems that my disk has been destroyed: Boot device: disk File and args: >> FreeBSD/sparc64 boot block Boot path: /sbus@3,0/SUNW,fas@3,8800000/sd@0,0:a Boot loader: /boot/loader File /boot/loader not found Program terminated {0} ok I guess something else is really unhappy with hibufspace being that large (or maybe there is some other variable overflowing). Can anyone think of a solution? Kris ----- End forwarded message ----- --4Ckj6UjgE2iN1+kY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDOAlaWry0BWjoQKURAu9tAJ9/30HgPEtYqK42KKWXko6LHfnOywCfQLgA z4pV8l7MPKr4mxVv5DRXnzo= =ilOw -----END PGP SIGNATURE----- --4Ckj6UjgE2iN1+kY-- From owner-freebsd-sparc64@FreeBSD.ORG Mon Sep 26 18:00:29 2005 Return-Path: X-Original-To: freebsd-sparc64@hub.freebsd.org Delivered-To: freebsd-sparc64@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 87E8616A422 for ; Mon, 26 Sep 2005 18:00:29 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E834143D53 for ; Mon, 26 Sep 2005 18:00:28 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8QI0SDH085775 for ; Mon, 26 Sep 2005 18:00:28 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8QI0STM085774; Mon, 26 Sep 2005 18:00:28 GMT (envelope-from gnats) Date: Mon, 26 Sep 2005 18:00:28 GMT Message-Id: <200509261800.j8QI0STM085774@freefall.freebsd.org> To: freebsd-sparc64@FreeBSD.org From: John Baldwin Cc: Subject: Re: sparc64/82681: [if_dc] dc state messages X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John Baldwin List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2005 18:00:29 -0000 The following reply was made to PR sparc64/82681; it has been noted by GNATS. From: John Baldwin To: bug-followup@FreeBSD.org, acex5@syncer.de Cc: Subject: Re: sparc64/82681: [if_dc] dc state messages Date: Mon, 26 Sep 2005 13:59:19 -0400 If the driver still works fine then I wouldn't worry about the messages. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-sparc64@FreeBSD.ORG Mon Sep 26 19:10:18 2005 Return-Path: X-Original-To: freebsd-sparc64@hub.freebsd.org Delivered-To: freebsd-sparc64@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2EDBD16A42D for ; Mon, 26 Sep 2005 19:10:18 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D786A43D48 for ; Mon, 26 Sep 2005 19:10:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8QJAHV3097543 for ; Mon, 26 Sep 2005 19:10:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8QJAHJV097536; Mon, 26 Sep 2005 19:10:17 GMT (envelope-from gnats) Date: Mon, 26 Sep 2005 19:10:17 GMT Message-Id: <200509261910.j8QJAHJV097536@freefall.freebsd.org> To: freebsd-sparc64@FreeBSD.org From: Sebastian =?iso-8859-1?Q?K=F6hler?= Cc: Subject: Re: sparc64/82681: [if_dc] dc state messages X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Sebastian =?iso-8859-1?Q?K=F6hler?= List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2005 19:10:18 -0000 The following reply was made to PR sparc64/82681; it has been noted by GNATS. From: Sebastian =?iso-8859-1?Q?K=F6hler?= To: "John Baldwin" Cc: bug-followup@FreeBSD.org Subject: Re: sparc64/82681: [if_dc] dc state messages Date: Mon, 26 Sep 2005 21:06:40 +0200 (CEST) The main tought of this PR was to find the root cause of the message. Sure, there is not need to do this right now, cause connectivity is working fine, but it would be good to quell the message cause users may be confused. From owner-freebsd-sparc64@FreeBSD.ORG Mon Sep 26 21:35:46 2005 Return-Path: X-Original-To: sparc64@freebsd.org Delivered-To: freebsd-sparc64@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B5D3A16A41F; Mon, 26 Sep 2005 21:35:46 +0000 (GMT) (envelope-from tinderbox@freebsd.org) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [205.211.164.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C3A643D49; Mon, 26 Sep 2005 21:35:46 +0000 (GMT) (envelope-from tinderbox@freebsd.org) Received: from smtp1.sentex.ca (smtp1.sentex.ca [199.212.134.4]) by smarthost2.sentex.ca (8.13.4/8.13.4) with ESMTP id j8QLZjCW039241; Mon, 26 Sep 2005 17:35:45 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp1.sentex.ca (8.13.3/8.13.3) with ESMTP id j8QLZjwl043207; Mon, 26 Sep 2005 17:35:45 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 87A197302F; Mon, 26 Sep 2005 17:35:45 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20050926213545.87A197302F@freebsd-current.sentex.ca> Date: Mon, 26 Sep 2005 17:35:45 -0400 (EDT) X-Virus-Scanned: ClamAV version 0.86, clamav-milter version 0.86 on clamscanner1 X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.51 on 205.211.164.50 Cc: Subject: [head tinderbox] failure on sparc64/sparc64 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2005 21:35:46 -0000 TB --- 2005-09-26 21:29:40 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2005-09-26 21:29:40 - starting HEAD tinderbox run for sparc64/sparc64 TB --- 2005-09-26 21:29:40 - cleaning the object tree TB --- 2005-09-26 21:30:01 - checking out the source tree TB --- 2005-09-26 21:30:01 - cd /tinderbox/HEAD/sparc64/sparc64 TB --- 2005-09-26 21:30:01 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2005-09-26 21:34:55 - building world (CFLAGS=-O2 -pipe) TB --- 2005-09-26 21:34:55 - cd /src TB --- 2005-09-26 21:34:55 - /usr/bin/make -B buildworld >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree [...] rm -f m4 eval.o expr.o look.o main.o misc.o gnum4.o trace.o m4.1.gz m4.1.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> usr.bin/mail (cleandir) rm -f mail version.o aux.o cmd1.o cmd2.o cmd3.o cmdtab.o collect.o edit.o fio.o getname.o head.o v7.local.o lex.o list.o main.o names.o popen.o quit.o send.o strings.o temp.o tty.o vars.o mail.1.gz mail.1.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> usr.bin/make (cleandir) "Makefile", line 20: Need an operator make: fatal errors encountered -- cannot continue *** Error code 1 Stop in /src/usr.bin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2005-09-26 21:35:45 - WARNING: /usr/bin/make returned exit code 1 TB --- 2005-09-26 21:35:45 - ERROR: failed to build world TB --- 2005-09-26 21:35:45 - tinderbox aborted From owner-freebsd-sparc64@FreeBSD.ORG Wed Sep 28 04:13:43 2005 Return-Path: X-Original-To: sparc64@FreeBSD.org Delivered-To: freebsd-sparc64@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E2DB816A41F; Wed, 28 Sep 2005 04:13:43 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id B110B43D49; Wed, 28 Sep 2005 04:13:43 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [70.30.70.180]) by elvis.mu.org (Postfix) with ESMTP id 8AE1D1A3C22; Tue, 27 Sep 2005 21:13:43 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 90C0651517; Wed, 28 Sep 2005 00:13:41 -0400 (EDT) Date: Wed, 28 Sep 2005 00:13:41 -0400 From: Kris Kennaway To: current@FreeBSD.org Message-ID: <20050928041341.GA29527@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IS0zKkzwUGydFO0o" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Cc: sparc64@FreeBSD.org Subject: sparc64 panic in rman_set_start X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2005 04:13:44 -0000 --IS0zKkzwUGydFO0o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Since updating this e4500 from a few days ago it panics at boot with: -- fast data access mmu miss tar=0 %o7=0xc00ffdbc -- rman_set_start() at rman_set_start+0x8 puc_sbus_attach() at puc_sbus_attach+0x74 device_attach() at device_attach+0x60 device_probe_and_attach() at device_probe_and_attach+0x118 bus_generic_attach() at bus_generic_attach+0x10 fhc_attach() at fhc_attach+0x45c fhc_central_attach() at fhc_central_attach+0x134 device_attach() at device_attach+0x60 device_probe_and_attach() at device_probe_and_attach+0x118 bus_generic_attach() at bus_generic_attach+0x10 central_attach() at central_attach+0x234 device_attach() at device_attach+0x60 device_probe_and_attach() at device_probe_and_attach+0x118 bus_generic_attach() at bus_generic_attach+0x10 nexus_attach() at nexus_attach+0x23c device_attach() at device_attach+0x60 device_probe_and_attach() at device_probe_and_attach+0x118 root_bus_configure() at root_bus_configure+0x18 configure() at configure+0x4 mi_startup() at mi_startup+0x12c btext() at btext+0x34 Can someone please fix this? Kris --IS0zKkzwUGydFO0o Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDOhh1Wry0BWjoQKURAuF3AJ41VduiQFuGelQ61QX0Cs+tAmuDyQCdEXu7 z6OnXZNSk4O0BHeOPu3BoAY= =pphi -----END PGP SIGNATURE----- --IS0zKkzwUGydFO0o-- From owner-freebsd-sparc64@FreeBSD.ORG Wed Sep 28 05:56:55 2005 Return-Path: X-Original-To: sparc64@freebsd.org Delivered-To: freebsd-sparc64@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9FE7516A41F; Wed, 28 Sep 2005 05:56:55 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 433D443D48; Wed, 28 Sep 2005 05:56:55 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id j8S5u8gt004474; Tue, 27 Sep 2005 23:56:08 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 27 Sep 2005 23:56:45 -0600 (MDT) Message-Id: <20050927.235645.34605623.imp@bsdimp.com> To: kris@obsecurity.org From: "M. Warner Losh" In-Reply-To: <20050928041341.GA29527@xor.obsecurity.org> References: <20050928041341.GA29527@xor.obsecurity.org> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Tue, 27 Sep 2005 23:56:09 -0600 (MDT) Cc: current@freebsd.org, sparc64@freebsd.org Subject: Re: sparc64 panic in rman_set_start X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2005 05:56:55 -0000 In message: <20050928041341.GA29527@xor.obsecurity.org> Kris Kennaway writes: : Since updating this e4500 from a few days ago it panics at boot with: : : -- fast data access mmu miss tar=0 %o7=0xc00ffdbc -- : rman_set_start() at rman_set_start+0x8 : puc_sbus_attach() at puc_sbus_attach+0x74 : device_attach() at device_attach+0x60 : device_probe_and_attach() at device_probe_and_attach+0x118 : bus_generic_attach() at bus_generic_attach+0x10 : fhc_attach() at fhc_attach+0x45c : fhc_central_attach() at fhc_central_attach+0x134 : device_attach() at device_attach+0x60 : device_probe_and_attach() at device_probe_and_attach+0x118 : bus_generic_attach() at bus_generic_attach+0x10 : central_attach() at central_attach+0x234 : device_attach() at device_attach+0x60 : device_probe_and_attach() at device_probe_and_attach+0x118 : bus_generic_attach() at bus_generic_attach+0x10 : nexus_attach() at nexus_attach+0x23c : device_attach() at device_attach+0x60 : device_probe_and_attach() at device_probe_and_attach+0x118 : root_bus_configure() at root_bus_configure+0x18 : configure() at configure+0x4 : mi_startup() at mi_startup+0x12c : btext() at btext+0x34 : : Can someone please fix this? I think it is phk's changes. puc allocates a struct resource, but not the private part, so the rman_set_* won't work: rle->res = malloc(sizeof(struct resource), M_DEVBUF, M_WAITOK | M_ZERO); if (rle->res == NULL) { free(pdev, M_DEVBUF); return (ENOMEM); } rman_set_start(rle->res, rman_get_start(res) + sc->sc_desc.ports[i].offset); rman_set_end(rle->res, rman_get_start(rle->res) + ressz - 1); Warner From owner-freebsd-sparc64@FreeBSD.ORG Wed Sep 28 07:51:18 2005 Return-Path: X-Original-To: sparc64@freebsd.org Delivered-To: freebsd-sparc64@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C54F516A41F; Wed, 28 Sep 2005 07:51:18 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E13943D48; Wed, 28 Sep 2005 07:51:17 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.48.2]) by phk.freebsd.dk (Postfix) with ESMTP id E2ADDBC6D; Wed, 28 Sep 2005 07:51:15 +0000 (UTC) To: "M. Warner Losh" From: "Poul-Henning Kamp" In-Reply-To: Your message of "Tue, 27 Sep 2005 23:56:45 MDT." <20050927.235645.34605623.imp@bsdimp.com> Date: Wed, 28 Sep 2005 09:51:15 +0200 Message-ID: <97231.1127893875@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: sparc64@freebsd.org, current@freebsd.org, kris@obsecurity.org Subject: Re: sparc64 panic in rman_set_start X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2005 07:51:19 -0000 In message <20050927.235645.34605623.imp@bsdimp.com>, "M. Warner Losh" writes: >In message: <20050928041341.GA29527@xor.obsecurity.org> > Kris Kennaway writes: >: Since updating this e4500 from a few days ago it panics at boot with: >: >: -- fast data access mmu miss tar=0 %o7=0xc00ffdbc -- >: rman_set_start() at rman_set_start+0x8 >: puc_sbus_attach() at puc_sbus_attach+0x74 [...] >: Can someone please fix this? > >I think it is phk's changes. puc allocates a struct resource, but not >the private part, so the rman_set_* won't work: [...] All my puc hardware is currently busy with real life, so I can't test this, but the attached patch is an attempted workaround. Looking at it, it looks to me like puc.c doesn't do the right thing. I would expect puc to act like a bridge to a "pucbus" and that the sio/lpt/uart etc drivers would have probe/attach methods for that bus in addition to isa/pci/etc. That way, puc could do the resource allocation properly, using the same methods as for instance a pci bridge does. The probe/attach could be done using a bus property which puc creates which sets the name/type of hardware it has found. Any takers ? I have neither hardware nor time :-( Index: sys/rman.h =================================================================== RCS file: /home/ncvs/src/sys/sys/rman.h,v retrieving revision 1.30 diff -u -r1.30 rman.h --- sys/rman.h 25 Sep 2005 20:10:10 -0000 1.30 +++ sys/rman.h 28 Sep 2005 07:25:52 -0000 @@ -174,6 +174,15 @@ void rman_set_virtual(struct resource *_r, void *_v); extern struct rman_head rman_head; + +/* + * XXX: puc.c is a big hack. + * XXX: it should be rewritten to act like a bridge and offer + * XXX: its own resource manager. + * XXX: until somebody has time, help it out with these two functions + */ +struct resource *rman_secret_puc_alloc_resource(int malloc_flag); +void rman_secret_puc_free_resource(struct resource *r); #endif /* _KERNEL */ #endif /* !_SYS_RMAN_H_ */ Index: kern/subr_rman.c =================================================================== RCS file: /home/ncvs/src/sys/kern/subr_rman.c,v retrieving revision 1.45 diff -u -r1.45 subr_rman.c --- kern/subr_rman.c 25 Sep 2005 20:10:10 -0000 1.45 +++ kern/subr_rman.c 28 Sep 2005 07:38:53 -0000 @@ -98,6 +98,31 @@ return (r); } +/* + * XXX: puc.c is a big hack. + * XXX: it should be rewritten to act like a bridge and offer + * XXX: its own resource manager. + * XXX: until somebody has time, help it out with these two functions + */ + +struct resource * +rman_secret_puc_alloc_resource(int malloc_flag) +{ + struct resource_i *r; + + r = int_alloc_resource(malloc_flag); + if (r) + return (&r->r_r); + return (NULL); +} + +void +rman_secret_puc_free_resource(struct resource *r) +{ + + free(r->__r_i, M_RMAN); +} + int rman_init(struct rman *rm) { Index: dev/puc/puc.c =================================================================== RCS file: /home/ncvs/src/sys/dev/puc/puc.c,v retrieving revision 1.40 diff -u -r1.40 puc.c --- dev/puc/puc.c 25 Sep 2005 20:21:14 -0000 1.40 +++ dev/puc/puc.c 28 Sep 2005 07:14:56 -0000 @@ -316,8 +316,7 @@ if (sc->barmuxed == 0) { rle->res = sc->sc_bar_mappings[bidx].res; } else { - rle->res = malloc(sizeof(struct resource), M_DEVBUF, - M_WAITOK | M_ZERO); + rle->res = rman_secret_puc_alloc_resource(M_WAITOK); if (rle->res == NULL) { free(pdev, M_DEVBUF); return (ENOMEM); @@ -352,7 +351,7 @@ if (sc->barmuxed) { bus_space_unmap(rman_get_bustag(rle->res), rman_get_bushandle(rle->res), ressz); - free(rle->res, M_DEVBUF); + rman_secret_puc_free_resource(rle->res); free(pdev, M_DEVBUF); } continue; @@ -372,7 +371,7 @@ if (sc->barmuxed) { bus_space_unmap(rman_get_bustag(rle->res), rman_get_bushandle(rle->res), ressz); - free(rle->res, M_DEVBUF); + rman_secret_puc_free_resource(rle->res); free(pdev, M_DEVBUF); } } -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.