From: hgp-linux@madaket.netwizards.net
To: linux-kernel@vger.kernel.org
Subject: Strange mm problem??
Date: Wed, 17 Jan 2001 11:46:36 -0800 [thread overview]
Message-ID: <200101171946.LAA25426@madaket.netwizards.net> (raw)
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/
reply other threads:[~2001-01-17 19:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200101171946.LAA25426@madaket.netwizards.net \
--to=hgp-linux@madaket.netwizards.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®