* Strange mm problem??
@ 2001-01-17 19:46 hgp-linux
0 siblings, 0 replies; only message in thread
From: hgp-linux @ 2001-01-17 19:46 UTC (permalink / raw)
To: linux-kernel
I'm having a crazy mm problem with the new 2.4.0 kernel. I've got a
device in which I do DMA i/o from user space.
I have a dd which allocs mem (for use as a DMA staging area) and then
I use remap_page_range() to map it into user land (via the mmap()
interface). I was using __get_dma_pages(), the MAP_NR macro, and
mem_map_reserve() to allocate and reserve the mem.
It works great in 2.2.12 and 2.4.0-test4. Now with 2.4.0 production,
I borrowed the uvirt_to_kva(), uvirt_to_bus(), kvirt_to_pa()
and rvmalloc() functions from drivers/media/video/bttv-driver.c
Now here's the wierd part: Memory is allocated ok and I can read to and
write from it in the dd. But in the userland application, I can write
to it OK, but all reads return 0xff!
I'm sure I'm doing something wrong but can't figure out what!
Any assistance would be appreciated.
REgards,
Howard G Page
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-01-17 19:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-17 19:46 Strange mm problem?? hgp-linux
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®