DMA consistent allocation is limited to 2MB on 2.6.11 for ppc440?
Shawn Jin
shawnxjin at gmail.com
Thu May 19 10:54:39 EST 2005
Hi,
The page table 'consistent_pte' covers the uncached DMA consistent
allocation space. Its size is only one page, each page has 512 PTEs.
That means only 2MB memory are available for DMA. For some
applications this is not enough. So how to eliminate this limitation?
I noticed that there are two configuration macros related to this
issue: CONFIG_CONSISTENT_START and CONFIG_CONSISTENT_SIZE. The current
value for CONFIG_CONSISTENT_SIZE is 2MB, which is exactly able to be
covered by one page. I guess that's why consistent_pte is initialized
to just one page. So simply changing CONFIG_CONSISTENT_SIZE cannot
remove the 2MB limitation. dma_alloc_init() has to be modified to
initialize consisten_pte to some pages which are enough to cover
CONFIG_CONSISTENT_SIZE memory space. Right?
Does increasing CONSISTENT_SIZE have any side effects?
Thanks,
-Shawn.
More information about the Linuxppc-embedded
mailing list