Date: Sun, 7 Jan 2001 14:13:38 +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: <20010107141337.A81533@freebie.demon.nl> In-Reply-To: <14935.42278.147202.426911@grasshopper.cs.duke.edu>; from gallatin@cs.duke.edu on Sat, Jan 06, 2001 at 06:25:45PM -0500 References: <20010106214357.X77275@freebie.demon.nl> <14935.34600.806565.787237@grasshopper.cs.duke.edu> <20010106224542.A78582@freebie.demon.nl> <14935.37795.408651.78296@grasshopper.cs.duke.edu> <20010106234244.A78789@freebie.demon.nl> <14935.42278.147202.426911@grasshopper.cs.duke.edu>
index | next in thread | previous in thread | raw e-mail
On Sat, Jan 06, 2001 at 06:25:45PM -0500, Andrew Gallatin wrote:
>
> Yes. that's what I meant. Sorry for the delay. The maze of #ifdefs in
> the driver is making me dizzy.. I wonder if there's an unifdef that's
> smart enough to deal with #if defined()..
>
> Anyway, try changing the typdef of the pdq_bus_memaddr_t from
> typedef volatile pdq_uint32_t *pdq_bus_memaddr_t;
> to
> typedef volatile vm_offset_t *pdq_bus_memaddr_t;
>
> in the FreeBSD section of ifdefs.
>
>
> Also, printf (with %lx) the value of sc->sc_membase prior to calling
> pdq_initialize().
Hmm, this does not seem right:
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
DEBUG FPA: sc->sc_membase = 0
fatal kernel trap:
trap entry = 0x2 (memory management fault)
a0 = 0x28
a1 = 0x1
a2 = 0x0
pc = 0xfffffc00003906f8
ra = 0xfffffc0000390438
curproc = 0xfffffc0000611138
pid = 0, comm = swapper
Stopped at pdq_initialize+0x538: ldq t0,0(t0) <0x28> <t0=0x28>
db>
> If this works, we're still going to need a DMA hack. It will be
> something like this:
>
> #if defined(__FreeBSD__) && defined(__alpha__)
> #define PDQ_OS_VA_TO_PA(pdq, p) (vtophys((vm_offset_t)p) | (pdq->pdq_type == PDQ_DEFTA ? 0 : alpha_XXX_dmamap_or))
> #endif
>
> Ick..
Ouch.
--
| / 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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010107141337.A81533>
