Re: Allocating uge chunks of kernel memory

Alessandro Rubini (rubini@pop.systemy.it)
Sat, 14 Feb 1998 19:54:16 +0100 (MET)


Andrea Cisternino, about the AMCC 5933:
> As regards the problem of allocating huge chunks of memory, in a
> subsequent version I used the bigphysarea patch as already suggested in
> this list.

I have just produced a driver for another 5933-based device. Since my
client needs 100MB DMA's out of 128MB boxes, I chose to use high
memory. This is very efficient, and I used it for frame grabbers as
well.

With this approach no patch is needed: to get a 2MB buffer in a 32MB box,
for example, just boot with "mem=30M" and it's done.

The source is available as allocator.[ch] within these GPL'd drivers:

ftp://ftp.systemy.it/pub/develop/pxdrv-0.06.tar.gz
(one DMA buffer only)
ftp://ftp.systemy.it/pub/develop/adl7200-0.04.tar.gz
(newer implementation: drivers allocate/free high-memory regions)

Regards
/alessandro

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu