All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: xen-devel@lists.xen.org
Subject: Re: nr_irqs_gsi
Date: Wed, 11 Jul 2012 10:00:57 -0400	[thread overview]
Message-ID: <20120711140057.GA16523@phenom.dumpdata.com> (raw)
In-Reply-To: <4FFD4A72.9090500@citrix.com>

On Wed, Jul 11, 2012 at 10:42:10AM +0100, Andrew Cooper wrote:
> 
> On 11/07/12 04:31, Joe Jin wrote:
> > Hi,
> >
> > IHAC whose server have 12 NICs, but when bring up found the 12 NIC not be
> > enabled, I found below from xm-dmesg
> > (XEN) physdev.c:122: dom0: map invalid irq 55
> >
> > The corresponding codes:
> >
> > 115     /* Verify or get irq. */
> > 116     switch ( map->type )
> > 117     {
> > 118     case MAP_PIRQ_TYPE_GSI:
> > 119         if ( map->index < 0 || map->index >= nr_irqs_gsi )
> > 120         {
> > 121             dprintk(XENLOG_G_ERR, "dom%d: map invalid irq %d\n",
> > 122                     d->domain_id, map->index);
> > 123             ret = -EINVAL;
> > 124             goto free_domain;
> > 125         }
> > 126 
> >
> > Log all info to xm-dmesg I got:
> > (XEN) ACPI: IOAPIC (id[0x00] address[0xfec00000] gsi_base[0])
> > (XEN) IOAPIC[0]: apic_id 0, version 32, address 0xfec00000, GSI 0-23
> > (XEN) ACPI: IOAPIC (id[0x01] address[0xfec80000] gsi_base[32])
> > (XEN) IOAPIC[1]: apic_id 1, version 32, address 0xfec80000, GSI 32-55
> > (XEN) ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
> > (XEN) ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
> > (XEN) ACPI: IRQ0 used by override.
> > (XEN) ACPI: IRQ2 used by override.
> > (XEN) ACPI: IRQ9 used by override.
> > (XEN) Enabling APIC mode:  Phys.  Using 2 I/O APICs
> > (XEN) ACPI: HPET id: 0x8086a301 base: 0xfed00000
> > (XEN) PCI: MCFG configuration 0: base e0000000 segment 0 buses 0 - 255
> > (XEN) PCI: MCFG area at e0000000 reserved in E820
> > (XEN) ERST table is invalid
> > (XEN) Using ACPI (MADT) for SMP configuration information
> > (XEN) IRQ limits: 55 GSI, 3033 MSI/MSI-X
> > (XEN) Using scheduler: SMP Credit Scheduler (credit)
> >
> > nr_irqs_gsi = 55, 
> > So the condition of #119 should be (map->index > nr_irqs_gsi)?
> > for GSI irq 55 should be available as well?
> >
> > Thanks,
> > Joe
> 
> No.  There are 55 GSIs, indexed 0 thru 54.  You would be introducing an
> off-by-one error by changing the condition.
> 
> The more interesting question is why you are attempting to map more GSIs
> than you actually have.

Could it be the ACPI DSDT _PRT being confused. Joe, what does dom0
print out for:

xen: registering gsi ...

for the devices? (maybe all to see if there is a trend?)
arch/x86/pci/xen.c to print out the 
> 
> ~Andrew
> 
> >
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@lists.xen.org
> > http://lists.xen.org/xen-devel
> 
> -- 
> Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer
> T: +44 (0)1223 225 900, http://www.citrix.com
> 
> 
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel

  reply	other threads:[~2012-07-11 14:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-11  3:31 nr_irqs_gsi Joe Jin
2012-07-11  9:42 ` nr_irqs_gsi Andrew Cooper
2012-07-11 14:00   ` Konrad Rzeszutek Wilk [this message]
2012-07-12  2:17     ` nr_irqs_gsi Joe Jin
2012-07-12 13:36       ` nr_irqs_gsi Konrad Rzeszutek Wilk
2012-07-23 13:30       ` nr_irqs_gsi Jan Beulich
2012-07-23 15:34         ` nr_irqs_gsi Konrad Rzeszutek Wilk
2012-07-24  2:03           ` nr_irqs_gsi Joe Jin
2012-07-24  2:02             ` nr_irqs_gsi Konrad Rzeszutek Wilk
2012-07-24  2:25               ` nr_irqs_gsi Joe Jin
2012-07-11 23:56   ` nr_irqs_gsi Joe Jin
2012-07-23 13:42     ` nr_irqs_gsi Jan Beulich
2012-07-24  0:21       ` nr_irqs_gsi Joe Jin

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=20120711140057.GA16523@phenom.dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=xen-devel@lists.xen.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.