Skip to contentSkip to conversation

Host S3

DISCUSSION scorbin 5 participants 13 messages Jul 1, 2009 – Jul 9, 2009

lore
Share & tools
lore

scorbin

author
#0 lore raw

What is the state of host suspend to ram? I noticed that this functionality was put into 3.2 with fixes in 3.3. I also saw something recently that indicates there might be a separate tree where suspend/S3 is being developed/enhanced?

I did try Xen3.3/Ubuntu8.04 and did not get host S3 to resume properly. Straight Ubuntu 8.04 suspends/resumes fine.

#1 lore raw

It does work on many systems, but it hasn't had very wide testing as yet.

-- Keir

Quoted 14 lines · scorbin

What is the state of host suspend to ram? I noticed that this functionality was put into 3.2 with fixes in 3.3. I also saw something recently that indicates there might be a separate tree where suspend/S3 is being developed/enhanced?

I did try Xen3.3/Ubuntu8.04 and did not get host S3 to resume properly. Straight Ubuntu 8.04 suspends/resumes fine.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw
In reply to scorbin

What is the hardware it didn't work for you?

2009/7/1 scorbin <[email protected]>

Quoted 10 lines

What is the state of host suspend to ram? I noticed that this functionality was put into 3.2 with fixes in 3.3. I also saw something recently that indicates there might be a separate tree where suspend/S3 is being developed/enhanced?

I did try Xen3.3/Ubuntu8.04 and did not get host S3 to resume properly. Straight Ubuntu 8.04 suspends/resumes fine.

Quoted 5 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

author
#3 lore raw

I tried it on a Dell, Lenovo and 2 HPs. Upon further investigation it turns out the systems are resuming but the video card is not re-initialized. It's strange because I can use the same procedure for Linux without Xen and the video resumes properly.

Searching the web I found suspend.sf.net. Is this what people are using to do the video restore?

Quoted 20 lines · Tom Rotenberg

What is the hardware it didn't work for you?

2009/7/1 scorbin <[email protected]>
What is the state of host suspend to ram? I noticed that this functionality was put into 3.2 with fixes in 3.3. I also saw something
recently that indicates there might be a separate tree where suspend/S3
is being developed/enhanced?

I did try Xen3.3/Ubuntu8.04 and did not get host S3 to resume properly.
Straight Ubuntu 8.04 suspends/resumes fine.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

author
#4 lore raw

It looks like suspend.sf.net will not work. The s2ram utility requires /proc/sys/kernel/acpi_sleep_flags which does not exist in the Xen patched Linux kernel. It is removed via CONFIG_ACPI_PV_SLEEP.

So how are people using dom0 suspend/resume? Any sample scripts/code? Simply doing 'echo mem > /sys/power/state' does not restore the graphics card. I also tried a script I found on the web that effectively does:

# dump current data from the video card to the temporary file
cat /proc/bus/pci/$ID > $TMP_FILE
# suspend
echo -n mem > /sys/power/state
# restore video card data from the temporary file on resume
cat $TMP_FILE > /proc/bus/pci/$ID

with the same result that bare Linux works but booting with Xen does not restore the video card.

- steve

Quoted 37 lines · scorbin

I tried it on a Dell, Lenovo and 2 HPs. Upon further investigation it turns out the systems are resuming but the video card is not re-initialized. It's strange because I can use the same procedure for Linux without Xen and the video resumes properly.

Searching the web I found suspend.sf.net. Is this what people are using to do the video restore?

Quoted 16 lines · Tom Rotenberg

What is the hardware it didn't work for you?

2009/7/1 scorbin <[email protected]>
What is the state of host suspend to ram? I noticed that this functionality was put into 3.2 with fixes in 3.3. I also saw something
recently that indicates there might be a separate tree where suspend/S3
is being developed/enhanced?

I did try Xen3.3/Ubuntu8.04 and did not get host S3 to resume properly.
Straight Ubuntu 8.04 suspends/resumes fine.

Quoted 4 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#5 lore raw

You might want to consider using the XCI build which already takes care of this issue. We have added the necessary user mode quirks plus included relevant components you would need along with appropriate emulation library that would work with 64-bit hypervisor etc.

Kamala

Quoted 82 lines

-----Original Message-----
From: [email protected] [mailto:xen-devel- [email protected]] On Behalf Of scorbin
Sent: Wednesday, July 01, 2009 2:26 PM
To: xen-devel
Subject: Re: [Xen-devel] Host S3

