Hi. I am using xen 4.2.2, the system runs okay. But when I suspend it, it does so, but crashes on trying to resume. Here is lsmod output: Module Size Used by xen_pciback 52011 0 xen_netback 27468 0 xen_blkback 26998 0 xen_gntalloc 13144 0 xen_gntdev 17403 1 xen_evtchn 13132 1 xenfs 12985 1 xen_privcmd 13177 5 xenfs parport_pc 28152 0 ppdev 17073 0 rfcomm 42641 12 bnep 18036 2 ext2 72837 1 tpm_infineon 17410 0 coretemp 13355 0 joydev 17377 0 hp_wmi 18048 0 sparse_keymap 13890 1 hp_wmi snd_hda_codec_analog 93738 1 arc4 12615 2 iwldvm 241834 0 mac80211 606457 1 iwldvm tpm_tis 18675 1 snd_hda_intel 39619 2 snd_hda_codec 136453 2 snd_hda_intel,snd_hda_codec_analog snd_hwdep 13602 1 snd_hda_codec snd_pcm 97451 2 snd_hda_codec,snd_hda_intel snd_page_alloc 18710 2 snd_pcm,snd_hda_intel snd_seq_midi 13324 0 snd_seq_midi_event 14899 1 snd_seq_midi snd_rawmidi 30180 1 snd_seq_midi hp_accel 26012 0 lis3lv02d 20111 1 hp_accel input_polldev 13896 1 lis3lv02d snd_seq 61554 2 snd_seq_midi_event,snd_seq_midi snd_seq_device 14497 3 snd_seq,snd_rawmidi,snd_seq_midi snd_timer 29425 2 snd_pcm,snd_seq mac_hid 13205 0 snd 68876 13 snd_hwdep,snd_timer,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec,snd_hda_intel,snd_seq_device,snd_hda_codec_analog iwlwifi 173477 1 iwldvm btusb 22474 0 cfg80211 510937 3 iwlwifi,mac80211,iwldvm bluetooth 228619 22 bnep,btusb,rfcomm lpc_ich 17061 0 psmouse 95870 0 soundcore 12680 1 snd mei 41158 0 serio_raw 13215 0 lp 17759 0 parport 46345 3 lp,ppdev,parport_pc microcode 22881 0 xts 12885 1 gf128mul 14951 1 xts dm_crypt 22820 1 mmc_block 27090 2 i915 600351 3 firewire_ohci 40103 0 sdhci_pci 18590 0 firewire_core 64508 1 firewire_ohci crc_itu_t 12707 1 firewire_core sdhci 32522 1 sdhci_pci i2c_algo_bit 13413 1 i915 video 19390 1 i915 wmi 19070 1 hp_wmi drm_kms_helper 49394 1 i915 ahci 25731 1 drm 286313 4 i915,drm_kms_helper libahci 31364 1 ahci pata_acpi 13038 0 e1000e 198787 0
Hi. I am using xen 4.2.2, the system runs okay. But when I suspend it, it does so, but crashes on trying to resume. Here is lsmod output: Module Size Used by xen_pciback 52011 0 xen_netback 27468 0 xen_blkback 26998 0 xen_gntalloc 13144 0 xen_gntdev 17403 1 xen_evtchn 13132 1 xenfs 12985 1 xen_privcmd 13177 5 xenfs parport_pc 28152 0 ppdev 17073 0 rfcomm 42641 12 bnep 18036 2 ext2 72837 1 tpm_infineon 17410 0 coretemp 13355 0 joydev 17377 0 hp_wmi 18048 0 sparse_keymap 13890 1 hp_wmi snd_hda_codec_analog 93738 1 arc4 12615 2 iwldvm 241834 0 mac80211 606457 1 iwldvm tpm_tis 18675 1 snd_hda_intel 39619 2 snd_hda_codec 136453 2 snd_hda_intel,snd_hda_codec_analog snd_hwdep 13602 1 snd_hda_codec snd_pcm 97451 2 snd_hda_codec,snd_hda_intel snd_page_alloc 18710 2 snd_pcm,snd_hda_intel snd_seq_midi 13324 0 snd_seq_midi_event 14899 1 snd_seq_midi snd_rawmidi 30180 1 snd_seq_midi hp_accel 26012 0 lis3lv02d 20111 1 hp_accel input_polldev 13896 1 lis3lv02d snd_seq 61554 2 snd_seq_midi_event,snd_seq_midi snd_seq_device 14497 3 snd_seq,snd_rawmidi,snd_seq_midi snd_timer 29425 2 snd_pcm,snd_seq mac_hid 13205 0 snd 68876 13 snd_hwdep,snd_timer,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec,snd_hda_intel,snd_seq_device,snd_hda_codec_analog iwlwifi 173477 1 iwldvm btusb 22474 0 cfg80211 510937 3 iwlwifi,mac80211,iwldvm bluetooth 228619 22 bnep,btusb,rfcomm lpc_ich 17061 0 psmouse 95870 0 soundcore 12680 1 snd mei 41158 0 serio_raw 13215 0 lp 17759 0 parport 46345 3 lp,ppdev,parport_pc microcode 22881 0 xts 12885 1 gf128mul 14951 1 xts dm_crypt 22820 1 mmc_block 27090 2 i915 600351 3 firewire_ohci 40103 0 sdhci_pci 18590 0 firewire_core 64508 1 firewire_ohci crc_itu_t 12707 1 firewire_core sdhci 32522 1 sdhci_pci i2c_algo_bit 13413 1 i915 video 19390 1 i915 wmi 19070 1 hp_wmi drm_kms_helper 49394 1 i915 ahci 25731 1 drm 286313 4 i915,drm_kms_helper libahci 31364 1 ahci pata_acpi 13038 0 e1000e 198787 0
On Mon, Jun 24, 2013 at 03:45:45AM +0200, Loke Bharti wrote:> Hi. I am using xen 4.2.2, the system runs okay. But when I suspend it, it does so, but crashes on trying to resume.Hey, Could you be a bit more specific please? Is this the guest? The host? How does it crash? Do you have a serial console with its output?> Here is lsmod output: > Module Size Used by > xen_pciback 52011 0 > xen_netback 27468 0 > xen_blkback 26998 0 > xen_gntalloc 13144 0 > xen_gntdev 17403 1 > xen_evtchn 13132 1 > xenfs 12985 1 > xen_privcmd 13177 5 xenfs > parport_pc 28152 0 > ppdev 17073 0 > rfcomm 42641 12 > bnep 18036 2 > ext2 72837 1 > tpm_infineon 17410 0 > coretemp 13355 0 > joydev 17377 0 > hp_wmi 18048 0 > sparse_keymap 13890 1 hp_wmi > snd_hda_codec_analog 93738 1 > arc4 12615 2 > iwldvm 241834 0 > mac80211 606457 1 iwldvm > tpm_tis 18675 1 > snd_hda_intel 39619 2 > snd_hda_codec 136453 2 snd_hda_intel,snd_hda_codec_analog > snd_hwdep 13602 1 snd_hda_codec > snd_pcm 97451 2 snd_hda_codec,snd_hda_intel > snd_page_alloc 18710 2 snd_pcm,snd_hda_intel > snd_seq_midi 13324 0 > snd_seq_midi_event 14899 1 snd_seq_midi > snd_rawmidi 30180 1 snd_seq_midi > hp_accel 26012 0 > lis3lv02d 20111 1 hp_accel > input_polldev 13896 1 lis3lv02d > snd_seq 61554 2 snd_seq_midi_event,snd_seq_midi > snd_seq_device 14497 3 snd_seq,snd_rawmidi,snd_seq_midi > snd_timer 29425 2 snd_pcm,snd_seq > mac_hid 13205 0 > snd 68876 13 snd_hwdep,snd_timer,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec,snd_hda_intel,snd_seq_device,snd_hda_codec_analog > iwlwifi 173477 1 iwldvm > btusb 22474 0 > cfg80211 510937 3 iwlwifi,mac80211,iwldvm > bluetooth 228619 22 bnep,btusb,rfcomm > lpc_ich 17061 0 > psmouse 95870 0 > soundcore 12680 1 snd > mei 41158 0 > serio_raw 13215 0 > lp 17759 0 > parport 46345 3 lp,ppdev,parport_pc > microcode 22881 0 > xts 12885 1 > gf128mul 14951 1 xts > dm_crypt 22820 1 > mmc_block 27090 2 > i915 600351 3 > firewire_ohci 40103 0 > sdhci_pci 18590 0 > firewire_core 64508 1 firewire_ohci > crc_itu_t 12707 1 firewire_core > sdhci 32522 1 sdhci_pci > i2c_algo_bit 13413 1 i915 > video 19390 1 i915 > wmi 19070 1 hp_wmi > drm_kms_helper 49394 1 i915 > ahci 25731 1 > drm 286313 4 i915,drm_kms_helper > libahci 31364 1 ahci > pata_acpi 13038 0 > e1000e 198787 0 > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel >
On Mon, Jun 24, 2013 at 03:45:45AM +0200, Loke Bharti wrote:> Hi. I am using xen 4.2.2, the system runs okay. But when I suspend it, it does so, but crashes on trying to resume.Hey, Could you be a bit more specific please? Is this the guest? The host? How does it crash? Do you have a serial console with its output?> Here is lsmod output: > Module Size Used by > xen_pciback 52011 0 > xen_netback 27468 0 > xen_blkback 26998 0 > xen_gntalloc 13144 0 > xen_gntdev 17403 1 > xen_evtchn 13132 1 > xenfs 12985 1 > xen_privcmd 13177 5 xenfs > parport_pc 28152 0 > ppdev 17073 0 > rfcomm 42641 12 > bnep 18036 2 > ext2 72837 1 > tpm_infineon 17410 0 > coretemp 13355 0 > joydev 17377 0 > hp_wmi 18048 0 > sparse_keymap 13890 1 hp_wmi > snd_hda_codec_analog 93738 1 > arc4 12615 2 > iwldvm 241834 0 > mac80211 606457 1 iwldvm > tpm_tis 18675 1 > snd_hda_intel 39619 2 > snd_hda_codec 136453 2 snd_hda_intel,snd_hda_codec_analog > snd_hwdep 13602 1 snd_hda_codec > snd_pcm 97451 2 snd_hda_codec,snd_hda_intel > snd_page_alloc 18710 2 snd_pcm,snd_hda_intel > snd_seq_midi 13324 0 > snd_seq_midi_event 14899 1 snd_seq_midi > snd_rawmidi 30180 1 snd_seq_midi > hp_accel 26012 0 > lis3lv02d 20111 1 hp_accel > input_polldev 13896 1 lis3lv02d > snd_seq 61554 2 snd_seq_midi_event,snd_seq_midi > snd_seq_device 14497 3 snd_seq,snd_rawmidi,snd_seq_midi > snd_timer 29425 2 snd_pcm,snd_seq > mac_hid 13205 0 > snd 68876 13 snd_hwdep,snd_timer,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec,snd_hda_intel,snd_seq_device,snd_hda_codec_analog > iwlwifi 173477 1 iwldvm > btusb 22474 0 > cfg80211 510937 3 iwlwifi,mac80211,iwldvm > bluetooth 228619 22 bnep,btusb,rfcomm > lpc_ich 17061 0 > psmouse 95870 0 > soundcore 12680 1 snd > mei 41158 0 > serio_raw 13215 0 > lp 17759 0 > parport 46345 3 lp,ppdev,parport_pc > microcode 22881 0 > xts 12885 1 > gf128mul 14951 1 xts > dm_crypt 22820 1 > mmc_block 27090 2 > i915 600351 3 > firewire_ohci 40103 0 > sdhci_pci 18590 0 > firewire_core 64508 1 firewire_ohci > crc_itu_t 12707 1 firewire_core > sdhci 32522 1 sdhci_pci > i2c_algo_bit 13413 1 i915 > video 19390 1 i915 > wmi 19070 1 hp_wmi > drm_kms_helper 49394 1 i915 > ahci 25731 1 > drm 286313 4 i915,drm_kms_helper > libahci 31364 1 ahci > pata_acpi 13038 0 > e1000e 198787 0 > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel >
Konrad Rzeszutek Wilk
2013-Jun-25 14:11 UTC
ACPI S3 resume with Xen and Linux not working (will work in Linux v3.11) Was: Re: Re: crash on resume after suspend
On Tue, Jun 25, 2013 at 09:15:08AM +0200, Loke Bharti wrote:> Sorry, I wasn''t specific. It is the host. And the system is a Ubuntu 13.04 x64 with xen 4.2.2 compiled from source. The system suspends just fine, but fails to do so when done after booting with xen. I don''t know how to get serial console after a resume crash. >CC-ing xen-devel back. Please don''t drop that.> The system suspends as it should, but resets when resume is triggered. On resume, no display comes up, but the hard drive indicator ticks once, and then the system resets. Being a laptop it is necessary to be able to be suspended. VT-d is enabled. > > I had tried qubes os, which is based on xen, and that used to suspend just fine, though I could never boot with Virtualization enabled. Probably some kernel flag, but I want to the achieve the same feat using an Ubuntu system. > > Because the system resets, there is no log of resume, as far as I could see. There is a log, when the resume has succeeded, but that won''t help. When booted with xen, the loaded modules of course include xen-specific modules, but the kvm modules are missing, which are loaded when without xen. > > But I suppose, we would need resume log to be able to troubleshoot. How should I get it?ACPI S3 resume is not yet working (but will with Linux 3.11) b/c the patches to allow that functionality had not been merged upstream.> > > Gesendet: Montag, 24. Juni 2013 um 15:52 Uhr > > Von: "Konrad Rzeszutek Wilk" <konrad.wilk@oracle.com> > > An: "Loke Bharti" <lbharti@gmx.de> > > Cc: xen-users@lists.xen.org, xen-devel@lists.xen.org > > Betreff: Re: [Xen-devel] crash on resume after suspend > > > > On Mon, Jun 24, 2013 at 03:45:45AM +0200, Loke Bharti wrote: > > > Hi. I am using xen 4.2.2, the system runs okay. But when I suspend it, it does so, but crashes on trying to resume. > > > > Hey, > > > > Could you be a bit more specific please? Is this the guest? > > The host? How does it crash? Do you have a serial console with > > its output? > > > > > Here is lsmod output: > > > Module Size Used by > > > xen_pciback 52011 0 > > > xen_netback 27468 0 > > > xen_blkback 26998 0 > > > xen_gntalloc 13144 0 > > > xen_gntdev 17403 1 > > > xen_evtchn 13132 1 > > > xenfs 12985 1 > > > xen_privcmd 13177 5 xenfs > > > parport_pc 28152 0 > > > ppdev 17073 0 > > > rfcomm 42641 12 > > > bnep 18036 2 > > > ext2 72837 1 > > > tpm_infineon 17410 0 > > > coretemp 13355 0 > > > joydev 17377 0 > > > hp_wmi 18048 0 > > > sparse_keymap 13890 1 hp_wmi > > > snd_hda_codec_analog 93738 1 > > > arc4 12615 2 > > > iwldvm 241834 0 > > > mac80211 606457 1 iwldvm > > > tpm_tis 18675 1 > > > snd_hda_intel 39619 2 > > > snd_hda_codec 136453 2 snd_hda_intel,snd_hda_codec_analog > > > snd_hwdep 13602 1 snd_hda_codec > > > snd_pcm 97451 2 snd_hda_codec,snd_hda_intel > > > snd_page_alloc 18710 2 snd_pcm,snd_hda_intel > > > snd_seq_midi 13324 0 > > > snd_seq_midi_event 14899 1 snd_seq_midi > > > snd_rawmidi 30180 1 snd_seq_midi > > > hp_accel 26012 0 > > > lis3lv02d 20111 1 hp_accel > > > input_polldev 13896 1 lis3lv02d > > > snd_seq 61554 2 snd_seq_midi_event,snd_seq_midi > > > snd_seq_device 14497 3 snd_seq,snd_rawmidi,snd_seq_midi > > > snd_timer 29425 2 snd_pcm,snd_seq > > > mac_hid 13205 0 > > > snd 68876 13 snd_hwdep,snd_timer,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec,snd_hda_intel,snd_seq_device,snd_hda_codec_analog > > > iwlwifi 173477 1 iwldvm > > > btusb 22474 0 > > > cfg80211 510937 3 iwlwifi,mac80211,iwldvm > > > bluetooth 228619 22 bnep,btusb,rfcomm > > > lpc_ich 17061 0 > > > psmouse 95870 0 > > > soundcore 12680 1 snd > > > mei 41158 0 > > > serio_raw 13215 0 > > > lp 17759 0 > > > parport 46345 3 lp,ppdev,parport_pc > > > microcode 22881 0 > > > xts 12885 1 > > > gf128mul 14951 1 xts > > > dm_crypt 22820 1 > > > mmc_block 27090 2 > > > i915 600351 3 > > > firewire_ohci 40103 0 > > > sdhci_pci 18590 0 > > > firewire_core 64508 1 firewire_ohci > > > crc_itu_t 12707 1 firewire_core > > > sdhci 32522 1 sdhci_pci > > > i2c_algo_bit 13413 1 i915 > > > video 19390 1 i915 > > > wmi 19070 1 hp_wmi > > > drm_kms_helper 49394 1 i915 > > > ahci 25731 1 > > > drm 286313 4 i915,drm_kms_helper > > > libahci 31364 1 ahci > > > pata_acpi 13038 0 > > > e1000e 198787 0 > > > > > > _______________________________________________ > > > Xen-devel mailing list > > > Xen-devel@lists.xen.org > > > http://lists.xen.org/xen-devel > > > > >
Cui, Dexuan
2013-Jun-26 08:47 UTC
Re: ACPI S3 resume with Xen and Linux not working (will work in Linux v3.11) Was: Re: Re: crash on resume after suspend
Konrad Rzeszutek Wilk wrote on 2013-06-25:> ACPI S3 resume is not yet working (but will with Linux 3.11) b/c the > patches to allow that functionality had not been merged upstream.Hi Konrad, Do you imply your own tree(which branch?) (http://git.kernel.org/cgit/linux/kernel/git/konrad/xen.git) can work with Dom0 S3? Where are the patches to support Dom0 S3? I''d like to try them. I see there is a branch devel/acpi-s3.v10 in the tree, but I''m not sure if you meant it. Thanks, -- Dexuan
Konrad Rzeszutek Wilk
2013-Jun-26 13:13 UTC
Re: ACPI S3 resume with Xen and Linux not working (will work in Linux v3.11) Was: Re: Re: crash on resume after suspend
On Wed, Jun 26, 2013 at 08:47:43AM +0000, Cui, Dexuan wrote:> Konrad Rzeszutek Wilk wrote on 2013-06-25: > > ACPI S3 resume is not yet working (but will with Linux 3.11) b/c the > > patches to allow that functionality had not been merged upstream. > Hi Konrad, > Do you imply your own tree(which branch?) > (http://git.kernel.org/cgit/linux/kernel/git/konrad/xen.git) > can work with Dom0 S3? > Where are the patches to support Dom0 S3? I''d like to try them. > I see there is a branch devel/acpi-s3.v10 in the tree, but I''m not sure if you meant it.git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next or bleeding-edge You want to make sure these show up 068e0dc xen / ACPI / sleep: Register an acpi_suspend_lowlevel callback. d6a77ea x86 / ACPI / sleep: Provide registration for acpi_suspend_lowlevel.> > Thanks, > -- Dexuan > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel >
Cui, Dexuan
2013-Jun-28 11:27 UTC
Re: ACPI S3 resume with Xen and Linux not working (will work in Linux v3.11) Was: Re: Re: crash on resume after suspend
Konrad Rzeszutek Wilk wrote on 2013-06-26:> On Wed, Jun 26, 2013 at 08:47:43AM +0000, Cui, Dexuan wrote: >> Konrad Rzeszutek Wilk wrote on 2013-06-25: >>> ACPI S3 resume is not yet working (but will with Linux 3.11) b/c the >>> patches to allow that functionality had not been merged upstream. >> Hi Konrad, >> Do you imply your own tree(which branch?) >> (http://git.kernel.org/cgit/linux/kernel/git/konrad/xen.git) >> can work with Dom0 S3? >> Where are the patches to support Dom0 S3? I''d like to try them. >> I see there is a branch devel/acpi-s3.v10 in the tree, but I''m not sure if > you meant it. > > git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next > or bleeding-edge > > You want to make sure these show up > > 068e0dc xen / ACPI / sleep: Register an acpi_suspend_lowlevel callback. > d6a77ea x86 / ACPI / sleep: Provide registration for > acpi_suspend_lowlevel. >Hi Konrad, Thanks for the information! I''m using Xen-4.2.1 + Linux 3.8.8 and Dom0 S3 has such an issue: root@cui:~# echo mem > /sys/power/state [ 110.081175] PM: Syncing filesystems ... done. [ 110.214943] PM: Preparing system for mem sleep [ 110.373683] Freezing user space processes ... (elapsed 0.01 seconds) done. [ 110.394387] Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done. [ 110.414600] PM: Entering mem sleep [ 110.419293] Suspending console(s) (use no_console_suspend to debug) (XEN) Preparing system for ACPI S3 state. (XEN) Disabling non-boot CPUs ... (XEN) Broke affinity for irq 8 (XEN) Broke affinity for irq 16 (XEN) Broke affinity for irq 23 (XEN) Broke affinity for irq 27 (XEN) Broke affinity for irq 8 (XEN) Broke affinity for irq 1 (XEN) Broke affinity for irq 8 (XEN) Broke affinity for irq 9 (XEN) Broke affinity for irq 26 (XEN) Broke affinity for irq 28 (XEN) Broke affinity for irq 1 (XEN) Broke affinity for irq 8 (XEN) Entering ACPI S3 state. (XEN) mce_intel.c:1239: MCA Capability: BCAST 1 SER 0 CMCI 1 firstbank 0 extended MCE MSR 0 (XEN) CPU0 CMCI LVT vector (0xf2) already installed (XEN) Finishing wakeup from ACPI S3 state. (XEN) Enabling non-boot CPUs ... (XEN) Domain 0 crashed: ''noreboot'' set - not rebooting. After cherry-picking the 2 commits you mentioned(looks I need pick More commits?), I still get the same crash log. I''m going to dig into this and appreciate any related information! Thanks, -- Dexuan
Pasi Kärkkäinen
2013-Jun-28 11:55 UTC
Re: ACPI S3 resume with Xen and Linux not working (will work in Linux v3.11) Was: Re: Re: crash on resume after suspend
On Fri, Jun 28, 2013 at 11:27:28AM +0000, Cui, Dexuan wrote:> Konrad Rzeszutek Wilk wrote on 2013-06-26: > > On Wed, Jun 26, 2013 at 08:47:43AM +0000, Cui, Dexuan wrote: > >> Konrad Rzeszutek Wilk wrote on 2013-06-25: > >>> ACPI S3 resume is not yet working (but will with Linux 3.11) b/c the > >>> patches to allow that functionality had not been merged upstream. > >> Hi Konrad, > >> Do you imply your own tree(which branch?) > >> (http://git.kernel.org/cgit/linux/kernel/git/konrad/xen.git) > >> can work with Dom0 S3? > >> Where are the patches to support Dom0 S3? I''d like to try them. > >> I see there is a branch devel/acpi-s3.v10 in the tree, but I''m not sure if > > you meant it. > > > > git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next > > or bleeding-edge > > > > You want to make sure these show up > > > > 068e0dc xen / ACPI / sleep: Register an acpi_suspend_lowlevel callback. > > d6a77ea x86 / ACPI / sleep: Provide registration for > > acpi_suspend_lowlevel. > > > Hi Konrad, > Thanks for the information! > > I''m using Xen-4.2.1 + Linux 3.8.8 and Dom0 S3 has such an issue: >Afaik for ACPI S3 to work you need Xen 4.2.3 (so currently 4.2.2 + a couple of patches from stable-4.2 branch): http://xenbits.xen.org/gitweb/?p=xen.git;a=shortlog;h=refs/heads/stable-4.2 These are the post 4.2.2 fixes for ACPI S3: http://xenbits.xen.org/gitweb/?p=xen.git;a=commit;h=7fe762b3f06f0e81ce5b3456dc61fc004562ef21 http://xenbits.xen.org/gitweb/?p=xen.git;a=commit;h=2dd5ee75cdc3101b7a90c8482a27d8cc990dd46d> > I''m going to dig into this and appreciate any related information! >Not sure if your issue is related to those missing hypervisor patches.. worth checking. -- Pasi
Ben Guthro
2013-Jun-28 12:28 UTC
Re: ACPI S3 resume with Xen and Linux not working (will work in Linux v3.11) Was: Re: Re: crash on resume after suspend
On Fri, Jun 28, 2013 at 7:55 AM, Pasi Kärkkäinen <pasik@iki.fi> wrote:> On Fri, Jun 28, 2013 at 11:27:28AM +0000, Cui, Dexuan wrote: >> Konrad Rzeszutek Wilk wrote on 2013-06-26: >> > On Wed, Jun 26, 2013 at 08:47:43AM +0000, Cui, Dexuan wrote: >> >> Konrad Rzeszutek Wilk wrote on 2013-06-25: >> >>> ACPI S3 resume is not yet working (but will with Linux 3.11) b/c the >> >>> patches to allow that functionality had not been merged upstream. >> >> Hi Konrad, >> >> Do you imply your own tree(which branch?) >> >> (http://git.kernel.org/cgit/linux/kernel/git/konrad/xen.git) >> >> can work with Dom0 S3? >> >> Where are the patches to support Dom0 S3? I''d like to try them. >> >> I see there is a branch devel/acpi-s3.v10 in the tree, but I''m not sure if >> > you meant it. >> > >> > git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next >> > or bleeding-edge >> > >> > You want to make sure these show up >> > >> > 068e0dc xen / ACPI / sleep: Register an acpi_suspend_lowlevel callback. >> > d6a77ea x86 / ACPI / sleep: Provide registration for >> > acpi_suspend_lowlevel. >> > >> Hi Konrad, >> Thanks for the information! >> >> I''m using Xen-4.2.1 + Linux 3.8.8 and Dom0 S3 has such an issue: >> > > Afaik for ACPI S3 to work you need Xen 4.2.3 (so currently 4.2.2 + a couple of patches from stable-4.2 branch): > > http://xenbits.xen.org/gitweb/?p=xen.git;a=shortlog;h=refs/heads/stable-4.2 > > These are the post 4.2.2 fixes for ACPI S3: > http://xenbits.xen.org/gitweb/?p=xen.git;a=commit;h=7fe762b3f06f0e81ce5b3456dc61fc004562ef21 > http://xenbits.xen.org/gitweb/?p=xen.git;a=commit;h=2dd5ee75cdc3101b7a90c8482a27d8cc990dd46d >The first is necessary, the second is not. However, linux 3.8.8 will not work out of the box - you need to apply the changes Konrad pointed out, or else the machine will go to sleep, but never wake up.> >> >> I''m going to dig into this and appreciate any related information! >> > > Not sure if your issue is related to those missing hypervisor patches.. worth checking. > > -- Pasi > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel
Cui, Dexuan
2013-Jun-28 14:44 UTC
Re: ACPI S3 resume with Xen and Linux not working (will work in Linux v3.11) Was: Re: Re: crash on resume after suspend
Ben Guthro wrote on 2013-06-28:> On Fri, Jun 28, 2013 at 7:55 AM, Pasi Kärkkäinen <pasik@iki.fi> wrote: >> On Fri, Jun 28, 2013 at 11:27:28AM +0000, Cui, Dexuan wrote: >>> Konrad Rzeszutek Wilk wrote on 2013-06-26: >>>> On Wed, Jun 26, 2013 at 08:47:43AM +0000, Cui, Dexuan wrote: >>>>> Konrad Rzeszutek Wilk wrote on 2013-06-25: >>>>>> ACPI S3 resume is not yet working (but will with Linux 3.11) b/c the >>>>>> patches to allow that functionality had not been merged upstream. >>>>> Hi Konrad, >>>>> Do you imply your own tree(which branch?) >>>>> (http://git.kernel.org/cgit/linux/kernel/git/konrad/xen.git) >>>>> can work with Dom0 S3? >>>>> Where are the patches to support Dom0 S3? I''d like to try them. >>>>> I see there is a branch devel/acpi-s3.v10 in the tree, but I''m not sure > if >>>> you meant it. >>>> >>>> git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git >>>> linux-next or bleeding-edge >>>> >>>> You want to make sure these show up >>>> >>>> 068e0dc xen / ACPI / sleep: Register an acpi_suspend_lowlevel >>>> callback. d6a77ea x86 / ACPI / sleep: Provide registration for >>>> acpi_suspend_lowlevel. >>>> >>> Hi Konrad, >>> Thanks for the information! >>> >>> I''m using Xen-4.2.1 + Linux 3.8.8 and Dom0 S3 has such an issue: >>> >> >> Afaik for ACPI S3 to work you need Xen 4.2.3 (so currently 4.2.2 + a >> couple of patches from stable-4.2 branch): >> >> > http://xenbits.xen.org/gitweb/?p=xen.git;a=shortlog;h=refs/heads/stable-4 > .2 >> >> These are the post 4.2.2 fixes for ACPI S3: >> > http://xenbits.xen.org/gitweb/?p=xen.git;a=commit;h=7fe762b3f06f0e81ce > 5b3456dc61fc004562ef21 >> > http://xenbits.xen.org/gitweb/?p=xen.git;a=commit;h=2dd5ee75cdc3101b7 > a90c8482a27d8cc990dd46d >> > > The first is necessary, the second is not. > > However, linux 3.8.8 will not work out of the box - you need to apply > the changes Konrad pointed out, or else the machine will go to sleep, > but never wake up.Hi Ben, Pasi, thank you both very much for the info! Next week, I''ll try the latest xen 4.2 stable repo and latest upstream Linux 3.9.8 plus the 2 commits((or more?) Konrad pointed out. I hope it can work, then I can port the related patches to my specific Xen/linux versions(I have to use the versions for some reason). Thanks, -- Dexuan
Cui, Dexuan
2013-Jul-02 01:50 UTC
Re: ACPI S3 resume with Xen and Linux not working (will work in Linux v3.11) Was: Re: Re: crash on resume after suspend
Cui, Dexuan wrote on 2013-06-28:> Ben Guthro wrote on 2013-06-28: >> On Fri, Jun 28, 2013 at 7:55 AM, Pasi Kärkkäinen <pasik@iki.fi> wrote: >>> On Fri, Jun 28, 2013 at 11:27:28AM +0000, Cui, Dexuan wrote: >>>> Konrad Rzeszutek Wilk wrote on 2013-06-26: >>>>> On Wed, Jun 26, 2013 at 08:47:43AM +0000, Cui, Dexuan wrote: >>>>>> Konrad Rzeszutek Wilk wrote on 2013-06-25: >>>>>>> ACPI S3 resume is not yet working (but will with Linux 3.11) b/c the >>>>>>> patches to allow that functionality had not been merged > upstream. >>>>>> Hi Konrad, >>>>>> Do you imply your own tree(which branch?) >>>>>> (http://git.kernel.org/cgit/linux/kernel/git/konrad/xen.git) >>>>>> can work with Dom0 S3? >>>>>> Where are the patches to support Dom0 S3? I''d like to try them. >>>>>> I see there is a branch devel/acpi-s3.v10 in the tree, but I''m not sure >> if >>>>> you meant it. >>>>> >>>>> git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git >>>>> linux-next or bleeding-edge >>>>> >>>>> You want to make sure these show up >>>>> >>>>> 068e0dc xen / ACPI / sleep: Register an acpi_suspend_lowlevel >>>>> callback. d6a77ea x86 / ACPI / sleep: Provide registration for >>>>> acpi_suspend_lowlevel. >>>>> >>>> Hi Konrad, >>>> Thanks for the information! >>>> >>>> I''m using Xen-4.2.1 + Linux 3.8.8 and Dom0 S3 has such an issue: >>>> >>> >>> Afaik for ACPI S3 to work you need Xen 4.2.3 (so currently 4.2.2 + a >>> couple of patches from stable-4.2 branch): >>> >>> >> >> http://xenbits.xen.org/gitweb/?p=xen.git;a=shortlog;h=refs/heads/stable- >> 4 .2 >>> >>> These are the post 4.2.2 fixes for ACPI S3: >>> >> >> http://xenbits.xen.org/gitweb/?p=xen.git;a=commit;h=7fe762b3f06f0e81ce >> 5b3456dc61fc004562ef21 >>> >> >> http://xenbits.xen.org/gitweb/?p=xen.git;a=commit;h=2dd5ee75cdc3101b7 >> a90c8482a27d8cc990dd46d >>> >> >> The first is necessary, the second is not. >> >> However, linux 3.8.8 will not work out of the box - you need to apply >> the changes Konrad pointed out, or else the machine will go to sleep, >> but never wake up. > Hi Ben, Pasi, thank you both very much for the info! > > Next week, I''ll try the latest xen 4.2 stable repo and latest upstream > Linux 3.9.8 plus the 2 commits((or more?) Konrad pointed out. > I hope it can work, then I can port the related patches to my specific > Xen/linux versions(I have to use the versions for some reason). >FYI: My xen 4.2.1 + picking the following 3 commits can make Dom0 S3 work: http://xenbits.xen.org/gitweb/?p=xen.git;a=commit;h=2ea6abb8e60cf557b20b8a9904deb73433103d9b http://xenbits.xen.org/gitweb/?p=xen.git;a=commit;h=77cb78851429a5a8509e3dfed466b2580ad5c60d http://xenbits.xen.org/gitweb/?p=xen.git;a=commit;h=7fe762b3f06f0e81ce5b3456dc61fc004562ef21 (Surely I also need to apply the 2 commits mentioned by Konrad to my Linux 3.8.8). Thanks, -- Dexuan