From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 28985 invoked from network); 16 Mar 1999 19:58:54 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 16 Mar 1999 19:58:54 -0000 Received: from ares.cs.Virginia.EDU (ares.cs.Virginia.EDU [128.143.136.41] (may be forged)) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id OAA02666 for ; Tue, 16 Mar 1999 14:48:53 -0500 Received: from adder.cs.Virginia.EDU (adder.cs.Virginia.EDU [128.143.137.18]) by ares.cs.Virginia.EDU (8.9.2/8.9.2/UVACS-1999030200) with ESMTP id OAA15419 for ; Tue, 16 Mar 1999 14:48:44 -0500 (EST) From: Greg Lindahl Received: (from lindahl@localhost) by adder.cs.Virginia.EDU (8.8.5/8.8.5) id OAA15855 for axp-list@redhat.com; Tue, 16 Mar 1999 14:48:43 -0500 (EST) Message-Id: <199903161948.OAA15855@adder.cs.Virginia.EDU> Subject: Re: supporting large memory on alphas today To: axp-list@redhat.com Date: Tue, 16 Mar 1999 14:48:43 -0500 (EST) In-Reply-To: <199903161812.NAA00611@linux03.hlo.dec.com> from "Jay.Estabrook@digital.com" at Mar 16, 99 01:12:19 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit > > The hack of raising the ISA_DMA_THRESHHOLD will make the SCSI code > > work. What other drivers dma to user buffers? My myrinet networking > > card does, but supposedly normal video and networking cards do not. > > Well, the sound drivers prolly can. How about the DMA-capable IDE drivers? A quick spin through the IDE code says that it has no bounce buffer stuff -- I wonder how ISA IDE cards work? I guess there aren't any ISA IDE cards that do DMA. Whereas the generic SCSI code is aware of ISA cards, and that's why we think this hack would work. On the other hand, it may be easy to add this to the IDE code. There is a routine ide_dmaproc which does all the work. In ide_build_dmatable we see if we need a bounce buffer, and copy write data. In ide_dmaproc for the ide_dma_end case, we copy the read data and free the bounce buffer. Or you can also modify ide-dma.c/ide_setup_dma() to always read to pages that are dma-able, and only have to bounce writes. This would get all the generic devices; the ones with specific drivers will need similar modifications. The sound code (drivers/sound/dmabuf.c) seems to always use GPF_DMA to get buffers, which isn't quite right, but won't bother us. -- g