linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Larry Finger <Larry.Finger@lwfinger.net>
To: v4mp <gaigo88@hotmail.it>
Cc: linux-wireless@vger.kernel.org
Subject: Re: Alfa AWUS036NHR with RTL8188RU chipset
Date: Wed, 19 Oct 2011 22:38:28 -0500	[thread overview]
Message-ID: <4E9F97B4.5010304@lwfinger.net> (raw)
In-Reply-To: <loom.20111019T162518-352@post.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 798 bytes --]

On 10/19/2011 09:37 AM, v4mp wrote:
>
>
> ok, i've done what you asked me with usbmon,
> but i'm not sure that is what you want
>
> i've redone dumping dmesg trying to grab the information you are lookin for
>
> i can't upload it on pastebin cause it's too large, i uploaded logs on megaupload
>
> http://www.megaupload.com/?d=3D0QS1MX

I got the data. Thanks. It will take a while to analyze the usbmon data, but 
there is something I would like you to try. It will involve getting the kernel 
source for some recent kernel, and applying the attached patch. With it, 
xhci-hcd will dump the stack whenever the "short transfer on control ep" or "no 
room on ep ring" errors occur. Send me those parts of the dmesg output, but 
again do the dump early before the buffer wrap around happens.

Larry


[-- Attachment #2: xhci_debug --]
[-- Type: text/plain, Size: 1337 bytes --]

Index: wireless-testing-new/drivers/usb/host/xhci-ring.c
===================================================================
--- wireless-testing-new.orig/drivers/usb/host/xhci-ring.c
+++ wireless-testing-new/drivers/usb/host/xhci-ring.c
@@ -1616,6 +1616,7 @@ static int process_ctrl_td(struct xhci_h
 	int ep_index;
 	struct xhci_ep_ctx *ep_ctx;
 	u32 trb_comp_code;
+	static int count;
 
 	slot_id = TRB_TO_SLOT_ID(le32_to_cpu(event->flags));
 	xdev = xhci->devs[slot_id];
@@ -1641,6 +1642,8 @@ static int process_ctrl_td(struct xhci_h
 		break;
 	case COMP_SHORT_TX:
 		xhci_warn(xhci, "WARN: short transfer on control ep\n");
+		if (count++ < 5)
+			dump_stack();
 		if (td->urb->transfer_flags & URB_SHORT_NOT_OK)
 			*status = -EREMOTEIO;
 		else
@@ -2429,6 +2432,7 @@ static void queue_trb(struct xhci_hcd *x
 static int prepare_ring(struct xhci_hcd *xhci, struct xhci_ring *ep_ring,
 		u32 ep_state, unsigned int num_trbs, gfp_t mem_flags)
 {
+	static int count;
 	/* Make sure the endpoint has been added to xHC schedule */
 	switch (ep_state) {
 	case EP_STATE_DISABLED:
@@ -2459,6 +2463,8 @@ static int prepare_ring(struct xhci_hcd
 	if (!room_on_ring(xhci, ep_ring, num_trbs)) {
 		/* FIXME allocate more room */
 		xhci_err(xhci, "ERROR no room on ep ring\n");
+		if (count++ < 5)
+			dump_stack();
 		return -ENOMEM;
 	}
 

  reply	other threads:[~2011-10-20  3:38 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-20  2:10 Alfa AWUS036NHR with RTL8188RU chipset Chiefdome
2011-09-20  2:27 ` Chiefdome
2011-09-20  3:05   ` Larry Finger
2011-09-20  9:32     ` Chiefdome
2011-09-20 21:38       ` Chiefdome
2011-09-20 22:32         ` Larry Finger
2011-09-21  0:02         ` Larry Finger
2011-09-21  9:43           ` Chiefdome
2011-09-21 14:45             ` Larry Finger
2011-09-21 19:19               ` Chiefdome
2011-09-21 20:03                 ` Larry Finger
2011-09-21 20:28                   ` Chiefdome
2011-09-21 20:37                     ` Larry Finger
2011-09-21 20:39                       ` Chiefdome
2011-09-21 20:41                         ` Chiefdome
2011-09-21 21:09                           ` Larry Finger
2011-09-30 14:20                             ` v4mp
2011-09-30 15:18                               ` Larry Finger
2011-09-30 18:14                                 ` v4mp
2011-10-06 16:25                                   ` Toddy
2011-10-06 22:06                                     ` Larry Finger
2011-10-08 16:24                                       ` Toddy
2011-10-08 16:52                                         ` Larry Finger
2011-10-08 23:29                                           ` Gábor Stefanik
2011-10-09 14:21                                             ` v4mp
2011-10-09 14:47                                               ` Larry Finger
2011-10-15 14:22                                                 ` v4mp
2011-10-16  2:49                                                   ` Larry Finger
2011-10-17 10:07                                                     ` v4mp
2011-10-17 14:59                                                       ` Larry Finger
2011-10-17 17:09                                                         ` v4mp
2011-10-17 18:38                                                           ` Larry Finger
2011-10-18  3:23                                                           ` Larry Finger
2011-10-18 12:44                                                             ` v4mp
2011-10-18 13:07                                                               ` v4mp
2011-10-18 15:20                                                                 ` Larry Finger
2011-10-18 21:50                                                                   ` v4mp
2011-10-18 23:01                                                                     ` Larry Finger
2011-10-19  8:17                                                                       ` v4mp
2011-10-19 12:08                                                                         ` Larry Finger
2011-10-19 14:37                                                                           ` v4mp
2011-10-20  3:38                                                                             ` Larry Finger [this message]
2011-10-20  9:47                                                                               ` v4mp
2011-10-20 13:35                                                                                 ` Larry Finger
2011-10-26 15:49                                                                                   ` Chiefdome
2011-10-26 16:12                                                                                     ` Larry Finger
2011-10-26 19:39                                                                                       ` Chiefdome
2011-10-26 21:20                                                                                         ` Larry Finger
2011-10-26 21:31                                                                                         ` Larry Finger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E9F97B4.5010304@lwfinger.net \
    --to=larry.finger@lwfinger.net \
    --cc=gaigo88@hotmail.it \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).