* (no subject)
@ 2005-02-23 1:31 Frank Buss
0 siblings, 0 replies; only message in thread
From: Frank Buss @ 2005-02-23 1:31 UTC (permalink / raw)
To: 'Linux Kernel Mailing List'; +Cc: rmk+lkml
Russell King <rmk+lkml@arm.linux.org.uk> wrote:
> Since we map the whole lot in one go, if you get one page, there's no
> reason why you shouldn't get the lot. This is why I'm wondering if
> it has something to do with your other modifications.
my colleage has found the bug: in the function dma_mmap in
arch/arm/mm/consistent.c the call to remap_pfn_range uses user_size in
PAGE_SIZE units, but looks like it is expected in bytes. When using
(user_size << PAGE_SHIFT), it works.
I don't know, where to fix it: Should the lower level calls get the size in
bytes (most function arguments in Linux kernel sources are not commented),
this means fixing the dma_mmap, or should PAGE_SIZE be used, then the lower
level functions needs to be fixed.
--
Frank Buß, fb@frank-buss.de
http://www.frank-buss.de, http://www.it4-systems.de
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-02-23 1:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-23 1:31 Frank Buss
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®