[uClinux-dev] kmalloc fails

2008-10-28 Thread Dave Meador
Hello, kmalloc is returning 0 when I try to allocate 24335 bytes inside a FEC driver that I am porting to coldfire uclinux 547x. I have enabled the kernel feature "[*] Allow allocating large blocks (> 1MB) of memory" to see if this fixes my problem, but no joy. Does anyone have an idea of what I

Re: [uClinux-dev] kmalloc fails

2008-10-29 Thread Greg Ungerer
Hi Dave, Dave Meador wrote: kmalloc is returning 0 when I try to allocate 24335 bytes inside a FEC driver that I am porting to coldfire uclinux 547x. I have enabled the kernel feature "[*] Allow allocating large blocks (> 1MB) of memory" to see if this fixes my problem, but no joy. Does anyone

Re: [uClinux-dev] kmalloc fails

2008-10-29 Thread Dave Meador
Hi Greg, I noticed that the kmalloc call uses the GFP_DMA flag. I am not sure if that is a problem. FYI, I have also attempted to implemented DMA for use with the FEC driver as the driver hooks into DMA interrupts for callbacks when send/receive events occur. I don't know for certain that the D

Re: [uClinux-dev] kmalloc fails

2008-10-30 Thread Dave Meador
Okay, I have got a bit further on the kmalloc failure problem. I found a discussion about ZONE_DMA in memory: http://www.mail-archive.com/uclinux-dev@uclinux.org/msg03735.html which discusses allocation of a ZONE_DMA region for kmalloc(x, GFP_DMA) calls. If this zone is not setup, then kmalloc wi