It looks like suspend.sf.net will not work. The s2ram utility requires /proc/sys/kernel/acpi_sleep_flags which does not exist in the Xen patched Linux kernel. It is removed via CONFIG_ACPI_PV_SLEEP.

So how are people using dom0 suspend/resume? Any sample scripts/code? Simply doing 'echo mem > /sys/power/state' does not restore the graphics
card. I also tried a script I found on the web that effectively does:

# dump current data from the video card to the temporary file
cat /proc/bus/pci/$ID > $TMP_FILE
# suspend
echo -n mem > /sys/power/state
# restore video card data from the temporary file on resume
cat $TMP_FILE > /proc/bus/pci/$ID

with the same result that bare Linux works but booting with Xen does not
restore the video card.

- steve

Quoted 1 line · scorbin

I tried it on a Dell, Lenovo and 2 HPs. Upon further investigation

it

Quoted 2 lines

turns out the systems are resuming but the video card is not re-initialized. It's strange because I can use the same procedure

for

Quoted 3 lines

Linux without Xen and the video resumes properly.

Searching the web I found suspend.sf.net. Is this what people are

using

Quoted 8 lines

to do the video restore?

Quoted 4 lines · Tom Rotenberg

What is the hardware it didn't work for you?

2009/7/1 scorbin <[email protected]>
What is the state of host suspend to ram? I noticed that

this

Quoted 1 line
Quoted 1 line

functionality was put into 3.2 with fixes in 3.3. I also

saw

Quoted 2 lines
Quoted 2 lines

something
recently that indicates there might be a separate tree

where

Quoted 4 lines
Quoted 4 lines

suspend/S3
is being developed/enhanced?

I did try Xen3.3/Ubuntu8.04 and did not get host S3 to

resume

Quoted 11 lines
Quoted 9 lines

properly.
Straight Ubuntu 8.04 suspends/resumes fine.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Quoted 5 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

author
#6 lore raw

Hi Kamala,

Thanks for your response. Can you provide some pointers into the XCI trees where I can see the related source code changes?

- steve

Quoted 87 lines · Kamala Narasimhan

You might want to consider using the XCI build which already takes care of this issue. We have added the necessary user mode quirks plus included relevant components you would need along with appropriate emulation library that would work with 64-bit hypervisor etc.

Kamala

Quoted 82 lines

-----Original Message-----
From: [email protected] [mailto:xen-devel- [email protected]] On Behalf Of scorbin
Sent: Wednesday, July 01, 2009 2:26 PM
To: xen-devel
Subject: Re: [Xen-devel] Host S3

It looks like suspend.sf.net will not work. The s2ram utility requires /proc/sys/kernel/acpi_sleep_flags which does not exist in the Xen patched Linux kernel. It is removed via CONFIG_ACPI_PV_SLEEP.

So how are people using dom0 suspend/resume? Any sample scripts/code? Simply doing 'echo mem > /sys/power/state' does not restore the graphics
card. I also tried a script I found on the web that effectively does:

# dump current data from the video card to the temporary file
cat /proc/bus/pci/$ID > $TMP_FILE
# suspend
echo -n mem > /sys/power/state
# restore video card data from the temporary file on resume
cat $TMP_FILE > /proc/bus/pci/$ID

with the same result that bare Linux works but booting with Xen does not
restore the video card.

- steve

Quoted 1 line · scorbin

I tried it on a Dell, Lenovo and 2 HPs. Upon further investigation

it

Quoted 2 lines

turns out the systems are resuming but the video card is not re-initialized. It's strange because I can use the same procedure

for

Quoted 3 lines

Linux without Xen and the video resumes properly.

Searching the web I found suspend.sf.net. Is this what people are

using

Quoted 8 lines

to do the video restore?

Quoted 4 lines · Tom Rotenberg

What is the hardware it didn't work for you?

2009/7/1 scorbin <[email protected]>
What is the state of host suspend to ram? I noticed that

this

Quoted 1 line
Quoted 1 line

functionality was put into 3.2 with fixes in 3.3. I also

saw

Quoted 2 lines
Quoted 2 lines

something
recently that indicates there might be a separate tree

where

Quoted 4 lines
Quoted 4 lines

suspend/S3
is being developed/enhanced?

I did try Xen3.3/Ubuntu8.04 and did not get host S3 to

resume

Quoted 11 lines
Quoted 9 lines

properly.
Straight Ubuntu 8.04 suspends/resumes fine.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Quoted 5 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#7 lore raw

You might want to look for enter-s3.sh script. Since host S3/resume is impacted by different components running on the system and since XCI build already ensures that the components built by it plays along with host S3, you might be better off with XCI build so as not to chase yet another issue you might possibly run into that XCI build might have already taken care of...

Kamala

Quoted 114 lines

-----Original Message-----
From: scorbin [mailto:[email protected]]
Sent: Wednesday, July 01, 2009 7:04 PM
To: Kamala Narasimhan
Cc: xen-devel
Subject: RE: [Xen-devel] Host S3

Hi Kamala,

Thanks for your response. Can you provide some pointers into the XCI trees where I can see the related source code changes?

- steve

Quoted 1 line · Kamala Narasimhan

You might want to consider using the XCI build which already takes

care of this issue. We have added the necessary user mode quirks plus included relevant components you would need along with appropriate emulation library that would work with 64-bit hypervisor etc.

Quoted 12 lines

Kamala

Quoted 9 lines

-----Original Message-----
From: [email protected] [mailto:xen-devel- [email protected]] On Behalf Of scorbin
Sent: Wednesday, July 01, 2009 2:26 PM
To: xen-devel
Subject: Re: [Xen-devel] Host S3

It looks like suspend.sf.net will not work. The s2ram utility requires /proc/sys/kernel/acpi_sleep_flags which does not exist in

the

Quoted 3 lines
Quoted 3 lines

Xen patched Linux kernel. It is removed via CONFIG_ACPI_PV_SLEEP.

So how are people using dom0 suspend/resume? Any sample

scripts/code?

Quoted 3 lines
Quoted 3 lines

Simply doing 'echo mem > /sys/power/state' does not restore the graphics
card. I also tried a script I found on the web that effectively

does:

Quoted 11 lines
Quoted 11 lines
# dump current data from the video card to the temporary file
cat /proc/bus/pci/$ID > $TMP_FILE
# suspend
echo -n mem > /sys/power/state
# restore video card data from the temporary file on resume
cat $TMP_FILE > /proc/bus/pci/$ID

with the same result that bare Linux works but booting with Xen

does

Quoted 7 lines
Quoted 7 lines

not
restore the video card.

- steve

Quoted 1 line · scorbin

I tried it on a Dell, Lenovo and 2 HPs. Upon further

investigation

Quoted 3 lines
Quoted 3 lines

it

Quoted 2 lines

turns out the systems are resuming but the video card is not re-initialized. It's strange because I can use the same

procedure

Quoted 4 lines
Quoted 4 lines

for

Quoted 3 lines

Linux without Xen and the video resumes properly.

Searching the web I found suspend.sf.net. Is this what people

are

Quoted 9 lines
Quoted 9 lines

using

Quoted 8 lines

to do the video restore?

Quoted 4 lines · Tom Rotenberg

What is the hardware it didn't work for you?

2009/7/1 scorbin <[email protected]>
What is the state of host suspend to ram? I noticed

that

Quoted 2 lines
Quoted 2 lines

this

Quoted 1 line
Quoted 1 line

functionality was put into 3.2 with fixes in 3.3. I

also

Quoted 32 lines
Quoted 31 lines

saw

Quoted 2 lines
Quoted 2 lines

something
recently that indicates there might be a separate tree

where

Quoted 4 lines
Quoted 4 lines

suspend/S3
is being developed/enhanced?

I did try Xen3.3/Ubuntu8.04 and did not get host S3 to

resume

Quoted 11 lines
Quoted 9 lines

properly.
Straight Ubuntu 8.04 suspends/resumes fine.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Quoted 5 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

author
#8 lore raw

Hi Kamala,

I am trying to build the XCI tree and am having some issues. The first problem is that the make configuration for xenclient-ioemu is setup to use alsa but libasound2 is not included in the XCI target packages. I avoided this issue by modifying xen-setup and configure in the xenclient-ioemu directory to not use alsa. The second issue is one I can't get passed. The build fails just after setting up xenclient-linux. Here is the output:

...
Initialized empty Git repository
in /home/scorbin/build/repo/xenclient-linux-2.6.27-pq/.git/ master
ln: target `' is not a directory: No such file or directory Applying patch..hgignore.patch
Patch applied.
Applying patch..build-system-integration.patch
Patch applied.
Applying patch..linux-2.6.27.19-5.1.patch
Patch applied.
Applying patch..sync-drivers-xen.patch
Patch applied.
Applying patch..forward-port-drivers-xen.patch
Patch applied.
Applying patch..linux-2.6.18-xen.hg-832.c0f2f398aa3c # x86: Fix interaction of NTP and dom0->xen time updates
Patch linux-2.6.18-xen.hg-832.c0f2f398aa3c # x86: Fix interaction of NTP and dom0->xen time updates does not exist. Aborting. make[1]: *** [/home/scorbin/build/repo/xenclient-kernel-2.6.27] Error 1 make[1]: Leaving directory `/home/scorbin/build'
make: *** [/home/scorbin/build/build_i686/xenclient-kernel-2.6.27/.installed] Error 2

The build system is a fresh install of 32-bit Debian 5.01.

Any help you can provide on building XCI would be appreciated.

- steve

Quoted 120 lines · Kamala Narasimhan

You might want to look for enter-s3.sh script. Since host S3/resume is impacted by different components running on the system and since XCI build already ensures that the components built by it plays along with host S3, you might be better off with XCI build so as not to chase yet another issue you might possibly run into that XCI build might have already taken care of...

Kamala

Quoted 114 lines

-----Original Message-----
From: scorbin [mailto:[email protected]]
Sent: Wednesday, July 01, 2009 7:04 PM
To: Kamala Narasimhan
Cc: xen-devel
Subject: RE: [Xen-devel] Host S3

Hi Kamala,

Thanks for your response. Can you provide some pointers into the XCI trees where I can see the related source code changes?

- steve

Quoted 1 line · Kamala Narasimhan

You might want to consider using the XCI build which already takes

care of this issue. We have added the necessary user mode quirks plus included relevant components you would need along with appropriate emulation library that would work with 64-bit hypervisor etc.

Quoted 12 lines

Kamala

Quoted 9 lines

-----Original Message-----
From: [email protected] [mailto:xen-devel- [email protected]] On Behalf Of scorbin
Sent: Wednesday, July 01, 2009 2:26 PM
To: xen-devel
Subject: Re: [Xen-devel] Host S3

It looks like suspend.sf.net will not work. The s2ram utility requires /proc/sys/kernel/acpi_sleep_flags which does not exist in

the

Quoted 3 lines
Quoted 3 lines

Xen patched Linux kernel. It is removed via CONFIG_ACPI_PV_SLEEP.

So how are people using dom0 suspend/resume? Any sample

scripts/code?

Quoted 3 lines
Quoted 3 lines

Simply doing 'echo mem > /sys/power/state' does not restore the graphics
card. I also tried a script I found on the web that effectively

does:

Quoted 11 lines
Quoted 11 lines
# dump current data from the video card to the temporary file
cat /proc/bus/pci/$ID > $TMP_FILE
# suspend
echo -n mem > /sys/power/state
# restore video card data from the temporary file on resume
cat $TMP_FILE > /proc/bus/pci/$ID

with the same result that bare Linux works but booting with Xen

does

Quoted 7 lines
Quoted 7 lines

not
restore the video card.

- steve

Quoted 1 line · scorbin

I tried it on a Dell, Lenovo and 2 HPs. Upon further

investigation

Quoted 3 lines
Quoted 3 lines

it

Quoted 2 lines

turns out the systems are resuming but the video card is not re-initialized. It's strange because I can use the same

procedure

Quoted 4 lines
Quoted 4 lines

for

Quoted 3 lines

Linux without Xen and the video resumes properly.

Searching the web I found suspend.sf.net. Is this what people

are

Quoted 9 lines
Quoted 9 lines

using

Quoted 8 lines

to do the video restore?

Quoted 4 lines · Tom Rotenberg

What is the hardware it didn't work for you?

2009/7/1 scorbin <[email protected]>
What is the state of host suspend to ram? I noticed

that

Quoted 2 lines
Quoted 2 lines

this

Quoted 1 line
Quoted 1 line

functionality was put into 3.2 with fixes in 3.3. I

also

Quoted 32 lines
Quoted 31 lines

saw

Quoted 2 lines
Quoted 2 lines

something
recently that indicates there might be a separate tree

where

Quoted 4 lines
Quoted 4 lines

suspend/S3
is being developed/enhanced?

I did try Xen3.3/Ubuntu8.04 and did not get host S3 to

resume

Quoted 11 lines
Quoted 9 lines

properly.
Straight Ubuntu 8.04 suspends/resumes fine.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Quoted 5 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#9 lore raw

I haven't encountered this error, so I am not sure. One thing that comes to mind is to check the version of guilt on your system and possibly upgrade to a newer version if there is one.

Kamala

Quoted 187 lines

-----Original Message-----
From: scorbin [mailto:[email protected]]
Sent: Thursday, July 02, 2009 5:03 PM
To: Kamala Narasimhan
Cc: xen-devel
Subject: RE: [Xen-devel] Host S3

Hi Kamala,

I am trying to build the XCI tree and am having some issues. The first problem is that the make configuration for xenclient-ioemu is setup to use alsa but libasound2 is not included in the XCI target packages. I avoided this issue by modifying xen-setup and configure in the xenclient-ioemu directory to not use alsa. The second issue is one I can't get passed. The build fails just after setting up xenclient-linux. Here is the output:

...
Initialized empty Git repository
in /home/scorbin/build/repo/xenclient-linux-2.6.27-pq/.git/ master
ln: target `' is not a directory: No such file or directory Applying patch..hgignore.patch
Patch applied.
Applying patch..build-system-integration.patch
Patch applied.
Applying patch..linux-2.6.27.19-5.1.patch
Patch applied.
Applying patch..sync-drivers-xen.patch
Patch applied.
Applying patch..forward-port-drivers-xen.patch
Patch applied.
Applying patch..linux-2.6.18-xen.hg-832.c0f2f398aa3c # x86: Fix interaction of NTP and dom0->xen time updates
Patch linux-2.6.18-xen.hg-832.c0f2f398aa3c # x86: Fix interaction of NTP
and dom0->xen time updates does not exist. Aborting. make[1]: *** [/home/scorbin/build/repo/xenclient-kernel-2.6.27] Error 1 make[1]: Leaving directory `/home/scorbin/build'
make: *** [/home/scorbin/build/build_i686/xenclient-kernel-2.6.27/.installed] Error 2

The build system is a fresh install of 32-bit Debian 5.01.

Any help you can provide on building XCI would be appreciated.

- steve

Quoted 1 line · Kamala Narasimhan

You might want to look for enter-s3.sh script. Since host S3/resume

is impacted by different components running on the system and since XCI build already ensures that the components built by it plays along with host S3, you might be better off with XCI build so as not to chase yet another issue you might possibly run into that XCI build might have already taken care of...

Quoted 13 lines

Kamala

Quoted 10 lines

-----Original Message-----
From: scorbin [mailto:[email protected]]
Sent: Wednesday, July 01, 2009 7:04 PM
To: Kamala Narasimhan
Cc: xen-devel
Subject: RE: [Xen-devel] Host S3

Hi Kamala,

Thanks for your response. Can you provide some pointers into the

XCI

Quoted 6 lines
Quoted 6 lines

trees where I can see the related source code changes?

- steve

Quoted 1 line · Kamala Narasimhan

You might want to consider using the XCI build which already

takes

Quoted 1 line
Quoted 1 line

care of this issue. We have added the necessary user mode quirks

plus

Quoted 12 lines
Quoted 12 lines

included relevant components you would need along with appropriate emulation library that would work with 64-bit hypervisor etc.

Quoted 10 lines

Kamala

Quoted 7 lines

-----Original Message-----
From: [email protected] [mailto:xen-devel- [email protected]] On Behalf Of scorbin
Sent: Wednesday, July 01, 2009 2:26 PM
To: xen-devel
Subject: Re: [Xen-devel] Host S3

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

It looks like suspend.sf.net will not work. The s2ram utility requires /proc/sys/kernel/acpi_sleep_flags which does not exist

in

Quoted 2 lines
Quoted 2 lines

the

Quoted 1 line
Quoted 1 line

Xen patched Linux kernel. It is removed via

CONFIG_ACPI_PV_SLEEP.

Quoted 6 lines
Quoted 6 lines
Quoted 2 lines
Quoted 2 lines

So how are people using dom0 suspend/resume? Any sample

scripts/code?

Quoted 3 lines
Quoted 3 lines

Simply doing 'echo mem > /sys/power/state' does not restore the graphics
card. I also tried a script I found on the web that

