public inbox for linux-usb@vger.kernel.org
 help / color / mirror / Atom feed
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: David Jeffery <djeffery@redhat.com>
Cc: linux-usb@vger.kernel.org, Alan Stern <stern@rowland.harvard.edu>,
	Laurence Oberman <loberman@redhat.com>,
	Ewan Milne <emilne@redhat.com>,
	apanagio@redhat.com, torez@redhat.com
Subject: Re: [PATCH V2] usb: ehci: Prevent missed ehci interrupts with edge-triggered MSI
Date: Fri, 16 Jul 2021 16:36:18 +0300	[thread overview]
Message-ID: <YPGLUgTTIDm0Qh5Q@smile.fi.intel.com> (raw)
In-Reply-To: <20210715213744.GA44506@redhat>

On Thu, Jul 15, 2021 at 05:37:44PM -0400, David Jeffery wrote:
> When MSI is used by the ehci-hcd driver, it can cause lost interrupts which
> results in EHCI only continuing to work due to a polling fallback. But the
> reliance of polling drastically reduces performance of any I/O through EHCI.
> 
> Interrupts are lost as the EHCI interrupt handler does not safely handle
> edge-triggered interrupts. It fails to ensure all interrupt status bits are
> cleared, which works with level-triggered interrupts but not the
> edge-triggered interrupts typical from using MSI.
> 
> To fix this problem, check if the driver may have raced with the hardware
> setting additional interrupt status bits and clear status until it is in a
> stable state.
> 
> Signed-off-by: David Jeffery <djeffery@redhat.com>
> Tested-by: Laurence Oberman <loberman@redhat.com>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> Acked-by: Alan Stern <stern@rowland.harvard.edu>

> Fixes: 306c54d0edb6 usb: hcd: Try MSI interrupts on PCI devices

Improper format.

Add to your .gitconfig the following:

[alias]
	one = show -s --pretty='format:%h (\"%s\")'
	c = show -s --pretty='format:https://git.kernel.org/torvalds/c/%h'

-- 
With Best Regards,
Andy Shevchenko



  reply	other threads:[~2021-07-16 13:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-15 21:37 [PATCH V2] usb: ehci: Prevent missed ehci interrupts with edge-triggered MSI David Jeffery
2021-07-16 13:36 ` Andy Shevchenko [this message]
2021-07-16 13:37   ` Andy Shevchenko

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=YPGLUgTTIDm0Qh5Q@smile.fi.intel.com \
    --to=andriy.shevchenko@linux.intel.com \
    --cc=apanagio@redhat.com \
    --cc=djeffery@redhat.com \
    --cc=emilne@redhat.com \
    --cc=linux-usb@vger.kernel.org \
    --cc=loberman@redhat.com \
    --cc=stern@rowland.harvard.edu \
    --cc=torez@redhat.com \
    /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