From owner-freebsd-alpha Thu Feb 13 9:57:47 2003 Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 94D0837B405 for ; Thu, 13 Feb 2003 09:57:44 -0800 (PST) Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C56D43FAF for ; Thu, 13 Feb 2003 09:57:43 -0800 (PST) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.12.6/8.12.6) with ESMTP id h1DHvc8I017374 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Thu, 13 Feb 2003 12:57:38 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.6/8.9.1) id h1DHvXv33812; Thu, 13 Feb 2003 12:57:33 -0500 (EST) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15947.56461.751618.786701@grasshopper.cs.duke.edu> Date: Thu, 13 Feb 2003 12:57:33 -0500 (EST) To: Cc: Subject: Re: problem with pcmcia isa adaptor on alpha In-Reply-To: <20030213093531.K26346-100000@vespa.dmz.orem.verio.net> References: <3E498737.22D2187A@mindspring.com> <20030213093531.K26346-100000@vespa.dmz.orem.verio.net> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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