Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Feb 2003 12:57:33 -0500 (EST)
From:      Andrew Gallatin <gallatin@cs.duke.edu>
To:        <fred@clift.org>
Cc:        <freebsd-alpha@FreeBSD.ORG>
Subject:   Re: problem with pcmcia isa adaptor on alpha
Message-ID:  <15947.56461.751618.786701@grasshopper.cs.duke.edu>
In-Reply-To: <20030213093531.K26346-100000@vespa.dmz.orem.verio.net>
References:  <3E498737.22D2187A@mindspring.com> <20030213093531.K26346-100000@vespa.dmz.orem.verio.net>

next in thread | previous in thread | raw e-mail | index | archive | help

fred@clift.org writes:
 > 
 > My problem is that I can't really find where pccard_kmem is set -- I do
 > see in the ioctl interface if you call the PIOCRWMEM ioctl that this value
 > can be set, but otherwise, it appears to be uninitialized.
 > 
 > Can anyone tell me where this is being initialized?  or what else might be
 > wrong with the uiomove?

<..>

                pccard_kmem = rman_get_virtual(pccard_mem_res);

However, this will be garbage on alpha, since its bus_alloc_resource()
does not specify what kind of mapping it wants, which is required 
to get a valid virtual address from device mem on alpha.

So try |'ing in PCI_RF_DENSE:

Index: pccard.c
===================================================================
RCS file: /home/ncvs/src/sys/pccard/pccard.c,v
retrieving revision 1.106.2.14
diff -u -r1.106.2.14 pccard.c
--- pccard.c	22 Sep 2002 20:26:58 -0000	1.106.2.14
+++ pccard.c	13 Feb 2003 17:55:56 -0000
@@ -579,7 +579,7 @@
 			    pccard_mem_rid, pccard_mem_res);
 		pccard_mem_res = bus_alloc_resource(pccarddev, SYS_RES_MEMORY,
 		    &pccard_mem_rid, addr, addr, PCCARD_MEMSIZE,
-		    RF_ACTIVE | rman_make_alignment_flags(PCCARD_MEMSIZE));
+		    PCI_RF_DENSE | RF_ACTIVE | rman_make_alignment_flags(PCCARD_MEMSIZE));
 		if (pccard_mem_res == NULL)
 			return (EINVAL);
 		pccard_mem = rman_get_start(pccard_mem_res);


 > thing to even put time and effor in to :).  It was suggested to me
 > recently that the if_dc driver could use busDMA-ing and perhaps I should

yes!

 > be wasting my time there instead.  Either way, I barely know what I'm
 > doing :).

Everybody has to start somewhere.

Drew

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?15947.56461.751618.786701>