effectively

Quoted 21 lines
Quoted 21 lines

does:

Quoted 11 lines
Quoted 11 lines
# dump current data from the video card to the temporary file
cat /proc/bus/pci/$ID > $TMP_FILE
# suspend
echo -n mem > /sys/power/state
# restore video card data from the temporary file on resume
cat $TMP_FILE > /proc/bus/pci/$ID

with the same result that bare Linux works but booting with Xen

does

Quoted 7 lines
Quoted 7 lines

not
restore the video card.

- steve

Quoted 1 line · scorbin

I tried it on a Dell, Lenovo and 2 HPs. Upon further

investigation

Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines

it

Quoted 2 lines

turns out the systems are resuming but the video card is not re-initialized. It's strange because I can use the same

procedure

Quoted 4 lines
Quoted 4 lines

for

Quoted 3 lines

Linux without Xen and the video resumes properly.

Searching the web I found suspend.sf.net. Is this what

people

Quoted 10 lines
Quoted 10 lines

are

Quoted 9 lines
Quoted 9 lines

using

Quoted 8 lines

to do the video restore?

Quoted 4 lines · Tom Rotenberg

What is the hardware it didn't work for you?

2009/7/1 scorbin <[email protected]>
What is the state of host suspend to ram? I

noticed

Quoted 3 lines
Quoted 3 lines

that

Quoted 2 lines
Quoted 2 lines

this

Quoted 1 line
Quoted 1 line

functionality was put into 3.2 with fixes in 3.3.

I

Quoted 4 lines
Quoted 4 lines

also

Quoted 3 lines
Quoted 3 lines

saw

Quoted 2 lines
Quoted 2 lines

something
recently that indicates there might be a separate

tree

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

where

Quoted 4 lines
Quoted 4 lines

suspend/S3
is being developed/enhanced?

I did try Xen3.3/Ubuntu8.04 and did not get host S3

to

Quoted 26 lines
Quoted 24 lines
Quoted 24 lines
Quoted 23 lines

resume

Quoted 11 lines
Quoted 9 lines

properly.
Straight Ubuntu 8.04 suspends/resumes fine.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Quoted 5 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#10 lore raw

Some versions of guilt don't like comments following the patch file name
on the same line - if you can't find one that does then this may
help...I suspect you'll find that the file:

/home/scorbin/build/repo/xenclient-linux-2.6.27/.git/patches/master/series

has lines like:

linux-2.6.18-xen.hg-832.c0f2f398aa3c # x86: Fix interaction of NTP and dom0->xen time updates

Remove the comments from lines like that and re-run 'guilt-push -a' from the root of that repo and go back to the make.

Chris

Quoted 189 lines · Kamala Narasimhan

I haven't encountered this error, so I am not sure. One thing that comes to mind is to check the version of guilt on your system and possibly upgrade to a newer version if there is one.

Kamala

Quoted 150 lines

-----Original Message-----
From: scorbin [mailto:[email protected]]
Sent: Thursday, July 02, 2009 5:03 PM
To: Kamala Narasimhan
Cc: xen-devel
Subject: RE: [Xen-devel] Host S3

Hi Kamala,

I am trying to build the XCI tree and am having some issues. The first problem is that the make configuration for xenclient-ioemu is setup to use alsa but libasound2 is not included in the XCI target packages. I avoided this issue by modifying xen-setup and configure in the xenclient-ioemu directory to not use alsa. The second issue is one I can't get passed. The build fails just after setting up xenclient-linux. Here is the output:

...
Initialized empty Git repository
in /home/scorbin/build/repo/xenclient-linux-2.6.27-pq/.git/ master
ln: target `' is not a directory: No such file or directory Applying patch..hgignore.patch
Patch applied.
Applying patch..build-system-integration.patch
Patch applied.
Applying patch..linux-2.6.27.19-5.1.patch
Patch applied.
Applying patch..sync-drivers-xen.patch
Patch applied.
Applying patch..forward-port-drivers-xen.patch
Patch applied.
Applying patch..linux-2.6.18-xen.hg-832.c0f2f398aa3c # x86: Fix interaction of NTP and dom0->xen time updates
Patch linux-2.6.18-xen.hg-832.c0f2f398aa3c # x86: Fix interaction of NTP
and dom0->xen time updates does not exist. Aborting. make[1]: *** [/home/scorbin/build/repo/xenclient-kernel-2.6.27] Error 1 make[1]: Leaving directory `/home/scorbin/build'
make: *** [/home/scorbin/build/build_i686/xenclient-kernel-2.6.27/.installed] Error 2

