On 10/04/14 17:26, Russell King - ARM Linux wrote:
What's probably more relevant (which probably is a contributory factor to the allocation failure) is the command line arguments:
mem=512M vmalloc=1G
which I always supply to OMAP kernels - this forces almost all of the memory into highmem.
Is everything (well, at least display) supposed to work with that? If I try vmalloc=1G (on my config), I can't even boot with nfsroot on panda, as the USB seems to fail to initialize. And I see "cma: CMA: failed to reserve 48 MiB" at the very start of the kernel log.
Ah, I see. If I disable CMA from the kernel config, I am able to boot, although omapfb still fails to allocate the fb. However, I see a spam from oom-killer when the rootfs starts to boot.
What's the DMA-able memory when CMA is off? Is it the low mem? With vmalloc=1G, lowmem seems to be 32MB. I guess that's big enough in theory to be able to allocate a framebuffer, presuming it's not fragmented, and there's not much there, and, of course, depending on the resolution.
Tomi