From owner-freebsd-alpha Tue Jul 25 8: 7:15 2000 Delivered-To: freebsd-alpha@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 26D2337B62E; Tue, 25 Jul 2000 08:07:09 -0700 (PDT) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id LAA08046; Tue, 25 Jul 2000 11:07:07 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.9.3/8.9.1) id LAA65084; Tue, 25 Jul 2000 11:07:07 -0400 (EDT) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Tue, 25 Jul 2000 11:07:06 -0400 (EDT) To: wilko@FreeBSD.ORG Cc: FreeBSD-alpha mailing list Subject: Re: presence of DEFPA (fddi) panics 4.1RC In-Reply-To: <20000725164548.A7231@freebie.demon.nl> References: <20000725164548.A7231@freebie.demon.nl> X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14717.44106.43720.739368@grasshopper.cs.duke.edu> Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Wilko Bulte writes: > I finally got around to hooking up a serial console to my Miata > (never throw your terminal servers away ;) > > Anyway: > > isp0: interrupting at CIA irq 3 > fpa0: port 0x8100-0x817f mem > 0x80800000-0x8080ffff,0x80821000-0x8082107f irq 16 at device 9.0 on pci1 > > 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.. Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message