WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH 0/5] Add MSI support to XEN

To: "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx>, Espen Skoglund <espen.skoglund@xxxxxxxxxxxxx>, "Shan, Haitao" <haitao.shan@xxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 0/5] Add MSI support to XEN
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Mon, 31 Mar 2008 15:14:22 +0100
Cc: "Tian, Kevin" <kevin.tian@xxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, "Li, Xin B" <xin.b.li@xxxxxxxxx>
Delivery-date: Mon, 31 Mar 2008 07:17:00 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <391BF3CDD2DC0848B40ACB72FA97AD590323063E@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AciQMO1Y+dTIVbdxTuGacqzZj4GuywARL6KAAAvIwN8AALvKIAADJmsgAAB3TPAAn7fz4AABG9/O
Thread-topic: [Xen-devel] [PATCH 0/5] Add MSI support to XEN
User-agent: Microsoft-Entourage/11.4.0.080122
On 31/3/08 14:57, "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx> wrote:

> Keir, when I try to get the ip address today, I suddenly found I can't
> reproduce it anymore, also orginally if I removed the code that trigger
> the software LSC interrupt, the NIC can still work and get IP address,
> but now if I remove that code, the NIC can't work anymore.
> It is really strange to me, I did't change anything to the system. Also
> I don't know any changes in the lab environment that may cause this
> change. But I do can reproduce it before each time.
> 
> Really frustrated to get this :-( , do you think we still need move the
> config space access down, now the only reasons to move this down is,
> ack_edge_ioapic_irq() did the mask, and this mask can make HV more
> robust.

So, if you leave the driver as it is (triggering the software LSC
interrupt), do APIC EOI in Xen before executing the interrupt handler in
dom0, and do not mask the MSI at all, then you no longer hang?

That's a weird change in behaviour if so!

I wonder whether there is a timing issue of some sort, and it depends if the
NIC generates the software-triggered interrupt at a fast enough rate that
the host CPU fails to make progress if it doesn't mask the MSI? You haven't
changed test machine at all, or put the NIC in a different PCI slot, or
anything like that?

 -- Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel