* [Bug #12260] Regression due to commit 2b80848e3818fb1c (p54usb: support LM87 firmwares) [not found] <KTnguC9mFUC.A.VNB.TJRdJB@chimera> @ 2009-01-19 21:45 ` Rafael J. Wysocki 2009-01-20 22:11 ` [PATCH -stable] p54usb: fix traffic stalls / packet drop Christian Lamparter 0 siblings, 1 reply; 7+ messages in thread From: Rafael J. Wysocki @ 2009-01-19 21:45 UTC (permalink / raw) To: Linux Kernel Mailing List Cc: Kernel Testers List, Christian Lamparter, Larry Finger, Linux wireless This message has been generated automatically as a part of a report of regressions introduced between 2.6.27 and 2.6.28. The following bug entry is on the current list of known regressions introduced between 2.6.27 and 2.6.28. Please verify if it still should be listed and let me know (either way). Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=12260 Subject : Regression due to commit 2b80848e3818fb1c (p54usb: support LM87 firmwares) Submitter : Larry Finger <Larry.Finger@lwfinger.net> Date : 2008-12-20 10:45 (31 days old) First-Bad-Commit: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=2b80848e3818fb1c8ccddc105b065a86c68afa9d Patch : http://bugzilla.kernel.org/show_bug.cgi?id=12260 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH -stable] p54usb: fix traffic stalls / packet drop 2009-01-19 21:45 ` [Bug #12260] Regression due to commit 2b80848e3818fb1c (p54usb: support LM87 firmwares) Rafael J. Wysocki @ 2009-01-20 22:11 ` Christian Lamparter 2009-01-20 22:36 ` Rafael J. Wysocki ` (2 more replies) 0 siblings, 3 replies; 7+ messages in thread From: Christian Lamparter @ 2009-01-20 22:11 UTC (permalink / raw) To: Rafael J. Wysocki, Greg KH gr, Artur Skawina Cc: Linux Kernel Mailing List, Kernel Testers List, Larry Finger, Linux wireless All p54usb devices need a explicit termination packet, in oder to finish the pending transfer properly. Else, the firmware could freeze, or simply drop the frame. Signed-off-by: Christian Lamparter <chunkeey@web.de> Cc: stable <stable@kernel.org> --- Attached is the patch is for the stable series only. Bugzilla reference: http://bugzilla.kernel.org/show_bug.cgi?id=12260 (wireless-testing needs a different one) Rafael, I hope we can close this bug. Greg? --- diff --git a/drivers/net/wireless/p54/p54usb.c b/drivers/net/wireless/p54/p54usb.c index 75d749b..be40369 100644 --- a/drivers/net/wireless/p54/p54usb.c +++ b/drivers/net/wireless/p54/p54usb.c @@ -214,6 +214,8 @@ static void p54u_tx_3887(struct ieee80211_hw *dev, struct p54_control_hdr *data, usb_fill_bulk_urb(data_urb, priv->udev, usb_sndbulkpipe(priv->udev, P54U_PIPE_DATA), data, len, free_on_tx ? p54u_tx_free_cb : p54u_tx_cb, dev); + addr_urb->transfer_flags |= URB_ZERO_PACKET; + data_urb->transfer_flags |= URB_ZERO_PACKET; usb_submit_urb(addr_urb, GFP_ATOMIC); usb_submit_urb(data_urb, GFP_ATOMIC); @@ -251,6 +253,7 @@ static void p54u_tx_lm87(struct ieee80211_hw *dev, usb_sndbulkpipe(priv->udev, P54U_PIPE_DATA), hdr, len + sizeof(*hdr), free_on_tx ? p54u_tx_free_cb : p54u_tx_cb, dev); + data_urb->transfer_flags |= URB_ZERO_PACKET; usb_submit_urb(data_urb, GFP_ATOMIC); } @@ -293,11 +296,13 @@ static void p54u_tx_net2280(struct ieee80211_hw *dev, struct p54_control_hdr *da usb_fill_bulk_urb(int_urb, priv->udev, usb_sndbulkpipe(priv->udev, P54U_PIPE_DEV), reg, sizeof(*reg), p54u_tx_free_cb, dev); + int_urb->transfer_flags |= URB_ZERO_PACKET; usb_submit_urb(int_urb, GFP_ATOMIC); usb_fill_bulk_urb(data_urb, priv->udev, usb_sndbulkpipe(priv->udev, P54U_PIPE_DATA), hdr, len + sizeof(*hdr), free_on_tx ? p54u_tx_free_cb : p54u_tx_cb, dev); + data_urb->transfer_flags |= URB_ZERO_PACKET; usb_submit_urb(data_urb, GFP_ATOMIC); } ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH -stable] p54usb: fix traffic stalls / packet drop 2009-01-20 22:11 ` [PATCH -stable] p54usb: fix traffic stalls / packet drop Christian Lamparter @ 2009-01-20 22:36 ` Rafael J. Wysocki 2009-01-20 22:39 ` Greg KH 2009-01-22 22:47 ` patch p54usb-fix-traffic-stalls-packet-drop.patch added to 2.6.28-stable tree gregkh 2 siblings, 0 replies; 7+ messages in thread From: Rafael J. Wysocki @ 2009-01-20 22:36 UTC (permalink / raw) To: Christian Lamparter Cc: Greg KH gr, Artur Skawina, Linux Kernel Mailing List, Kernel Testers List, Larry Finger, Linux wireless On Tuesday 20 January 2009, Christian Lamparter wrote: > All p54usb devices need a explicit termination packet, in oder to finish the pending transfer properly. > Else, the firmware could freeze, or simply drop the frame. > > Signed-off-by: Christian Lamparter <chunkeey@web.de> > Cc: stable <stable@kernel.org> > --- > Attached is the patch is for the stable series only. > Bugzilla reference: http://bugzilla.kernel.org/show_bug.cgi?id=12260 > (wireless-testing needs a different one) > > Rafael, I hope we can close this bug. Greg? Sure, we can. Thanks, Rafael ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH -stable] p54usb: fix traffic stalls / packet drop 2009-01-20 22:11 ` [PATCH -stable] p54usb: fix traffic stalls / packet drop Christian Lamparter 2009-01-20 22:36 ` Rafael J. Wysocki @ 2009-01-20 22:39 ` Greg KH 2009-01-20 23:56 ` John W. Linville 2009-01-22 22:47 ` patch p54usb-fix-traffic-stalls-packet-drop.patch added to 2.6.28-stable tree gregkh 2 siblings, 1 reply; 7+ messages in thread From: Greg KH @ 2009-01-20 22:39 UTC (permalink / raw) To: Christian Lamparter Cc: Rafael J. Wysocki, Artur Skawina, Linux Kernel Mailing List, Kernel Testers List, Larry Finger, Linux wireless On Tue, Jan 20, 2009 at 11:11:11PM +0100, Christian Lamparter wrote: > All p54usb devices need a explicit termination packet, in oder to finish the pending transfer properly. > Else, the firmware could freeze, or simply drop the frame. > > Signed-off-by: Christian Lamparter <chunkeey@web.de> > Cc: stable <stable@kernel.org> > --- > Attached is the patch is for the stable series only. > Bugzilla reference: http://bugzilla.kernel.org/show_bug.cgi?id=12260 > (wireless-testing needs a different one) What do you mean, this is for 2.6.28-stable or 2.6.27-stable only, and not 2.6.29? Why? thanks, greg k-h ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH -stable] p54usb: fix traffic stalls / packet drop 2009-01-20 22:39 ` Greg KH @ 2009-01-20 23:56 ` John W. Linville 2009-01-21 14:03 ` Christian Lamparter 0 siblings, 1 reply; 7+ messages in thread From: John W. Linville @ 2009-01-20 23:56 UTC (permalink / raw) To: Greg KH Cc: Christian Lamparter, Rafael J. Wysocki, Artur Skawina, Linux Kernel Mailing List, Kernel Testers List, Larry Finger, Linux wireless On Tue, Jan 20, 2009 at 02:39:57PM -0800, Greg KH wrote: > On Tue, Jan 20, 2009 at 11:11:11PM +0100, Christian Lamparter wrote: > > All p54usb devices need a explicit termination packet, in oder to finish the pending transfer properly. > > Else, the firmware could freeze, or simply drop the frame. > > > > Signed-off-by: Christian Lamparter <chunkeey@web.de> > > Cc: stable <stable@kernel.org> > > --- > > Attached is the patch is for the stable series only. > > Bugzilla reference: http://bugzilla.kernel.org/show_bug.cgi?id=12260 > > (wireless-testing needs a different one) > > What do you mean, this is for 2.6.28-stable or 2.6.27-stable only, and > not 2.6.29? Why? At least part of that patch is already in 2.6.29. I think Christian may have combined another patch into the -stable version, one that he posted today for -rc inclusion. John -- John W. Linville Linux should be at the core linville@tuxdriver.com of your literate lifestyle. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH -stable] p54usb: fix traffic stalls / packet drop 2009-01-20 23:56 ` John W. Linville @ 2009-01-21 14:03 ` Christian Lamparter 0 siblings, 0 replies; 7+ messages in thread From: Christian Lamparter @ 2009-01-21 14:03 UTC (permalink / raw) To: John W. Linville Cc: Greg KH, Rafael J. Wysocki, Artur Skawina, Linux Kernel Mailing List, Kernel Testers List, Larry Finger, Linux wireless On Wednesday 21 January 2009 00:56:26 John W. Linville wrote: > On Tue, Jan 20, 2009 at 02:39:57PM -0800, Greg KH wrote: > > On Tue, Jan 20, 2009 at 11:11:11PM +0100, Christian Lamparter wrote: > > > All p54usb devices need a explicit termination packet, in oder to finish the pending transfer properly. > > > Else, the firmware could freeze, or simply drop the frame. > > > > > > Signed-off-by: Christian Lamparter <chunkeey@web.de> > > > Cc: stable <stable@kernel.org> > > > --- > > > Attached is the patch is for the stable series only. > > > Bugzilla reference: http://bugzilla.kernel.org/show_bug.cgi?id=12260 > > > (wireless-testing needs a different one) > > > > What do you mean, this is for 2.6.28-stable or 2.6.27-stable only, and > > not 2.6.29? Why? > > At least part of that patch is already in 2.6.29. I think Christian > may have combined another patch into the -stable version, one that > he posted today for -rc inclusion. Yup, the -stable patch includes the diff "hunks" for all devices. linux-wireless is a different affair, because the fix for LM87 (aka "p54usb: fix random traffic stalls (LM87)" ) is already merged. So the patch I posted on linux-wirelss (-rc inclusion) only has the diffs for the 1st generation and 2nd generation with old firmwares. Regards, Chr ^ permalink raw reply [flat|nested] 7+ messages in thread
* patch p54usb-fix-traffic-stalls-packet-drop.patch added to 2.6.28-stable tree 2009-01-20 22:11 ` [PATCH -stable] p54usb: fix traffic stalls / packet drop Christian Lamparter 2009-01-20 22:36 ` Rafael J. Wysocki 2009-01-20 22:39 ` Greg KH @ 2009-01-22 22:47 ` gregkh 2 siblings, 0 replies; 7+ messages in thread From: gregkh @ 2009-01-22 22:47 UTC (permalink / raw) To: chunkeey, art.08.09, gregkh, Larry.Finger, linux-wireless, rjw Cc: stable, stable-commits This is a note to let you know that we have just queued up the patch titled Subject: p54usb: fix traffic stalls / packet drop to the 2.6.28-stable tree. Its filename is p54usb-fix-traffic-stalls-packet-drop.patch A git repo of this tree can be found at http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary >From chunkeey@web.de Thu Jan 22 14:30:12 2009 From: Christian Lamparter <chunkeey@web.de> Date: Tue, 20 Jan 2009 23:11:11 +0100 Subject: p54usb: fix traffic stalls / packet drop To: "Rafael J. Wysocki" <rjw@sisk.pl>, Greg KH gr <gregkh@suse.de>, Artur Skawina <art.08.09@gmail.com> Cc: "Larry Finger" <Larry.Finger@lwfinger.net>, "Linux wireless" <linux-wireless@vger.kernel.org> Message-ID: <200901202311.11854.chunkeey@web.de> Content-Disposition: inline From: Christian Lamparter <chunkeey@web.de> commit 00627f229c9807e4cb825a7ce36b886e2adf2229 upstream. All p54usb devices need a explicit termination packet, in oder to finish the pending transfer properly. Else, the firmware could freeze, or simply drop the frame. Signed-off-by: Christian Lamparter <chunkeey@web.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> --- drivers/net/wireless/p54/p54usb.c | 5 +++++ 1 file changed, 5 insertions(+) --- a/drivers/net/wireless/p54/p54usb.c +++ b/drivers/net/wireless/p54/p54usb.c @@ -215,6 +215,8 @@ static void p54u_tx_3887(struct ieee8021 usb_fill_bulk_urb(data_urb, priv->udev, usb_sndbulkpipe(priv->udev, P54U_PIPE_DATA), data, len, free_on_tx ? p54u_tx_free_cb : p54u_tx_cb, dev); + addr_urb->transfer_flags |= URB_ZERO_PACKET; + data_urb->transfer_flags |= URB_ZERO_PACKET; usb_submit_urb(addr_urb, GFP_ATOMIC); usb_submit_urb(data_urb, GFP_ATOMIC); @@ -252,6 +254,7 @@ static void p54u_tx_lm87(struct ieee8021 usb_sndbulkpipe(priv->udev, P54U_PIPE_DATA), hdr, len + sizeof(*hdr), free_on_tx ? p54u_tx_free_cb : p54u_tx_cb, dev); + data_urb->transfer_flags |= URB_ZERO_PACKET; usb_submit_urb(data_urb, GFP_ATOMIC); } @@ -294,11 +297,13 @@ static void p54u_tx_net2280(struct ieee8 usb_fill_bulk_urb(int_urb, priv->udev, usb_sndbulkpipe(priv->udev, P54U_PIPE_DEV), reg, sizeof(*reg), p54u_tx_free_cb, dev); + int_urb->transfer_flags |= URB_ZERO_PACKET; usb_submit_urb(int_urb, GFP_ATOMIC); usb_fill_bulk_urb(data_urb, priv->udev, usb_sndbulkpipe(priv->udev, P54U_PIPE_DATA), hdr, len + sizeof(*hdr), free_on_tx ? p54u_tx_free_cb : p54u_tx_cb, dev); + data_urb->transfer_flags |= URB_ZERO_PACKET; usb_submit_urb(data_urb, GFP_ATOMIC); } Patches currently in stable-queue which might be from chunkeey@web.de are queue-2.6.28/p54usb-fix-traffic-stalls-packet-drop.patch ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-01-22 22:49 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <KTnguC9mFUC.A.VNB.TJRdJB@chimera>
2009-01-19 21:45 ` [Bug #12260] Regression due to commit 2b80848e3818fb1c (p54usb: support LM87 firmwares) Rafael J. Wysocki
2009-01-20 22:11 ` [PATCH -stable] p54usb: fix traffic stalls / packet drop Christian Lamparter
2009-01-20 22:36 ` Rafael J. Wysocki
2009-01-20 22:39 ` Greg KH
2009-01-20 23:56 ` John W. Linville
2009-01-21 14:03 ` Christian Lamparter
2009-01-22 22:47 ` patch p54usb-fix-traffic-stalls-packet-drop.patch added to 2.6.28-stable tree gregkh
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).