Author: Mark KettenisMark Kettenis
Date: Feb 6, 2008 12:20
This diff seems to prevent gem(4) from hanging on the Sun Fire V120
and similar boxes. To make sure this doesn't cause any problems on
other variants I'd like to ask people to test it, especially on Apple
hardware.
Index: gem.c
===================================================================
RCS file: /cvs/src/sys/dev/ic/gem.c,v
retrieving revision 1.71
diff -u -p -r1.71 gem.c
--- gem.c 11 Jan 2008 22:50:18 -0000 1.71
+++ gem.c 6 Feb 2008 19:53:34 -0000
@@ -762,7 +762,7 @@ gem_init(struct ifnet *ifp)
v = gem_ringsize(GEM_NTXDESC /*XXX*/);
bus_space_write_4(t, h, GEM_TX_CONFIG,
v|GEM_TX_CONFIG_TXDMA_EN|
- ((0x400<<10)&GEM_TX_CONFIG_TXFIFO_TH));
+ ((0x4ff<<10)&GEM_TX_CONFIG_TXFIFO_TH));
bus_space_write_4(t, h, GEM_TX_KICK, 0);
/* step 10. ERX Configuration */
|