From owner-freebsd-hackers Fri Mar 7 19:58:02 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id TAA17276 for hackers-outgoing; Fri, 7 Mar 1997 19:58:02 -0800 (PST) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA17219 for ; Fri, 7 Mar 1997 19:57:56 -0800 (PST) Received: from root.com (implode.root.com [198.145.90.17]) by who.cdrom.com (8.8.5/8.6.11) with ESMTP id MAA00356 for ; Fri, 7 Mar 1997 12:39:41 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by root.com (8.8.5/8.6.5) with SMTP id MAA07138; Fri, 7 Mar 1997 12:39:41 -0800 (PST) Message-Id: <199703072039.MAA07138@root.com> X-Authentication-Warning: implode.root.com: localhost [127.0.0.1] didn't use HELO protocol To: Brian McGovern cc: hackers@freebsd.org Subject: Re: Memory/buffer questions... In-reply-to: Your message of "Fri, 07 Mar 1997 09:44:22 EST." <199703071444.JAA01671@bmcgover-pc.cisco.com> From: David Greenman Reply-To: dg@root.com Date: Fri, 07 Mar 1997 12:39:41 -0800 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >What the board is capable of doing however, is to allocate memory in the >kernel, and then doing DMA from the card right to the ram using bus >mastering. What I'm thinking of doing is using a default 2-4Kb buffer, >but put it in the host, and then allow kernel options to resize the buffers >(so if someone is getting hosed performace, they could possibly kick it up >to 8K, etc). > >With that in mind, I think my questions are: > >1.) Is this even possible (ie - is the passage I read defunct, or is there >really a limit as to the amount of memory that can be dynamically allocated). > >2.) I would need to have this memory space accesable from devices on the PCI >bus. Is there any special steps I'll need to take to map this memory to >someplace special? How about to make sure it stays locked in to physical memory >so DMA can occur? Fortunately, since the processor on the board will do it >once properly configured, I can safely say that I won't have to do much mucking >with the Intel DMA chip, so long as the conditions are met so the card can see >it. Yes, it's not a problem. The only problem is mallocing large memory chunks (larger than a page) due to the potential for virtual memory fragmentation causing the allocation to fail. Memory that is malloced will be and stay resident, so no need to worry about that. Oh, if the card does bus master DMA, then what "Intel DMA chip" are you talking about? -DG David Greenman Core-team/Principal Architect, The FreeBSD Project