From: ? <uns...@us...> - 2002-05-23 20:34:18
|
Update of /cvsroot/linux-vax/kernel-2.4/drivers/net In directory usw-pr-cvs1:/tmp/cvs-serv24728 Modified Files: vaxsgec.c Log Message: The memory area we're using for buffers needs to be about 136K. But we were only allocating 64K for it. Now we allocate 256K. Also fixed a harmless printk typo. Index: vaxsgec.c =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.4/drivers/net/vaxsgec.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- vaxsgec.c 23 May 2002 19:12:08 -0000 1.4 +++ vaxsgec.c 23 May 2002 20:34:15 -0000 1.5 @@ -136,7 +136,7 @@ int oldvect; #ifdef VAX_SGEC_DEBUG - printk("init_restart_sgec\n", i); + printk("init_restart_sgec\n"); #endif udelay(100); @@ -732,9 +732,11 @@ spin_lock_init(&lp->lock); /* Need a block of 64KB */ + /* erm.. the way we have it set up, we need 90 buffers at 1536 bytes + each (plus 128 bytes).. over 128KB */ /* At present, until we figure out the address extension * parity control bit, ask for memory in the DMA zone */ - dev->mem_start = __get_free_pages(GFP_DMA, 4); + dev->mem_start = __get_free_pages(GFP_DMA, /*4*/ 6); if (!dev->mem_start) { /* Shouldn't we free dev->priv here if dev was non-NULL on entry? */ return -ENOMEM; |