Re: [PATCH] mvme147: use correct order of ram pages

Andreas Schwab
2014-05-28T09:39:25Z

Geert Uytterhoeven <geert@linux-m68k.org> writes:

>> -/* We have 16834 bytes of RAM for the init block and buffers. This places
>> +/* We have 16384 bytes of RAM for the init block and buffers. This places
>> * an upper limit on the number of buffers we can use. NetBSD uses 8 Rx
>> * buffers and 2 Tx buffers.
>> */
>> +#define M147LANCE_RAM_SIZE 16384 /* 16K */
>> #define LANCE_LOG_TX_BUFFERS 1
>> #define LANCE_LOG_RX_BUFFERS 3
>
> BTW,I also find it fishy why the driver uses only 1+3 buffers, since more
> RAM is available.

It's 2^1+2^3.

Andreas.

--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."