From: Tom Rotenberg Subject: Re: What's the state of dom0 S3? It doesn't work on latest xen Date: Thu, 17 Sep 2009 22:25:46 +0300 Message-ID: <8686c3cd0909171225s766dbde8w68d92f2b87bba99c@mail.gmail.com> References: <8686c3cd0909160901w34b3750dy5bd68434785018da@mail.gmail.com> <20090916164936.GF31123@reaktio.net> <8686c3cd0909161406v6acbcd38t4674d6c1d2b6ac43@mail.gmail.com> <4AB170F6.5020703@goop.org> <8FED46E8A9CA574792FC7AACAC38FE77028754E3B5@PDSMSX501.ccr.corp.intel.com> <4AB1A172.7050904@goop.org> <8686c3cd0909170100u1e7f5732o592aa4b4084baca3@mail.gmail.com> <20090917155343.GA27106@ub-qhe2> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20090917155343.GA27106@ub-qhe2> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Qing He Cc: "xci-devel@lists.xensource.com" , Jeremy Fitzhardinge , "xen-devel@lists.xensource.com" , "Wei, Gang" List-Id: xen-devel@lists.xenproject.org On which machine did u try it on? what version of Xen & what version of the kernel were u using? On Thu, Sep 17, 2009 at 6:53 PM, Qing He wrote: > On Thu, 2009-09-17 at 16:00 +0800, Tom Rotenberg wrote: >> So, if i clone the latest xen unstable, and build it, it should work? >> > > Well, although I got MSI device working after a S3 resume on my box, > I just found it still lacking something. The hypervisor doesn't > automatically restore the vectors to the physical devices, but only > does that on a hypercall: physdev_restore_msi. > > I guess that it works because the S3 during is short and the addr/data > are still in the device? > >> How should i send the machine to sleep? running 's2ram' causes a >> segmentation fault... > > I uses the following: > =A0 =A0 =A0 =A0echo 0 > /sys/class/rtc/rtc0/wakealarm > =A0 =A0 =A0 =A0echo +20 > /sys/class/rtc/rtc0/wakealarm > =A0 =A0 =A0 =A0echo mem > /sys/power/state > > Thanks, > Qing > >> >> On Thu, Sep 17, 2009 at 5:39 AM, Jeremy Fitzhardinge w= rote: >> > On 09/16/09 18:14, Wei, Gang wrote: >> >> Current dom0 S3 should work with pci=3Dnomsi. For msi case, we alread= y have workaround which may be sent out soon. The formal solution for msi c= ase which may require config space emulation need more consideration & disc= ussion. >> >> >> > >> > Actually I applied the MSI workaround today. >> > >> > ? ?J >> > >