Date: Mon, 8 Jan 2001 21:56:12 +0100 From: Wilko Bulte <wkb@freebie.demon.nl> To: Andrew Gallatin <gallatin@cs.duke.edu> Cc: bmah@freebsd.org, FreeBSD-alpha mailing list <freebsd-alpha@freebsd.org> Subject: Re: debugging fpa / FDDI panic Message-ID: <20010108215612.A1802@freebie.demon.nl> In-Reply-To: <14938.7938.69285.585393@grasshopper.cs.duke.edu>; from gallatin@cs.duke.edu on Mon, Jan 08, 2001 at 03:13:16PM -0500 References: <20010106234244.A78789@freebie.demon.nl> <14935.42278.147202.426911@grasshopper.cs.duke.edu> <20010107141337.A81533@freebie.demon.nl> <14936.55164.885512.323554@grasshopper.cs.duke.edu> <20010107225750.A84196@freebie.demon.nl> <14936.59031.486042.446371@grasshopper.cs.duke.edu> <20010107232824.F84536@freebie.demon.nl> <14936.60937.576026.297702@grasshopper.cs.duke.edu> <20010108211138.T793@freebie.demon.nl> <14938.7938.69285.585393@grasshopper.cs.duke.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
--ew6BAiZeqk4r7MaW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jan 08, 2001 at 03:13:16PM -0500, Andrew Gallatin wrote: > > Wilko Bulte writes: > > > ..and that seems to be the bullseye: > > Woo-hoo! Yessir! > You have an x86 equipped w/the same adapter, right? Can you try those Sure, that is the other end of my FDDI network. > same patches there, please? I'd like to make sure I don't break x86 > before I commit them ;) I just applied the patch (see attached) to pdqvar.h on x86. Both the x86 and the alpha are now happilly keeping eachother busy, x86 'bonnie' writing to an NFS fs served by the alpha. No problem seen, they are happy with one another ;) So, as far as I'm concerned committing to -current is a go. I'll update RELNOTES / alpha/HARDWARE.TXT myself once I see the commit message go by Wilko -- | / o / / _ Arnhem, The Netherlands email: wilko@freebsd.org |/|/ / / /( (_) Bulte http://www.freebsd.org http://www.nlfug.nl --ew6BAiZeqk4r7MaW Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=foo --- pdqvar.h.orig Wed Jan 17 23:07:17 2001 +++ pdqvar.h Wed Jan 17 23:07:37 2001 @@ -86,6 +86,8 @@ #define PDQ_OS_MEMZERO(p, n) bzero((caddr_t)(p), (n)) #if defined(__NetBSD__) && defined(__alpha__) #define PDQ_OS_VA_TO_PA(pdq, p) (vtophys((vm_offset_t)p) | (pdq->pdq_type == PDQ_DEFTA ? 0 : 0x40000000)) +#elif 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)) #else #define PDQ_OS_VA_TO_PA(pdq, p) vtophys(p) #endif @@ -102,6 +104,7 @@ #if defined(__FreeBSD__) #include <vm/pmap.h> #include <vm/vm_extern.h> +#include <machine/bus.h> #include <machine/cpufunc.h> #include <machine/clock.h> typedef void ifnet_ret_t; @@ -176,8 +179,8 @@ #define PDQ_OS_IOWR_32(t, base, offset, data) outl((base) + (offset), data) #define PDQ_OS_IORD_8(t, base, offset) inb((base) + (offset)) #define PDQ_OS_IOWR_8(t, base, offset, data) outb((base) + (offset), data) -#define PDQ_OS_MEMRD_32(t, base, offset) (0 + *((base) + (offset))) -#define PDQ_OS_MEMWR_32(t, base, offset, data) do *((base) + (offset)) = (data); while (0) +#define PDQ_OS_MEMRD_32(t, base, offset) readl((base) + (offset)) +#define PDQ_OS_MEMWR_32(t, base, offset, data) writel((base) + (offset), data) #endif #ifndef PDQ_CSR_OFFSET #define PDQ_CSR_OFFSET(base, offset) (0 + (base) + (offset)) --ew6BAiZeqk4r7MaW-- 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?20010108215612.A1802>