xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Justin Acker <ackerj67@yahoo.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: xhci_hcd intterrupt affinity in Dom0/DomU limited to single interrupt
Date: Thu, 03 Sep 2015 12:52:05 -0400	[thread overview]
Message-ID: <1441299125.30502.12.camel@localhost> (raw)
In-Reply-To: <55E87DA6020000780009F59D@prv-mh.provo.novell.com>

On Thu, 2015-09-03 at 09:04 -0600, Jan Beulich wrote:
> >>> On 03.09.15 at 14:04, <ackerj67@yahoo.com> wrote:
> >>>> On 02.09.15 at 19:17, <ackerj67@yahoo.com> wrote:
> >>      From: Jan Beulich <jbeulich@suse.com>
> >>  Sent: Wednesday, September 2, 2015 4:58 AM
> >>>>> Justin Acker <ackerj67@yahoo.com> 09/02/15 1:14 AM >>>
> >>> 00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset 
> > Family USB xHCI Host Controller (rev 04) (prog-if 30 [XHCI])
> >>>    Subsystem: Dell Device 053e
> >>>    Flags: bus master, medium devsel, latency 0, IRQ 78
> >>>    Memory at f7f20000 (64-bit, non-prefetchable) [size=64K]
> >>>    Capabilities: [70] Power Management version 2
> >>>    Capabilities: [80] MSI: Enable+ Count=1/8 Maskable- 64bit+
> >> 
> >> This shows that the driver could use up to 8 MSI IRQs, but chose to use just 
> > 
> >> one. If
> >> this is the same under Xen and the native kernel, the driver likely doesn't 
> >> know any
> >> better. If under native more interrupts are being used, there might be an 
> >> issue with
> >> Xen specific code in the kernel or hypervisor code. We'd need to see details 
> > 
> >> to be
> >> able to tell.
> >> 
> >> Please let me know what details I should provide. 
> 
> I'd like to emphasize what I said in my previous reply:

Apologies. The Webmail client doesn't support in-line replies or I
couldn't figure out how to turn these on. Hopefully this is better. 

> 
> > Please, first of all, get your reply style fixed. Just look at the above
> > and tell me how a reader should figure which parts of the text were
> > written by whom.
> >
> >[...]
> >
> >      I am still confused as to whether any device, or in this case xhci_hcd, 
> > can use more than one cpu at any given time. My     understanding based on 
> > David's response is that it cannot due to the event channel mapping. The 
> > device interrupt can be pinned     to a specific cpu by specifying the 
> > affinity. I was hoping there was a way to allow the driver's interrupt to be 
> > scheduled to     use more than 1 CPU at any given time. 
> 
> The problem is that you're mixing up two things: devices and
> interrupts. Any individual interrupt can only be serviced by a single
> CPU at a time, due to the way event channels get bound. Any
> individual device can have more than one interrupt (MSI or MSI-X),
> and then each of these interrupts can be serviced on different
> CPUs.
> 
> Jan
> 

Thanks for clarifying. To the original question, with respect to my
limited understanding of the event channels and interrupts, each
interrupt can be serviced on a different CPU using irqbalance or setting
the affinity manually, but the same interrupt cannot be serviced by more
than 1 CPU at a time? If so, is there a way around the 1:1 binding when
loading the Dom0 kernel - a flag or option to use the native interrupt
scheduling for some set of or all 8 CPUs that the device can schedule
interrupts on when not loading the Dom0? The xhci_hcd, as one example,
seems to perform better when it is able to have interrupts serviced by
multiple CPUs. 

  reply	other threads:[~2015-09-03 16:52 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <55E6C83402000078000D7CF5@prv-mh.provo.novell.com>
     [not found] ` <1981596850.505327.1441214239184.JavaMail.yahoo@mail.yahoo.com>
2015-09-03 10:15   ` xhci_hcd intterrupt affinity in Dom0/DomU limited to single interrupt Jan Beulich
2015-09-03 12:04     ` Justin Acker
2015-09-03 15:04       ` Jan Beulich
2015-09-03 16:52         ` Justin Acker [this message]
2015-09-04  7:41           ` Jan Beulich
2015-09-08 16:02             ` Justin Acker
2015-09-09  6:48               ` Jan Beulich
2015-09-10 16:20                 ` Justin Acker
2015-09-11 10:03                   ` Jan Beulich
2015-09-16 20:31                     ` Justin Acker
2015-09-21 12:53                       ` Jan Beulich
     [not found] <1441121643.26292.63.camel@citrix.com>
     [not found] ` <800613365.4285959.1441128848192.JavaMail.yahoo@mail.yahoo.com>
2015-09-01 17:39   ` Justin Acker
2015-09-01 20:56     ` Konrad Rzeszutek Wilk
2015-09-01 21:38       ` Boris Ostrovsky
2015-09-01 23:09       ` Justin Acker
2015-09-02 12:53         ` Konrad Rzeszutek Wilk
2015-09-02 13:49           ` Ian Campbell
2015-09-02 17:12             ` Justin Acker
2015-09-02 17:02           ` Justin Acker
2015-09-02 13:47     ` David Vrabel
2015-09-02 17:25       ` Justin Acker
2015-09-02 17:35         ` David Vrabel

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=1441299125.30502.12.camel@localhost \
    --to=ackerj67@yahoo.com \
    --cc=JBeulich@suse.com \
    --cc=xen-devel@lists.xenproject.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).