All of lore.kernel.org
 help / color / mirror / Atom feed
From: Neil Turton <nturton@solarflare.com>
To: "Shan, Haitao" <haitao.shan@intel.com>
Cc: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>,
	xen-devel <xen-devel@lists.xensource.com>,
	"Li, Xin B" <xin.b.li@intel.com>,
	"Tian, Kevin" <kevin.tian@intel.com>,
	"Jiang, Yunhong" <yunhong.jiang@intel.com>
Subject: Re: [PATCH 0/5] Add MSI support to XEN
Date: Wed, 02 Apr 2008 15:55:50 +0100	[thread overview]
Message-ID: <47F39E76.8020805@solarflare.com> (raw)
In-Reply-To: <823A93EED437D048963A3697DB0E35DE0139CE15@pdsmsx414.ccr.corp.intel.com>

I tried this patch and MSI seems to work fine with a driver in DOM0.  It
didn't work with MSI-X though because pci_vector_resources returned 8
and I have 10 MSI capable devices in the machine.  I've only got 6
Phys-irq interrupts listed in /proc/interrupts so I'd expect there to be
more vectors free.  I applied the debugging patch below and got the
following output.

diff -r 9bb373519b68 arch/i386/pci/irq-xen.c
--- a/arch/i386/pci/irq-xen.c	Tue Apr 01 14:15:23 2008 +0100
+++ b/arch/i386/pci/irq-xen.c	Wed Apr 02 13:19:05 2008 +0100
@@ -1192,6 +1192,7 @@ int pci_vector_resources(int last, int n
 	int offset = (last % 8);

 	while (next < FIRST_SYSTEM_VECTOR) {
+		printk("next=%d count=%d\n", next, count);
 		next += 8;
 #ifdef CONFIG_X86_64
 		if (next == IA32_SYSCALL_VECTOR)

[pci_vector_resources(176, 1) called]
next=176 count=1
next=184 count=2
next=192 count=3
next=200 count=4
next=208 count=5
next=216 count=6
next=224 count=7
next=232 count=8
[pci_vector_resources returned 8]

  parent reply	other threads:[~2008-04-02 14:55 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-27  6:55 [PATCH 0/5] Add MSI support to XEN Shan, Haitao
2008-03-27  7:56 ` Keir Fraser
2008-03-27 17:32 ` Espen Skoglund
2008-03-27 22:09   ` Caitlin Bestler
2008-03-28  1:48   ` Jiang, Yunhong
2008-03-28  7:24     ` Keir Fraser
2008-03-28  8:40       ` Jiang, Yunhong
2008-03-28  9:16         ` Keir Fraser
2008-03-28  9:35           ` Jiang, Yunhong
2008-03-31 13:57           ` Jiang, Yunhong
2008-03-31 14:14             ` Keir Fraser
2008-03-31 14:15               ` Keir Fraser
2008-03-31 14:25               ` Jiang, Yunhong
2008-03-31 14:33                 ` Keir Fraser
2008-04-01  2:39                   ` Shan, Haitao
2008-03-28 11:37       ` Espen Skoglund
2008-03-28 11:53         ` Keir Fraser
2008-03-28 12:15           ` Espen Skoglund
2008-03-28 13:00             ` Keir Fraser
2008-04-02 14:55 ` Neil Turton [this message]
2008-04-03 12:11   ` Shan, Haitao
2008-04-03 12:31     ` Keir Fraser

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=47F39E76.8020805@solarflare.com \
    --to=nturton@solarflare.com \
    --cc=Keir.Fraser@cl.cam.ac.uk \
    --cc=haitao.shan@intel.com \
    --cc=kevin.tian@intel.com \
    --cc=xen-devel@lists.xensource.com \
    --cc=xin.b.li@intel.com \
    --cc=yunhong.jiang@intel.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 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.