mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Process memory DMA access from devices, kiobuf ?
@ 2001-03-08  9:21 Terry Barnaby
  2001-03-08 18:53 ` Gerd Knorr
  0 siblings, 1 reply; 2+ messages in thread
From: Terry Barnaby @ 2001-03-08  9:21 UTC (permalink / raw)
  To: linux-kernel

Hi,

We are doing work with FPGA's and have a Linux driver for a particular
board that has these
devices. For performance reasons the driver has the ability to DMA
directly to process (user)
memory. We have made use of the kiobuf routines such as
"map_user_kiobuf()" to map into
physical memory the user address space.
I note that the RedHat kernels have a patched kernel containing the
kiobuf code but the
standard linux source does not right up to 2.4.2.
Is there a better recommended way to perform DMA access to user memory
from a device
using the Linux kernel ?

Cheers

Terry

--
  Dr Terry Barnaby                     BEAM Ltd
  Phone: +44 1454 324512               Northavon Business Center, Dean Rd
  Fax:   +44 1454 313172               Yate, Bristol, BS37 5NH, UK
  Email: terry@beam.demon.co.uk        Web: www.beam.demon.co.uk
  BEAM for: Visually Impaired X-Terminals, Parallel Processing, Software Dev
                         "Tandems are twice the fun !"




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Process memory DMA access from devices, kiobuf ?
  2001-03-08  9:21 Process memory DMA access from devices, kiobuf ? Terry Barnaby
@ 2001-03-08 18:53 ` Gerd Knorr
  0 siblings, 0 replies; 2+ messages in thread
From: Gerd Knorr @ 2001-03-08 18:53 UTC (permalink / raw)
  To: linux-kernel

Terry Barnaby wrote:
> Hi,
> 
> We are doing work with FPGA's and have a Linux driver for a particular
> board that has these
> devices. For performance reasons the driver has the ability to DMA
> directly to process (user)
> memory. We have made use of the kiobuf routines such as
> "map_user_kiobuf()" to map into
> physical memory the user address space.
> I note that the RedHat kernels have a patched kernel containing the
> kiobuf code but the
> standard linux source does not right up to 2.4.2.

Huh?  map_user_kiobuf() _is_ present in 2.4.2.  See include/linux/iobuf.h

  Gerd

-- 
Get back there in front of the computer NOW. Christmas can wait.
	-- Linus "the Grinch" Torvalds,  24 Dec 2000 on linux-kernel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-03-08 19:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-08  9:21 Process memory DMA access from devices, kiobuf ? Terry Barnaby
2001-03-08 18:53 ` Gerd Knorr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®