xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Keir Fraser <keir.xen@gmail.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	"Kay, Allen M" <allen.m.kay@intel.com>
Subject: Re: IOMMU Interrupt Remapping query
Date: Mon, 06 Jun 2011 19:53:56 +0100	[thread overview]
Message-ID: <CA12E0D4.1BAC8%keir.xen@gmail.com> (raw)
In-Reply-To: <4DED0254.1030103@citrix.com>

On 06/06/2011 17:37, "Andrew Cooper" <andrew.cooper3@citrix.com> wrote:

> On 06/06/11 16:21, Keir Fraser wrote:
>> On 06/06/2011 15:32, "Andrew Cooper" <andrew.cooper3@citrix.com> 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.

  parent reply	other threads:[~2011-06-06 18:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-06 14:32 IOMMU Interrupt Remapping query Andrew Cooper
2011-06-06 15:21 ` Keir Fraser
2011-06-06 16:37   ` Andrew Cooper
2011-06-06 18:45     ` Keir Fraser
2011-06-06 18:53     ` Keir Fraser [this message]
2011-06-07  8:44       ` Andrew Cooper

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=CA12E0D4.1BAC8%keir.xen@gmail.com \
    --to=keir.xen@gmail.com \
    --cc=allen.m.kay@intel.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=xen-devel@lists.xensource.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).