Re: PATCH: support for firmwares sizes up to 128000 bytes

Arnaldo Carvalho de Melo (acme@conectiva.com.br)
Tue, 22 Dec 1998 14:21:04 -0200 (EDT)


On Tue, 22 Dec 1998, Alan Cox wrote:

> > Please apply this patch to support firmwares sizes up to 128000 bytes
> > in the wanrouter. This is needed for a sync card that we're developing
> > a wanrouter driver.
>
> I dont think so. You need to change to using vmalloc not kmalloc at
> this point too. Check the existing Sdla cards dont use DMA for the
> firmware (Im pretty sure they dont) - swap it for a vmalloc/vfree not
> a kfree then resubmit it.
>
> A 128K kmalloc isnt going to work

Ok, I know that, that's why I'm using up to 128000 bytes, not more than
131048 bytes :)

I also add that I'm beggining kernel programming, and I'm using the books
from Rubini and M. Beck et al, and both point outs the limit for kmalloc
at slightly less than 32 pages (128 KB on the Intel).

- Arnaldo

"These are questions for action,
not speculation, which is idle." - Noam Chomsky

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/