Skip to contentSkip to conversation

Process memory DMA access from devices, kiobuf ?

DISCUSSION Terry Barnaby 2 participants 2 messages Mar 8, 2001

lore
Share & tools
lore
#0 lore raw

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: [email protected]        Web: www.beam.demon.co.uk

BEAM for: Visually Impaired X-Terminals, Parallel Processing, Software Dev
"Tandems are twice the fun !"

#1 lore raw
Quoted 12 lines · Terry Barnaby

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

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