[lkml]   [2012]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: CMA on arm from zero address
Russell King - ARM Linux wrote:
> On Wed, Feb 08, 2012 at 02:21:26PM +0100, Michal Simek wrote:
>> First of all I have found how to do it (by CONFIG_PHYS_OFFSET) so the
>> problem is in QEMU.
> So you're basically not telling the kernel about the first 32MB of memory.

It is not a problem.

>> Currently experimenting how to convince CMA to allocate that memory for
>> my purpose.
> Which means it won't be part of the kernels normal memory map, and so
> won't be in the page pool. So CMA won't be able to help.
> Instead, just ignore the first 32MB of RAM, and map it like any other
> peripheral to gain access to it. You might need to use ioremap_wc()
> to avoid treating the memory as a 'device type' in ARMv6+.

I switched from cma to dma_declare_coherent_memory which does exactly what I wanted to


Michal Simek, Ing. (M.Eng)
w: p: +42-0-721842854
Maintainer of Linux kernel 2.6 Microblaze Linux -
Microblaze U-BOOT custodian

 \ /
  Last update: 2012-02-10 11:19    [W:0.026 / U:5.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site