Alexey Chalimov wrote:
> Dear All
> 
> I noticed a really weird problem using DirectFB based application and
> ndiswrapper ( a wrapper for Windows NDIS drivers under Linux ) .
> Both are not connected in any way except that they are used simultaneously on 
> the same system.  If the WiFi card is inserted when the dfb-based
> application is not running - everything works fine, otherwise  a error 
> appears in syslog and the driver for WiFi card is not loaded. 
> The application uses the overlay layer for its output. 
>    
> 
> Here is the error ( note the lines with asterisks *** ):
> 
> kernel: ndiswrapper: driver netcg54l (BUFFALO INC.,04/18/2004,6.0.3.26) loaded
> kernel: PCI: Setting latency timer of device 03:00.0 to 64
> 
> *** kernel: __alloc_pages: 7-order allocation failed (gfp=0x21/0)

Either you're running out of memory or the memory is getting too fragmented so
it cannot allocate a single 512KB (4096 * 2^7) block of memory in the DMA zone 
as
requested by ndiswrapper.

> ***kernel: ndiswrapper (NdisMAllocateSharedMemory:896): failed to allocate 
> DMA 
> coherent memory; Windows driver requested 409600 bytes of un-cached memory
> ***kernel: ndiswrapper (miniport_init:227): couldn't initialize device: 
> C0000001
> 

Try minimizing i810fb's usage or RAM.  

1. Boot with

video=i810fb:vram:1 or 2 /* just the minimum for your display requirements */

2. Open linux/drivers/video/i810/i810.h and decrease the value in

#define RINGBUFFER_SIZE /* to 8k or 16k */

3. Open Directfb/gfxdrivers/i810/i810.h and also decrease the value in

#define RINGBUFFER_SIZE

Tony

BTW: What does /proc/vmstat and /proc/zoneinfo show before and after you load
the applications?


_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to