Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1546790
| From | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 4/4] usb: xhci: warn on command timeout in stopped command ring |
| Date | 2016-12-23 10:50 +0100 |
| Message-ID | <sRuE9-5au-3@gated-at.bofh.it> (permalink) |
| References | <sRrZD-3r6-3@gated-at.bofh.it> <sRrZD-3r6-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hello!
On 12/23/2016 9:52 AM, Lu Baolu wrote:
> If xhci host fails to response to a command, the command
s/response/respond/.
> watchdog timer will be fired. The callback function will
> abort and clear current command and restart the command
> execution. If driver fails to restart command execution,
> it will assume there is a larger problem in host and
> report the situation to the upper layer. In rare cases,
> if the driver sees a command timeout in a stopped command
> ring, driver should let the user know it.
>
> Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
> ---
> drivers/usb/host/xhci-ring.c | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c
> index 6a23c37..16baefc 100644
> --- a/drivers/usb/host/xhci-ring.c
> +++ b/drivers/usb/host/xhci-ring.c
> @@ -1308,8 +1308,12 @@ void xhci_handle_command_timeout(struct work_struct *work)
> goto time_out_completed;
> }
>
> - /* command timeout on stopped ring, ring can't be aborted */
> - xhci_dbg(xhci, "Command timeout on stopped ring\n");
> + /*
> + * We should never reach here until a command times out on a stopped
> + * ring and xhci driver has no idea about the reason why the command
> + * ring was stopped.
> + */
> + xhci_warn(xhci, "WARN command timeout on stopped ring\n");
WARNING, maybe?
[...]
MBR, Sergei
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/4] refactor command timeout handling Lu Baolu <baolu.lu@linux.intel.com> - 2016-12-23 08:00 +0100
[PATCH 3/4] usb: xhci: add XHCI_MISS_CA_EVENT quirk bit Lu Baolu <baolu.lu@linux.intel.com> - 2016-12-23 08:00 +0100
[PATCH 4/4] usb: xhci: warn on command timeout in stopped command ring Lu Baolu <baolu.lu@linux.intel.com> - 2016-12-23 08:00 +0100
Re: [PATCH 4/4] usb: xhci: warn on command timeout in stopped command ring Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> - 2016-12-23 10:50 +0100
[PATCH 1/4] usb: xhci: remove unnecessary second abort try Lu Baolu <baolu.lu@linux.intel.com> - 2016-12-23 08:00 +0100
csiph-web