Skip to contentSkip to conversation

b43: warn when forcing PIO mode

PATCH Superseded Rafał Miłecki 2 participants 2 messages Aug 16, 2011 Networking drivers (wireless)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 b43: warn when forcing PIO mode

We have resolved all the known issues with DMA mode, however some users (or distros) are still forcing PIO mode by config files. Without debugging enabled it's not noticable at all. Add the warning for them.

---
 drivers/net/wireless/b43/main.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
drivers/net/wireless/b43/main.c +7 -2
index 1adadc8..e0b1156 100644
@@ -4636,8 +4636,13 @@ static int b43_wireless_core_init(struct b43_wldev *dev)
 	b43_shm_write16(dev, B43_SHM_SCRATCH, B43_SHM_SC_MAXCONT, 0x3FF);
 
 	if (b43_bus_host_is_pcmcia(dev->dev) ||
-	    b43_bus_host_is_sdio(dev->dev) ||
-	    dev->use_pio) {
+	    b43_bus_host_is_sdio(dev->dev)) {
+		dev->__using_pio_transfers = 1;
+		err = b43_pio_init(dev);
+	} else if (dev->use_pio) {
+		b43warn(dev->wl, "Forced PIO by use_pio module paramater. "
+			"This should not be needed and will result in lower "
+			"performance.\n");
 		dev->__using_pio_transfers = 1;
 		err = b43_pio_init(dev);
 	} else {
Signature · 1 line
1.7.3.4
#1 lore raw

PATCH 1/1 b43: warn when forcing PIO mode

2011/8/16 Rafa? Mi?ecki <[email protected]>

Quoted 17 lines

We have resolved all the known issues with DMA mode, however some users (or distros) are still forcing PIO mode by config files. Without debugging enabled it's not noticable at all. Add the warning for them.

---
 drivers/net/wireless/b43/main.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
drivers/net/wireless/b43/main.c +0 -0
index 1adadc8..e0b1156 100644
@@ -4636,8 +4636,13 @@ static int b43_wireless_core_init(struct b43_wldev
 *dev)
       b43_shm_write16(dev, B43_SHM_SCRATCH, B43_SHM_SC_MAXCONT, 0x3FF);

drivers/net/wireless/b43/main.c static int b43_wireless_core_init(struct b43_wldev · line 4645

Quoted 10 lines
drivers/net/wireless/b43/main.c +5 -2
 
       if (b43_bus_host_is_pcmcia(dev->dev) ||
-           b43_bus_host_is_sdio(dev->dev) ||
-           dev->use_pio) {
+           b43_bus_host_is_sdio(dev->dev)) {
+               dev->__using_pio_transfers = 1;
+               err = b43_pio_init(dev);
+       } else if (dev->use_pio) {
+               b43warn(dev->wl, "Forced PIO by use_pio module paramater. "
 

I guess you meant "parameter".

Quoted 9 lines
drivers/net/wireless/b43/main.c +1 -0
+                       "This should not be needed and will result in lower

"

+                       "performance.\n");
               dev->__using_pio_transfers = 1;
               err = b43_pio_init(dev);
       } else {

--
1.7.3.4

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/b43-dev/attachments/20110816/859f877f/attachment.html>