The build system is a fresh install of 32-bit Debian 5.01.

Any help you can provide on building XCI would be appreciated.

- steve

Quoted 1 line · Kamala Narasimhan

You might want to look for enter-s3.sh script. Since host S3/resume

is impacted by different components running on the system and since XCI build already ensures that the components built by it plays along with host S3, you might be better off with XCI build so as not to chase yet another issue you might possibly run into that XCI build might have already taken care of...

Quoted 12 lines

Kamala

Quoted 10 lines

-----Original Message-----
From: scorbin [mailto:[email protected]]
Sent: Wednesday, July 01, 2009 7:04 PM
To: Kamala Narasimhan
Cc: xen-devel
Subject: RE: [Xen-devel] Host S3

Hi Kamala,

Thanks for your response. Can you provide some pointers into the

XCI

Quoted 6 lines
Quoted 6 lines

trees where I can see the related source code changes?

- steve

Quoted 1 line · Kamala Narasimhan

You might want to consider using the XCI build which already

takes

Quoted 1 line
Quoted 1 line

care of this issue. We have added the necessary user mode quirks

plus

Quoted 11 lines
Quoted 11 lines

included relevant components you would need along with appropriate emulation library that would work with 64-bit hypervisor etc.

Quoted 9 lines

Kamala

Quoted 7 lines

-----Original Message-----
From: [email protected] [mailto:xen-devel- [email protected]] On Behalf Of scorbin
Sent: Wednesday, July 01, 2009 2:26 PM
To: xen-devel
Subject: Re: [Xen-devel] Host S3

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

It looks like suspend.sf.net will not work. The s2ram utility requires /proc/sys/kernel/acpi_sleep_flags which does not exist

in

Quoted 2 lines
Quoted 2 lines

the

Quoted 1 line
Quoted 1 line

Xen patched Linux kernel. It is removed via

CONFIG_ACPI_PV_SLEEP.

Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line

So how are people using dom0 suspend/resume? Any sample

scripts/code?

Quoted 3 lines
Quoted 3 lines

Simply doing 'echo mem > /sys/power/state' does not restore the graphics
card. I also tried a script I found on the web that

effectively

Quoted 20 lines
Quoted 20 lines

does:

Quoted 10 lines
Quoted 10 lines
# dump current data from the video card to the temporary file
cat /proc/bus/pci/$ID > $TMP_FILE
# suspend
echo -n mem > /sys/power/state
# restore video card data from the temporary file on resume
cat $TMP_FILE > /proc/bus/pci/$ID

with the same result that bare Linux works but booting with Xen

does

Quoted 7 lines
Quoted 7 lines

not
restore the video card.

- steve

Quoted 1 line · scorbin

I tried it on a Dell, Lenovo and 2 HPs. Upon further

investigation

Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines

it

Quoted 2 lines

turns out the systems are resuming but the video card is not re-initialized. It's strange because I can use the same

procedure

Quoted 4 lines
Quoted 4 lines

for

Quoted 3 lines

Linux without Xen and the video resumes properly.

Searching the web I found suspend.sf.net. Is this what

people

Quoted 10 lines
Quoted 10 lines

are

Quoted 9 lines
Quoted 9 lines

using

Quoted 8 lines

to do the video restore?

Quoted 4 lines · Tom Rotenberg

What is the hardware it didn't work for you?

2009/7/1 scorbin <[email protected]>
What is the state of host suspend to ram? I

noticed

Quoted 3 lines
Quoted 3 lines

that

Quoted 2 lines
Quoted 2 lines

this

Quoted 1 line
Quoted 1 line

functionality was put into 3.2 with fixes in 3.3.

I

Quoted 4 lines
Quoted 4 lines

also

Quoted 3 lines
Quoted 3 lines

saw

Quoted 2 lines
Quoted 2 lines

something
recently that indicates there might be a separate

Quoted 29 lines

tree

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

where

Quoted 4 lines
Quoted 4 lines

suspend/S3
is being developed/enhanced?

I did try Xen3.3/Ubuntu8.04 and did not get host S3

to

Quoted 22 lines
Quoted 21 lines
Quoted 21 lines
Quoted 21 lines

