Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 May 2016 23:45:16 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r299797 - head/sys/dev/bwn
Message-ID:  <201605142345.u4ENjGGA091035@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Sat May 14 23:45:16 2016
New Revision: 299797
URL: https://svnweb.freebsd.org/changeset/base/299797

Log:
  [bwn] disable writing slottime timing out to improve performance.
  
  this is from b43 linux, there's a comment in there which notes
  one nic family suffers performance degredation with this being set.

Modified:
  head/sys/dev/bwn/if_bwn.c

Modified: head/sys/dev/bwn/if_bwn.c
==============================================================================
--- head/sys/dev/bwn/if_bwn.c	Sat May 14 23:44:30 2016	(r299796)
+++ head/sys/dev/bwn/if_bwn.c	Sat May 14 23:45:16 2016	(r299797)
@@ -6381,10 +6381,15 @@ static void
 bwn_set_slot_time(struct bwn_mac *mac, uint16_t time)
 {
 
+	/* XXX should exit if 5GHz band .. */
 	if (mac->mac_phy.type != BWN_PHYTYPE_G)
 		return;
+
 	BWN_WRITE_2(mac, 0x684, 510 + time);
+	/* Disabled in Linux b43, can adversely effect performance */
+#if 0
 	bwn_shm_write_2(mac, BWN_SHARED, 0x0010, time);
+#endif
 }
 
 static struct bwn_dma_ring *



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605142345.u4ENjGGA091035>