From: Greg Lindahl <lindahl@cs.virginia.edu>
To: axp-list@redhat.com
Subject: Re: supporting large memory on alphas today
Date: Tue, 16 Mar 1999 14:48:43 -0500 (EST) [thread overview]
Message-ID: <199903161948.OAA15855@adder.cs.Virginia.EDU> (raw)
In-Reply-To: <199903161812.NAA00611@linux03.hlo.dec.com> from "Jay.Estabrook@digital.com" at Mar 16, 99 01:12:19 pm
> > 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
prev parent reply other threads:[~1999-03-16 19:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-14 20:31 supporting large memory on alphas today Greg Lindahl
1999-03-14 20:44 ` Dave Gilbert
1999-03-14 20:56 ` Greg Lindahl
1999-03-14 21:14 ` Jay.Estabrook
1999-03-14 21:47 ` Greg Lindahl
1999-03-15 1:37 ` Jay.Estabrook
1999-03-16 13:02 ` Greg Lindahl
1999-03-16 18:12 ` Jay.Estabrook
1999-03-16 19:48 ` Greg Lindahl [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox