Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Jan 2001 22:45:42 +0100
From:      Wilko Bulte <wkb@freebie.demon.nl>
To:        Andrew Gallatin <gallatin@cs.duke.edu>
Cc:        freebsd-alpha@freebsd.org
Subject:   Re: debugging fpa / FDDI panic
Message-ID:  <20010106224542.A78582@freebie.demon.nl>
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
References:  <20010106214357.X77275@freebie.demon.nl> <14935.34600.806565.787237@grasshopper.cs.duke.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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: <network, ethernet> at 10.0 (no driver attached)
>  > fpa0: <Digital DEFPA PCI FDDI Controller> 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: <Digital DEFPA PCI FDDI Controller> 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> <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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010106224542.A78582>