* [PATCH] Fix 8139too ring size for dreamcast/embedded
@ 2004-05-11 12:54 Paul Mundt
2004-05-20 2:18 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: Paul Mundt @ 2004-05-11 12:54 UTC (permalink / raw)
To: Jeff Garzik; +Cc: shemminger, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1366 bytes --]
Presently 2.6.6 backs out the CONFIG_8139_RXBUF_IDX in favor of using a
hardcoded 8139_RXBUF_IDX (again). This seems to have been done due to
some issues occuring with 8139_RXBUF_IDX == 3, however (as the Kconfig
pointed out), we still need 8139_RXBUF_IDX == 1 in the CONFIG_SH_DREAMCAST
case.
The patch which made this change can be seen at:
http://linux.bkbits.net:8080/linux-2.5/user=shemminger/cset@1.1371.719.67?nav=!-|index.html|stats|!+|index.html|ChangeSet@-8w
Before that, CONFIG_8139_RXBUF_IDX was set to 1 both in the CONFIG_SH_DREAMCAST
and CONFIG_EMBEDDED cases. This patch adds that back into the current 8139too.
Additionally, why remove the config option at all? Wouldn't it just be
easier to drop the range from 0 - 3 to 0 - 2 until problems with a 64K ring
size are resolved?
--- linux-2.6.6/drivers/net/8139too.c.orig Tue May 11 08:36:24 2004
+++ linux-2.6.6/drivers/net/8139too.c Tue May 11 08:36:29 2004
@@ -171,7 +171,11 @@
* Receive ring size
* Warning: 64K ring has hardware issues and may lock up.
*/
+#if defined(CONFIG_SH_DREAMCAST) || defined(CONFIG_EMBEDDED)
+#define RX_BUF_IDX 1 /* 16K ring */
+#else
#define RX_BUF_IDX 2 /* 32K ring */
+#endif
#define RX_BUF_LEN (8192 << RX_BUF_IDX)
#define RX_BUF_PAD 16
#define RX_BUF_WRAP_PAD 2048 /* spare padding to handle lack of packet wrap */
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix 8139too ring size for dreamcast/embedded
2004-05-11 12:54 [PATCH] Fix 8139too ring size for dreamcast/embedded Paul Mundt
@ 2004-05-20 2:18 ` Jeff Garzik
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2004-05-20 2:18 UTC (permalink / raw)
To: Paul Mundt; +Cc: shemminger, linux-kernel
Paul Mundt wrote:
> Presently 2.6.6 backs out the CONFIG_8139_RXBUF_IDX in favor of using a
> hardcoded 8139_RXBUF_IDX (again). This seems to have been done due to
> some issues occuring with 8139_RXBUF_IDX == 3, however (as the Kconfig
> pointed out), we still need 8139_RXBUF_IDX == 1 in the CONFIG_SH_DREAMCAST
> case.
>
> The patch which made this change can be seen at:
>
> http://linux.bkbits.net:8080/linux-2.5/user=shemminger/cset@1.1371.719.67?nav=!-|index.html|stats|!+|index.html|ChangeSet@-8w
>
> Before that, CONFIG_8139_RXBUF_IDX was set to 1 both in the CONFIG_SH_DREAMCAST
> and CONFIG_EMBEDDED cases. This patch adds that back into the current 8139too.
Patch applied to 2.6.x.
> Additionally, why remove the config option at all? Wouldn't it just be
> easier to drop the range from 0 - 3 to 0 - 2 until problems with a 64K ring
> size are resolved?
<shrug> Mainly it was easier just to hardcode it in the driver.
I would not object to your suggestion of "0 - 2", however I tend to
think that the current lack of option, with your patch applied, serves
the user best: the driver will always use the largest RX buffer
possible for the hardware.
Jeff
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-05-20 2:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-11 12:54 [PATCH] Fix 8139too ring size for dreamcast/embedded Paul Mundt
2004-05-20 2:18 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox