DragonFly bugs List (threaded) for 2007-01
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: em(4) on thinkpad t60
On 1/18/07, Michal Belczyk <belczyk@bsd.krakow.pl> wrote:
On Wed, Jan 17, 2007 at 06:43:36PM +0100, Michal Belczyk wrote:
> 3. Network connections work very slowly unless polling(4) is enabled for em0:
[...]
I wonder if it's the same hardware bug as on X60 -- I'll test the workaround
posted to freebsd-current few minutes ago and let you know.
Ah, yeah, please test it or the attachment (same patch)
Best Regards,
sephe
--
Live Free or Die
--- if_em.c.orig 2007-01-18 09:32:50.478362243 +0800
+++ if_em.c 2007-01-18 09:35:30.175765733 +0800
@@ -132,6 +132,8 @@
#include <dev/netif/em/if_em_hw.h>
#include <dev/netif/em/if_em.h>
+#define EM_X60_WORKAROUND
+
/*********************************************************************
* Set this to one to display debug statistics
*********************************************************************/
@@ -2884,6 +2886,11 @@ em_initialize_receive_unit(struct adapte
E1000_WRITE_REG(&adapter->hw, RXCSUM, reg_rxcsum);
}
+#ifdef EM_X60_WORKAROUND
+ if (adapter->hw.mac_type == em_82573)
+ E1000_WRITE_REG(&adapter->hw, RDTR, 32);
+#endif
+
/* Enable Receives */
E1000_WRITE_REG(&adapter->hw, RCTL, reg_rctl);
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]