2001-03-08 09:22:42

by Terry Barnaby

[permalink] [raw]
Subject: Process memory DMA access from devices, kiobuf ?

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: http://www.beam.demon.co.uk
BEAM for: Visually Impaired X-Terminals, Parallel Processing, Software Dev
"Tandems are twice the fun !"




2001-03-08 19:30:58

by Gerd Knorr

[permalink] [raw]
Subject: Re: Process memory DMA access from devices, kiobuf ?

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