From owner-freebsd-alpha Sat Jan 6 13:44:54 2001 From owner-freebsd-alpha@FreeBSD.ORG Sat Jan 6 13:44:50 2001 Return-Path: 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 12C1737B400 for ; Sat, 6 Jan 2001 13:44:50 -0800 (PST) Received: from [212.238.54.101] (helo=freebie.demon.nl) by post.mail.nl.demon.net with smtp (Exim 3.14 #4) id 14F18m-000NfS-00; Sat, 06 Jan 2001 21:44:44 +0000 Received: (from wkb@localhost) by freebie.demon.nl (8.11.1/8.11.1) id f06Ljg978615; Sat, 6 Jan 2001 22:45:42 +0100 (CET) (envelope-from wkb) Date: Sat, 6 Jan 2001 22:45:42 +0100 From: Wilko Bulte To: Andrew Gallatin Cc: freebsd-alpha@freebsd.org Subject: Re: debugging fpa / FDDI panic Message-ID: <20010106224542.A78582@freebie.demon.nl> References: <20010106214357.X77275@freebie.demon.nl> <14935.34600.806565.787237@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: <14935.34600.806565.787237@grasshopper.cs.duke.edu>; from gallatin@cs.duke.edu on Sat, Jan 06, 2001 at 04:04:30PM -0500 X-OS: FreeBSD 4.2-STABLE X-PGP: finger wilko@freebsd.org Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sat, Jan 06, 2001 at 04:04:30PM -0500, Andrew Gallatin wrote: > > Wilko Bulte writes: > > Now that I have -current running on my Miata I'm trying to find out why the > > fpa driver causes a panic on boot: > > > > isp0: interrupting at CIA irq 16 > > pci1: at 10.0 (no driver attached) > > fpa0: port 0x9000-0x907f mem > > 0x80950000-0x8095ffff,0x80960000-0x8096007f irq 4 at device 11.0 on pci0 > > > > fatal kernel trap: > > > > trap entry = 0x2 (memory management fault) > > a0 = 0x80960014 > > This is a bus address, not a virtual address. > > Change the bus_alloc_resource call in pdq_pci_attach() to > > memres = bus_alloc_resource(dev, SYS_RES_MEMORY, &rid, 0, ~0, 1, > RF_ACTIVE|PCI_RF_DENSE); > > We should either have pci_alloc_resource default to RF_DENSE or panic > if neither PCI_RF_DENSE nor PCI_RF_BWX are specified. The current > state of affairs makes no sense.. Drew, after changing it I still get: fpa0: port 0x9000-0x907f mem 0x80950000-0x80 95ffff,0x80960000-0x8096007f irq 4 at device 11.0 on pci0 fatal kernel trap: trap entry = 0x2 (memory management fault) a0 = 0x14 a1 = 0x1 a2 = 0x0 pc = 0xfffffc0000390698 ra = 0xfffffc00003903d8 curproc = 0xfffffc00006110a8 pid = 0, comm = swapper Stopped at pdq_initialize+0x538: ldl t0,0(t0) <0x14> db> trace pdq_initialize() at pdq_initialize+0x538 pdq_pci_attach() at pdq_pci_attach+0x1fc device_probe_and_attach() at device_probe_and_attach+0xcc bus_generic_attach() at bus_generic_attach+0x28 device_probe_and_attach() at device_probe_and_attach+0xcc bus_generic_attach() at bus_generic_attach+0x28 device_probe_and_attach() at device_probe_and_attach+0xcc bus_generic_attach() at bus_generic_attach+0x28 cia_attach() at cia_attach+0x1f0 device_probe_and_attach() at device_probe_and_attach+0xcc root_bus_configure() at root_bus_configure+0x38 configure() at configure+0x40 mi_startup() at mi_startup+0xf4 locorestart() at locorestart+0x6c db> The code is now: rid = PCI_CBMA; /* memres = bus_alloc_resource(dev, SYS_RES_MEMORY, &rid, 0, ~0, 1, RF_ACTIVE); */ memres = bus_alloc_resource(dev, SYS_RES_MEMORY, &rid, 0, ~0, 1, RF_ACTIVE|PCI_RF_DENSE); if (!memres) goto bad; sc->sc_if.if_name = "fpa"; Did I miss something? -- | / o / / _ Arnhem, The Netherlands email: wilko@freebsd.org |/|/ / / /( (_) Bulte http://www.freebsd.org http://www.nlfug.nl To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message