All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jan Beulich" <jbeulich@novell.com>
To: Haitao Shan <haitao.shan@intel.com>, Kevin Tian <kevin.tian@intel.com>
Cc: "'xen-devel@lists.xensource.com'" <xen-devel@lists.xensource.com>,
	'Keir Fraser' <keir.fraser@eu.citrix.com>
Subject: RE: [PATCH] Dom0 Kernel - Fixes forsaving/restoringMSI/MSI-X across Dom0 S3
Date: Mon, 24 Nov 2008 15:32:35 +0000	[thread overview]
Message-ID: <492AD723.76E4.0078.0@novell.com> (raw)
In-Reply-To: <61563CE63B4F854986A895DA7AD3C17701FC5837@pdsmsx502.ccr.corp.intel.com>

>>> "Shan, Haitao" <haitao.shan@intel.com> 24.11.08 14:55 >>>
>Yes, clear enough as Kevin said. That is what I saw why S3 failed when AHCI is enabled (AHCI uses MSI). I do not know whether it
>is also the reason that Jan sees the need to add force unbind support of MSI.
>I have another question for saving/restoring in Xen if we do not use a new hypercall. Devices are controller by dom0. At the point
>Xen wants to save MSI during S3, dom0 may already places that device in D3hot state, or it may also cease the device's function
>via pci_disable_device. I doubt whether Xen can read device MMIO at that time.

But - as asked before - shouldn't the device undergo full re-initialization after coming out of D3? Iirc, the AHCI/S3 bug results in a cannot-rebind-because-already-bound error, which would indicate to me that the driver tries to create a new binding, and hence doesn't really need the device's state saved (admitted, I didn't look closely at the driver's code so far). It instead may just need Xen to clean up its internal state properly. But really, I'm in no way a suspend/resume expert...

Jan

  reply	other threads:[~2008-11-24 15:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-24 11:03 [PATCH] Dom0 Kernel - Fixes for saving/restoring MSI/MSI-X across Dom0 S3 Shan, Haitao
2008-11-24 11:41 ` [PATCH] Dom0 Kernel - Fixes for saving/restoringMSI/MSI-X " Jan Beulich
2008-11-24 12:03   ` Keir Fraser
2008-11-24 12:53     ` Tian, Kevin
2008-11-24 13:35       ` [PATCH] Dom0 Kernel - Fixes forsaving/restoringMSI/MSI-X " Jan Beulich
2008-11-24 13:45         ` Tian, Kevin
2008-11-24 13:55           ` Shan, Haitao
2008-11-24 15:32             ` Jan Beulich [this message]
2008-11-25  1:21               ` Shan, Haitao
2008-11-24 13:45     ` [PATCH] Dom0 Kernel - Fixes for saving/restoringMSI/MSI-X " Shan, Haitao
2008-11-24 14:15 ` [PATCH] Dom0 Kernel - Fixes for saving/restoring MSI/MSI-X " 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=492AD723.76E4.0078.0@novell.com \
    --to=jbeulich@novell.com \
    --cc=haitao.shan@intel.com \
    --cc=keir.fraser@eu.citrix.com \
    --cc=kevin.tian@intel.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 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.