From owner-freebsd-alpha Tue Jul 25 11:33:40 2000 Delivered-To: freebsd-alpha@freebsd.org Received: from post.mail.nl.demon.net (post-11.mail.nl.demon.net [194.159.73.21]) by hub.freebsd.org (Postfix) with ESMTP id 9AE4B37B810; Tue, 25 Jul 2000 11:33:29 -0700 (PDT) (envelope-from wkb@freebie.demon.nl) Received: from [212.238.54.101] (helo=freebie.demon.nl) by post.mail.nl.demon.net with smtp (Exim 3.14 #4) id 13H9WC-000F6l-00; Tue, 25 Jul 2000 18:33:28 +0000 Received: (from wkb@localhost) by freebie.demon.nl (8.9.3/8.9.3) id UAA08292; Tue, 25 Jul 2000 20:33:14 +0200 (CEST) (envelope-from wkb) Date: Tue, 25 Jul 2000 20:33:14 +0200 From: Wilko Bulte To: Andrew Gallatin Cc: wilko@freebsd.org, FreeBSD-alpha mailing list Subject: Re: presence of DEFPA (fddi) panics 4.1RC Message-ID: <20000725203314.B8155@freebie.demon.nl> Reply-To: wilko@freebsd.org References: <20000725164548.A7231@freebie.demon.nl> <14717.44106.43720.739368@grasshopper.cs.duke.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <14717.44106.43720.739368@grasshopper.cs.duke.edu>; from gallatin@cs.duke.edu on Tue, Jul 25, 2000 at 11:07:06AM -0400 X-OS: FreeBSD 4.1-RC X-PGP: finger wilko@freebsd.org Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, Jul 25, 2000 at 11:07:06AM -0400, Andrew Gallatin wrote: > > Wilko Bulte writes: > > fatal kernel trap: > > > > trap entry = 0x2 (memory management fault) > > a0 = 0x80821014 > > This is typically happens because bus_alloc_resource(cfg->dev, SYS_RES_MEMORY,...) > gives you an unusable address unless you specify if you want BWX or > DENSE space. > > See if the following hack helps: > > Index: pci/pci_compat.c > =================================================================== > RCS file: /home/ncvs/src/sys/pci/pci_compat.c,v > retrieving revision 1.35 > diff -u -r1.35 pci_compat.c > --- pci/pci_compat.c 2000/02/28 08:12:24 1.35 > +++ pci/pci_compat.c 2000/07/25 15:03:00 > @@ -96,7 +96,7 @@ > > rid = reg; > res = bus_alloc_resource(cfg->dev, SYS_RES_MEMORY, &rid, > - 0, ~0, 1, RF_ACTIVE); > + 0, ~0, 1, RF_ACTIVE|PCI_RF_DENSE); > if (res) { > *pa = rman_get_start(res); > *va = (vm_offset_t) rman_get_virtual(res); > > > I'm not sure if this is really correct. But it will certainly rub off > the sharp corners of some devices using the pci compat shims.. It does indeed polish the sharp edges. No panic anymore. I get a good probe etc. But no link it seems. I'll doublecheck with T64 to see if the link/cable etc is OK. -- Wilko Bulte http://www.freebsd.org wilko@freebsd.org http://www.nlfug.nl To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message