resume

Quoted 10 lines
Quoted 9 lines

properly.
Straight Ubuntu 8.04 suspends/resumes fine.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Quoted 5 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

author
#11 lore raw
In reply to Kamala Narasimhan

I got the XCI build up and running but dom0 does not provide the functionality I am looking for. There is no ability to run X or GDM. So far the issues I am seeing with host suspend/resume seem to be graphics and SMP related, issues which XCI does not address.

I would like to get dom0 suspend/resume working with Ubuntu 8.04 or 9.04 running on top of Xen. I have used s2ram, pm-suspend and some roll-my-own scripts with less than stellar results.

The current issue I am looking at is that Xen's time is not working after resume. Both clocksource/1 and timer isr/1 print out persistent "Time went backwards" messages.

- steve

Quoted 87 lines · Kamala Narasimhan

You might want to consider using the XCI build which already takes care of this issue. We have added the necessary user mode quirks plus included relevant components you would need along with appropriate emulation library that would work with 64-bit hypervisor etc.

Kamala

Quoted 82 lines

-----Original Message-----
From: [email protected] [mailto:xen-devel- [email protected]] On Behalf Of scorbin
Sent: Wednesday, July 01, 2009 2:26 PM
To: xen-devel
Subject: Re: [Xen-devel] Host S3

It looks like suspend.sf.net will not work. The s2ram utility requires /proc/sys/kernel/acpi_sleep_flags which does not exist in the Xen patched Linux kernel. It is removed via CONFIG_ACPI_PV_SLEEP.

So how are people using dom0 suspend/resume? Any sample scripts/code? Simply doing 'echo mem > /sys/power/state' does not restore the graphics
card. I also tried a script I found on the web that effectively does:

# dump current data from the video card to the temporary file
cat /proc/bus/pci/$ID > $TMP_FILE
# suspend
echo -n mem > /sys/power/state
# restore video card data from the temporary file on resume
cat $TMP_FILE > /proc/bus/pci/$ID

with the same result that bare Linux works but booting with Xen does not
restore the video card.

- steve

Quoted 1 line · scorbin

I tried it on a Dell, Lenovo and 2 HPs. Upon further investigation

it

Quoted 2 lines

turns out the systems are resuming but the video card is not re-initialized. It's strange because I can use the same procedure

for

Quoted 3 lines

Linux without Xen and the video resumes properly.

Searching the web I found suspend.sf.net. Is this what people are

using

Quoted 8 lines

to do the video restore?

Quoted 4 lines · Tom Rotenberg

What is the hardware it didn't work for you?

2009/7/1 scorbin <[email protected]>
What is the state of host suspend to ram? I noticed that

this

Quoted 1 line
Quoted 1 line

functionality was put into 3.2 with fixes in 3.3. I also

saw

Quoted 2 lines
Quoted 2 lines

something
recently that indicates there might be a separate tree

where

Quoted 4 lines
Quoted 4 lines

suspend/S3
is being developed/enhanced?

I did try Xen3.3/Ubuntu8.04 and did not get host S3 to

resume

Quoted 11 lines
Quoted 9 lines

properly.
Straight Ubuntu 8.04 suspends/resumes fine.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Quoted 5 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#12 lore raw
Quoted 5 lines

I got the XCI build up and running but dom0 does not provide the functionality I am looking for. There is no ability to run X or GDM. So far the issues I am seeing with host suspend/resume seem to be graphics and SMP related, issues which XCI does not address.

So as not to risk dom0 security, we prefer X etc. in an appliance VM. You could optionally enable X in dom0 and post relevant patches though our recommendation wouldn't be to enable X in dom0.

Quoted 5 lines

I would like to get dom0 suspend/resume working with Ubuntu 8.04 or 9.04
running on top of Xen. I have used s2ram, pm-suspend and some roll-my-own scripts with less than stellar results.

I have on occasions tried host S3 on varied environments (with Xen) including the ones you mentioned and have had success with host S3, of course with appropriate tweaks.

Quoted 4 lines

The current issue I am looking at is that Xen's time is not working after resume. Both clocksource/1 and timer isr/1 print out persistent "Time went backwards" messages.

Hmm... I have seen this issue, more so with older versions of Xen. I would recommend starting a separate thread on this mentioning the version of Xen with which you now encounter this issue.

Kamala

Quoted 2 lines

- steve