From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Bastian Blank <waldi@debian.org>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>,
"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
Fraser <keir.fraser@eu.citrix.com>,
"Zhang, Xiantao" <xiantao.zhang@intel.com>,
"Keir@wavehammer.waldi.eu.org" <Keir@wavehammer.waldi.eu.org>
Subject: Re: pvops-2.6.32 - Interrupt routing problem
Date: Mon, 15 Mar 2010 21:31:14 -0400 [thread overview]
Message-ID: <20100316013114.GD7622@phenom.dumpdata.com> (raw)
In-Reply-To: <20100315211459.GA9314@wavehammer.waldi.eu.org>
On Mon, Mar 15, 2010 at 10:15:00PM +0100, Bastian Blank wrote:
> On Mon, Mar 15, 2010 at 09:48:15PM +0800, Zhang, Xiantao wrote:
> > With my previous patch, seems you still need to apply the following patch to xen.git. In this way, the GSI 0-15 are still setup by hypervisor, but it also give one chance for dom0 to re-programme its polarity and trigger mode.
Yeah, that won't do. This way there are no irq_desc set for the rest of
the devices.
>
> No, this seems to break further things. I lost access to the storage.
The mechanism this makes this work is a bit .. unwieldy.
It really looks that we initially set the IOAPIC with the wrong trigger
earlier on (and Zhangs patch tries to remove that so it is on demand,
but it removes the rest of your GSI entries, so that is not good).
1) Can you boot your baremetal with these options:
acpi.debug_level=0xffffffff acpi.debug_layer=0x2 apic=debug
2) And then later on your Xen with these (make SURE to _not_ have apic=debug on
the Linux kernel command line with Xen, it will blow):
xen.gz apic=debug apic_verbosity=debug console_to_ring sync_console loglvl=all guest_loglvl=all
Also you could try this patch to confirm the theory that we incorrectly
get the trigger/level from the MP table early on boot (not compile
tested at all):
diff --git a/arch/x86/xen/pci.c b/arch/x86/xen/pci.c
index f5ce35f..b775452 100644
--- a/arch/x86/xen/pci.c
+++ b/arch/x86/xen/pci.c
@@ -88,6 +88,9 @@ void __init xen_setup_pirqs(void)
if (acpi_get_override_irq(irq, &trigger, &polarity) == -1)
continue;
+ if (irq == 14 || irq == 5)
+ trigger = 0;
+
xen_register_gsi(irq,
trigger ? ACPI_LEVEL_SENSITIVE : ACPI_EDGE_SENSITIVE,
polarity ? ACPI_ACTIVE_LOW : ACPI_ACTIVE_HIGH);
next prev parent reply other threads:[~2010-03-16 1:31 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-10 11:19 pvops-2.6.32 - Interrupt routing problem Bastian Blank
2010-03-10 16:08 ` Ian Campbell
2010-03-10 16:19 ` Bastian Blank
2010-03-10 18:17 ` Jeremy Fitzhardinge
2010-03-10 20:32 ` Bastian Blank
2010-03-10 19:40 ` Ian Campbell
2010-03-10 20:00 ` Konrad Rzeszutek Wilk
2010-03-14 14:08 ` Bastian Blank
2010-03-14 15:23 ` Bastian Blank
2010-03-14 15:56 ` Jeremy Fitzhardinge
2010-03-14 16:17 ` Bastian Blank
2010-03-15 4:30 ` Zhang, Xiantao
2010-03-15 10:11 ` Bastian Blank
2010-03-15 10:36 ` Bastian Blank
2010-03-15 13:48 ` Zhang, Xiantao
2010-03-15 14:18 ` Bastian Blank
2010-03-15 14:38 ` Zhang, Xiantao
2010-03-15 21:15 ` Bastian Blank
2010-03-16 1:31 ` Konrad Rzeszutek Wilk [this message]
2010-03-16 8:18 ` Bastian Blank
2010-03-16 15:32 ` Konrad Rzeszutek Wilk
2010-03-16 18:20 ` Bastian Blank
2010-03-17 2:05 ` Konrad Rzeszutek Wilk
2010-03-19 11:39 ` Bastian Blank
2010-03-19 12:13 ` Bastian Blank
2010-03-21 21:47 ` Bastian Blank
2010-03-22 6:24 ` Jeremy Fitzhardinge
2010-03-23 11:37 ` Jan Beulich
2010-03-23 12:37 ` Bastian Blank
2010-03-23 14:04 ` Jan Beulich
2010-03-23 15:49 ` Bastian Blank
2010-03-19 14:15 ` Zhang, Xiantao
2010-03-19 14:36 ` Bastian Blank
2010-03-19 2:55 ` Zhang, Xiantao
2010-03-19 11:06 ` Bastian Blank
2010-03-14 16:41 ` Bastian Blank
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=20100316013114.GD7622@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=Keir@wavehammer.waldi.eu.org \
--cc=jeremy@goop.org \
--cc=keir.fraser@eu.citrix.com \
--cc=waldi@debian.org \
--cc=xen-devel@lists.xensource.com \
--cc=xiantao.zhang@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 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).