#1017: "rx FIFO overrun" prevents traffic from flowing
------------------------------------+---------------------------------------
Reporter: [EMAIL PROTECTED] | Owner:
Type: defect | Status: new
Priority: critical | Milestone:
Component: madwifi: driver | Version: trunk
Resolution: | Keywords:
Patch_attached: 0 |
------------------------------------+---------------------------------------
Comment (by charlie):
Until now I can say that my patch to change the DMA sizes(for r3620) has
resulted in 0 NMIs.
{{{
--- /usr/portage/distfiles/svn-src/madwifi-ng/trunk/ath/if_ath_pci.c
2008-04-27 00:02:57.000000000 +0300
+++ if_ath_pci.c 2008-05-08 18:35:52.000000000 +0300
@@ -133,6 +133,7 @@
u32 val;
u16 vdevice;
int i;
+ int rxcfg, txcfg;
if (pci_enable_device(pdev))
return -EIO;
@@ -252,6 +253,29 @@
dev_info, dev->name, athname ? athname : "Atheros ???",
(unsigned long long)phymem, dev->irq);
+#define TXCFG 0x0030
+#define RXCFG 0x0034
+
+ if (vdevice == AR5418_DEVID) {
+ txcfg = _OS_REG_READ(sc->aps_sc.sc_ah, TXCFG);
+ rxcfg = _OS_REG_READ(sc->aps_sc.sc_ah, RXCFG);
+ printk (KERN_INFO "ath_pci: rxcfg: %08x (%d bytes DMA
transfer), txcfg: %08x (%d bytes DMA transfer)\n",
+ rxcfg, 1 << ((rxcfg & 7) + 2),
+ txcfg, 1 << ((txcfg & 7) + 2));
+ if ((rxcfg & 7) != 5 )
+ OS_REG_WRITE(sc->aps_sc.sc_ah, RXCFG, (rxcfg &
(~7)) | 5);
+ if ((txcfg & 7) != 5 )
+ OS_REG_WRITE(sc->aps_sc.sc_ah, TXCFG, (txcfg &
(~7)) | 5);
+ }
+
+#undef RXCFG
+#undef TXCFG
+
}}}
Interestingly the settings in the beginning are either the opposite of
what is described in ath5k, or I mixed something up.
--
Ticket URL: <https://madwifi.org/ticket/1017#comment:195>
madwifi.org <http://madwifi.org/>
Multiband Atheros Driver for Wireless Fidelity
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Madwifi-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/madwifi-tickets