From owner-freebsd-alpha Sun Jan 7 5:12:59 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from post.mail.nl.demon.net (post-10.mail.nl.demon.net [194.159.73.20]) by hub.freebsd.org (Postfix) with ESMTP id CBB0337B402 for ; Sun, 7 Jan 2001 05:12:40 -0800 (PST) Received: from [212.238.54.101] (helo=freebie.demon.nl) by post.mail.nl.demon.net with smtp (Exim 3.14 #2) id 14FFck-00077u-00; Sun, 07 Jan 2001 13:12:39 +0000 Received: (from wkb@localhost) by freebie.demon.nl (8.11.1/8.11.1) id f07DDcL81547; Sun, 7 Jan 2001 14:13:38 +0100 (CET) (envelope-from wkb) Date: Sun, 7 Jan 2001 14:13:38 +0100 From: Wilko Bulte To: Andrew Gallatin Cc: freebsd-alpha@freebsd.org Subject: Re: debugging fpa / FDDI panic Message-ID: <20010107141337.A81533@freebie.demon.nl> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i 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 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 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: at 10.0 (no driver attached) fpa0: 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> 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