#define CONSISTENT_DMA_SIZE (23<<20)
it's in include/asm-arm/arch-davinci/memory.h
The other setting you modified does not affect contiguous DMA
allocations. I would argue that boot time memory allocation is
generally a bad idea. The perceived necessity is only a side-effect of
trying to fit square things into non-square holes... As in trying to
fit every kind of hardware surface into linuxfb. The memory allocations
could be better handled in a v4l2 driver using a PCI pool, though the
simplicity of a memory mapped framebuffer (as in fb console) would be
lost. To each their own, but your _simple fix_ is probably thus.
steven.zhang wrote:
On Wed, 2008-05-07 at 23:38 +0800, Bernard Blackham wrote:
steven.zhang wrote:
On Wed, 2008-05-07 at 11:49 +0200, Matthias Welwarsky wrote:
Yes, I think, we should not allocate frame buffer memory dynamic.Map a fix
memory area before kernel start?
I'm afraid so, yes. I've been trying to use dma_alloc_coherent()
And your suggestion? Is there a better API to allocation the DMA
memory?Thanks.
See http://lwn.net/images/pdf/LDD3/ch08.pdf section on "Acquiring a
Dedicated Buffer at Boot Time".
Ah, what a great! Bernard!I just have a LDD3 in hand!Thanks so much.
Bernard.
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source