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] IOMMU Interrupt Remapping query

To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
Subject: Re: [Xen-devel] IOMMU Interrupt Remapping query
From: Keir Fraser <keir.xen@xxxxxxxxx>
Date: Mon, 06 Jun 2011 19:53:56 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, "Kay, Allen M" <allen.m.kay@xxxxxxxxx>
Delivery-date: Mon, 06 Jun 2011 11:54:42 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:user-agent:date:subject:from:to:cc:message-id :thread-topic:thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; bh=3w4XlOZgNHb3HL5O73ZyswvJriXCayQ6jq4oq1fPAaI=; b=SYbSSwkqb0vJqfqe9ZlvSWFt6ZYpEXscY090rrgL1JKBkthYNJq/56VVkLflUa+2R6 JkbMN4f0l2wUkAmObiDXgOERhXgpLp57tjGOvADwmfhofpdwChhaVtXtEpw+JoUGGekQ 51eXzjEpjeNlkGgw6alOQp4Dzy+mKlr97Ctg4=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=user-agent:date:subject:from:to:cc:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; b=wW+6PcoUT5hBSS1Ga5rAEZf3paShzwQAlbcPsbncfxB2gO9t9prWcCzobQQK5Donxt V1uqo6tBMtP4jUit3K06fO1buZHIZ/x8btk5uJmWDA+Q03tnL8hP6Txt9bz88btKtthl QL9AvkrMMHpkem1bqKbYHsDEwNe7jnsYvg+Vo=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4DED0254.1030103@xxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcwkexZDvldXDBi5nkGEwkt++f65fQ==
Thread-topic: [Xen-devel] IOMMU Interrupt Remapping query
User-agent: Microsoft-Entourage/12.29.0.110113
On 06/06/2011 17:37, "Andrew Cooper" <andrew.cooper3@xxxxxxxxxx> wrote:

> On 06/06/11 16:21, Keir Fraser wrote:
>> On 06/06/2011 15:32, "Andrew Cooper" <andrew.cooper3@xxxxxxxxxx> wrote:
>> 
>> 
>>> This problem occurs with the XenServer version of 4.1.0 as well as on
>>> xen-unstable at the moment.
>>> 
>>> Is there any hardware state which is not taken down by the disable
>>> function, any subtle interactions which I have not taken account of?  I
>>> have looked through the source and nothing pops out, but I am out of ideas.
>>> 
>>> Thanks in advance,
>> 
> Attached are the two relevant patches, and two which I don't think are
> relevant but might be if I am wrong.  crash_shutdown was an attempt to
> make an iommu_ops which shut down all iommu functionality without saving
> state.  debug-wip shows where I have put in debug statements.

I think what you need to do ought to be quite similar to the teardown we do
for S3 suspend. Have you considered reusing some of the mechanism in
arch/x86/acpi/power.c? The function device_power_down(), and possibly some
other bits in its caller, would be especially useful I should think. It
already shuts down iommu functionality, turns off x2apic, etc etc. Even if
it is not a perfect fit as is, perhaps it could be fixed up -- it sure looks
similar to what ypu're trying to do. :-)

 -- Keir

> kdump-fix-x2apic and apic-record-boot-mode are also in the source, but I
> believe them to be unrelated to the current problem.
> 
> I have done some further debugging on the assumption that the order of
> shutting down interupt remapping matters with shutting down the lapics
> and ioapics, but disable_qinval causes a panic (qinval.c:222 - "queue
> invalidate wait descriptor was not executed\n") if it is run before both
> the lapics and ioapics are shut down.



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