* p54usb broken by commit b19fa1f
@ 2008-08-02 3:06 Larry Finger
2008-08-02 12:57 ` Chr
2008-08-03 20:13 ` [RFC/RFT] p54usb: Regression due to " Larry Finger
0 siblings, 2 replies; 4+ messages in thread
From: Larry Finger @ 2008-08-02 3:06 UTC (permalink / raw)
To: David S. Miller; +Cc: wireless, LKML
In testing 2.6.27-rc1, I found that p54usb caused my machine to freeze. A few
times, I was able to use the KDE system status applet to see that the system was
using essentially 100% of the CPU's. One other time, the system responded a
little - enough for me to see tha wpa_supplicant was consuming 100% of the my
AMD Turion 64 X2 running an x86_64 kernel. From bisection, the problem is due to
commit b19fa1fa91845234961c64dbd564671aa7c0fd27
Author: David S. Miller <davem@davemloft.net>
Date: Tue Jul 8 23:14:24 2008 -0700
net: Delete NETDEVICES_MULTIQUEUE kconfig option.
Multiple TX queue support is a core networking feature.
Signed-off-by: David S. Miller <davem@davemloft.net>
Obviously, something in the driver cannot handle multiqueues, but I
have not found anything, and I have not been able to get any logged events that
show what is going wrong.
Thanks,
Larry
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: p54usb broken by commit b19fa1f
2008-08-02 3:06 p54usb broken by commit b19fa1f Larry Finger
@ 2008-08-02 12:57 ` Chr
2008-08-03 20:07 ` Larry Finger
2008-08-03 20:13 ` [RFC/RFT] p54usb: Regression due to " Larry Finger
1 sibling, 1 reply; 4+ messages in thread
From: Chr @ 2008-08-02 12:57 UTC (permalink / raw)
To: Larry Finger; +Cc: David S. Miller, wireless, LKML
On Saturday 02 August 2008 05:06:37 Larry Finger wrote:
> In testing 2.6.27-rc1, I found that p54usb caused my machine to freeze. A
> few times, I was able to use the KDE system status applet to see that the
> system was using essentially 100% of the CPU's. One other time, the system
> responded a little - enough for me to see tha wpa_supplicant was consuming
> 100% of the my AMD Turion 64 X2 running an x86_64 kernel. From bisection,
> the problem is due to
>
> commit b19fa1fa91845234961c64dbd564671aa7c0fd27
> Author: David S. Miller <davem@davemloft.net>
> Date: Tue Jul 8 23:14:24 2008 -0700
>
> net: Delete NETDEVICES_MULTIQUEUE kconfig option.
>
> Multiple TX queue support is a core networking feature.
>
> Signed-off-by: David S. Miller <davem@davemloft.net>
>
> Obviously, something in the driver cannot handle multiqueues, but I
> have not found anything, and I have not been able to get any logged events
> that show what is going wrong.
>
Hmm that's a bit odd as my p54usb-adapter seems to work usual with
2.6.27-rc1?!... That said: it doesn't work nearly as stable as the
minipci card that I have too. Is there anyone else who can confirm
that this problem is specific to the p54 driver & 2.6.27-rc1?
Regards,
Chr.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: p54usb broken by commit b19fa1f
2008-08-02 12:57 ` Chr
@ 2008-08-03 20:07 ` Larry Finger
0 siblings, 0 replies; 4+ messages in thread
From: Larry Finger @ 2008-08-03 20:07 UTC (permalink / raw)
To: Chr; +Cc: David S. Miller, wireless, LKML
Chr wrote:
> On Saturday 02 August 2008 05:06:37 Larry Finger wrote:
>> In testing 2.6.27-rc1, I found that p54usb caused my machine to freeze. A
>> few times, I was able to use the KDE system status applet to see that the
>> system was using essentially 100% of the CPU's. One other time, the system
>> responded a little - enough for me to see tha wpa_supplicant was consuming
>> 100% of the my AMD Turion 64 X2 running an x86_64 kernel. From bisection,
>> the problem is due to
>>
>> commit b19fa1fa91845234961c64dbd564671aa7c0fd27
>> Author: David S. Miller <davem@davemloft.net>
>> Date: Tue Jul 8 23:14:24 2008 -0700
>>
>> net: Delete NETDEVICES_MULTIQUEUE kconfig option.
>>
>> Multiple TX queue support is a core networking feature.
>>
>> Signed-off-by: David S. Miller <davem@davemloft.net>
>>
>> Obviously, something in the driver cannot handle multiqueues, but I
>> have not found anything, and I have not been able to get any logged events
>> that show what is going wrong.
>>
>
> Hmm that's a bit odd as my p54usb-adapter seems to work usual with
> 2.6.27-rc1?!... That said: it doesn't work nearly as stable as the
> minipci card that I have too. Is there anyone else who can confirm
> that this problem is specific to the p54 driver & 2.6.27-rc1?
The problem is triggered by the following section:
if (priv->fw_var >= 0x300) {
/* Firmware supports QoS, use it! */
priv->tx_stats[0].limit = 3;
priv->tx_stats[1].limit = 4;
priv->tx_stats[2].limit = 3;
priv->tx_stats[3].limit = 1;
dev->queues = 4;
}
If fw_var is less than 0x300, then the bug does not trigger. On my system, if I
change the number of queues to 1, then all is OK.
Larry
^ permalink raw reply [flat|nested] 4+ messages in thread
* [RFC/RFT] p54usb: Regression due to commit b19fa1f
2008-08-02 3:06 p54usb broken by commit b19fa1f Larry Finger
2008-08-02 12:57 ` Chr
@ 2008-08-03 20:13 ` Larry Finger
1 sibling, 0 replies; 4+ messages in thread
From: Larry Finger @ 2008-08-03 20:13 UTC (permalink / raw)
To: Michael Wu; +Cc: David S. Miller, wireless, LKML
[-- Attachment #1: Type: text/plain, Size: 962 bytes --]
In commit b19fa1fa91845234961c64dbd564671aa7c0fd27, the configuration
parameter NETDEVICES_MULTIQUEUE was eliminated making multiple TX queues
the normal behavior. For p54usb, enabling multiple queues broke the driver.
A temporary hack that forces only one queue is presented here. With it, the
driver works as before. Obviously, a proper fix is needed in the long run.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
---
Index: linux-2.6/drivers/net/wireless/p54/p54common.c
===================================================================
--- linux-2.6.orig/drivers/net/wireless/p54/p54common.c
+++ linux-2.6/drivers/net/wireless/p54/p54common.c
@@ -150,7 +150,7 @@ void p54_parse_firmware(struct ieee80211
priv->tx_stats[1].limit = 4;
priv->tx_stats[2].limit = 3;
priv->tx_stats[3].limit = 1;
- dev->queues = 4;
+ dev->queues = 1; /* temp. hack, set to 1 as 4 breaks p54usb */
}
}
EXPORT_SYMBOL_GPL(p54_parse_firmware);
[-- Attachment #2: p54usb_fix --]
[-- Type: text/plain, Size: 902 bytes --]
In commit b19fa1fa91845234961c64dbd564671aa7c0fd27, the configuration
parameter NETDEVICES_MULTIQUEUE was eliminated making multiple TX queues
the normal behavior. For p54usb, enabling multiple queues broke the driver.
The real failure is not known, but a temporary hack that forces only one
queue is presented here.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
---
Index: linux-2.6/drivers/net/wireless/p54/p54common.c
===================================================================
--- linux-2.6.orig/drivers/net/wireless/p54/p54common.c
+++ linux-2.6/drivers/net/wireless/p54/p54common.c
@@ -150,7 +150,7 @@ void p54_parse_firmware(struct ieee80211
priv->tx_stats[1].limit = 4;
priv->tx_stats[2].limit = 3;
priv->tx_stats[3].limit = 1;
- dev->queues = 4;
+ dev->queues = 1; /* temp. hack, set to 1 as 4 breaks p54usb */
}
}
EXPORT_SYMBOL_GPL(p54_parse_firmware);
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-08-03 20:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-02 3:06 p54usb broken by commit b19fa1f Larry Finger
2008-08-02 12:57 ` Chr
2008-08-03 20:07 ` Larry Finger
2008-08-03 20:13 ` [RFC/RFT] p54usb: Regression due to " Larry Finger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).