On 11/04/14 15:37, Russell King - ARM Linux wrote:
On Fri, Apr 11, 2014 at 03:20:35PM +0300, Tomi Valkeinen wrote:
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.
Yes it is supposed to boot, and does boot. Here's the results - last nights with the runtime get/put added:
Well, I meant generally, not just for your config. At least with CMA enabled, the kernel doesn't seem to work. I see this in the log with booting with CMA, which probably affects drivers:
DMA: failed to allocate 256 KiB pool for atomic coherent allocation
And, as I mentioned, even without CMA, OOM killer is triggered for me almost instantly after rootfs is mounter (seems to __alloc_pages_nodemask, first call from alloc_inode()).
But I see enabling HIGHPTE helps, for CMA case also. I guess lowmem is just so tight with vmalloc=1G that it's easy to get problems.
As ever, full details are there - configuration files, full build logs and full boot logs.
Not sure why, but the config links return a blank page for me. For example:
http://www.arm.linux.org.uk/developer/build/file.php?lid=5514
Tomi