From owner-freebsd-hackers Sun Aug 26 14:22:59 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from albatross.prod.itd.earthlink.net (albatross.mail.pas.earthlink.net [207.217.120.120]) by hub.freebsd.org (Postfix) with ESMTP id C143F37B407; Sun, 26 Aug 2001 14:22:56 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from mindspring.com (dialup-209.245.135.64.Dial1.SanJose1.Level3.net [209.245.135.64]) by albatross.prod.itd.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id OAA14514; Sun, 26 Aug 2001 14:22:54 -0700 (PDT) Message-ID: <3B8968D8.51AD0871@mindspring.com> Date: Sun, 26 Aug 2001 14:23:36 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Ronald G Minnich Cc: Mike Smith , djohnson , freebsd-hackers@FreeBSD.ORG Subject: Re: PCI Enumeration References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Ronald G Minnich wrote: > On Sat, 25 Aug 2001, Mike Smith wrote: > > > I/O space is easy, but memory space is hard. Userspace access to > > physical memory is a big no-no in the *nix world. > > I want to disagree just a bit. If you look at myrinet, or the many fpga > cards, it's the standard modus operandi. You have to do it that way. I think that Mike's point is that even when you access physical memory from user space, you are accessing it as virtual memory. Normally, the device RAM window is mapped into the KVA, and such access is done via /dev/kmem, which is translated through the KVA virtual mapping. Even if you mmap such a region into a user space processes address space, you end up translating through the UVA of the process to get at the RAM (X does this for linear frame buffers, etc.). If you are trying to do this windowed, or through another mapping (e.g., for a frame buffer card with 16M of RAM plugged into a 4G system, with no way to map the full 16M into the KVA, no matter how you slice it), it's not just "hard", it's "nearly impossible to do correctly". -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message