On Tue December 7 2010 22:18:20 Neo Tida wrote:
> I have a problem with ath5k. I can't get more than 14 Mbps with ath5k, but
> with madwifi and exactly that platform, I can get about  40 Mbps. For more
> info, I use openwrt(trunk) on two routerstation pro platform with ar5414
> based mini pci card in 11a mode.
> 
> As I can get a great performance with madwifi, it's not a hw problem.

40Mbps??? Sounds incredible. I've never seen more than 33Mbps with either 
madwifi or ath5k. But I can consistently get 33Mbps with ath5k on the same 
chipset and platform.

Oh - just remembering: there is a patch in OpenWRT, which limits DMA bust 
sizes to work around a HW problem, but it's too conservative. I have sent a 
patch to them but they didn't apply it. That's the change you have to make:
 
commit dacc09a722cc0064b299b59deca1806d93d661db
Author: Bruno Randolf <[email protected]>
Date:   Tue Oct 19 12:22:57 2010 +0900

    mac80211: improve ar71xx PCI bug WAR
    
    Since this PCI bug affects RX only, we can keep the 128B DMA size for TX.
    
    We have been using this setting since month without problems and a 
significant
    performance improvement.

diff --git a/package/mac80211/patches/201-ath5k-WAR-for-AR71xx-PCI-bug.patch 
b/package/mac80211/pa
index 38f56ed..a0d757c 100644
--- a/package/mac80211/patches/201-ath5k-WAR-for-AR71xx-PCI-bug.patch
+++ b/package/mac80211/patches/201-ath5k-WAR-for-AR71xx-PCI-bug.patch
@@ -12,7 +12,7 @@
 +#else
 +              /* WAR for AR71xx PCI bug */
 +              AR5K_REG_WRITE_BITS(ah, AR5K_TXCFG,
-+                      AR5K_TXCFG_SDMAMR, AR5K_DMASIZE_4B);
++                      AR5K_TXCFG_SDMAMR, AR5K_DMASIZE_128B);
 +              AR5K_REG_WRITE_BITS(ah, AR5K_RXCFG,
 +                      AR5K_RXCFG_SDMAMW, AR5K_DMASIZE_4B);                    
                  
 +#endif                                                                        
                  
@@ -30,7 +30,7 @@                                                               
                  
        { AR5K_RXCFG,           AR5K_DMASIZE_128B },                            
                  
 +#else                                                                         
                  
 +      /* WAR for AR71xx PCI bug */                                            
                  
-+      { AR5K_TXCFG,           AR5K_DMASIZE_4B },                              
                  
++      { AR5K_TXCFG,           AR5K_DMASIZE_128B },                            
                  
 +      { AR5K_RXCFG,           AR5K_DMASIZE_4B },                              
                  
 +#endif                                                                        
                  
        { AR5K_CFG,             AR5K_INIT_CFG }, 

Hope that helps,
bruno
_______________________________________________
ath5k-devel mailing list
[email protected]
https://lists.ath5k.org/mailman/listinfo/ath5k-devel

Reply via email to