Re: Problem with DMA buffer (in 2.2.15)

2001-02-22 Thread Norbert Roos
Christoph Baumann wrote: > is to do this in steps of PAGE_SIZE. What I'm looking for is a kernel routine > to force the mapping of previous unmapped pages. Browsing through the source > in mm/ I found make_pages_present(). Could this be the solution? I hadn't the Have you already looked at mlock

Re: Probs with PCI bus master DMA to user space

2001-02-20 Thread Norbert Roos
Jeff Garzik wrote: > > On Tue, 20 Feb 2001, Norbert Roos wrote: > > > Jeff Garzik wrote: > > > > > > But the buffers are usually allocated with malloc() by any application > > > > which wants to use my driver.. otherwise my driver would have to

Re: Probs with PCI bus master DMA to user space

2001-02-20 Thread Norbert Roos
Jeff Garzik wrote: > > But the buffers are usually allocated with malloc() by any application > > which wants to use my driver.. otherwise my driver would have to offer a > > malloc-like function, but I can hardly force the application to use my > > own malloc function. > > If you are writing th

Re: Probs with PCI bus master DMA to user space

2001-02-20 Thread Norbert Roos
> Allocate the buffers in the kernel and mmap() them into user space But the buffers are usually allocated with malloc() by any application which wants to use my driver.. otherwise my driver would have to offer a malloc-like function, but I can hardly force the application to use my own malloc f

Probs with PCI bus master DMA to user space

2001-02-20 Thread Norbert Roos
Hello! I think the following is general problem, but i haven't found any information about that yet.. I'm currently writing a driver which wants to transfer data between main memory and a PCI device. The data buffers are allocated by the program which uses the driver and therefore lie in the us