TonyHo
2015-04-23 10:37:13 UTC
Hi,
I want the linux system keep working instead of power down after
saving the hibernation image, how can I do it? I know I must avoid to
write the filesystem.
I have tried to change the 'return do_post_image_write()' to
'return 0' in do_toi_step function from tuxonice_highlevel.c , but it
would cause the system to panic when I use the ls command. Below is the
log and modification:
①Modification in function do_toi_step from tuxonice_highlevel.c:
case STEP_HIBERNATE_POWERDOWN:
printk(KERN_ERR "TuxOnIce: STEP_HIBERNATE_POWERDOWN.\n");
return 0;
//return do_post_image_write();
②Panic Logs:
[ 22.132978] Writing caches...
[ 22.138184] ...20%...40%...60%...80%
[ 22.144216] Waited for i/o due to synchronous I/O 4 times.
[ 22.149755] Doing atomic copy/restore.
[ 22.153509] Enter the Hibernation [imx6_hibernation_begin]
[ 22.160425] USB Host suspend begins
[ 22.163921] ehci_fsl_drv_suspend, pm event
[ 22.168243] host suspend ends
[ 22.171223] udc suspend begins
[ 22.174283] USB Host suspend begins
[ 22.177786] ehci_fsl_drv_suspend, pm event
[ 22.182280] host suspend ends
[ 22.186162] PM: freeze of devices complete after 27.144 msecs
[ 22.192797] PM: late freeze of devices complete after 0.853 msecs
[ 22.198918] Enter the Hibernation [imx6_hibernation_pre_snapshot]
[ 22.205475] Disabling non-boot CPUs ...
[ 22.220255] CPU1: shutdown
[ 22.660808] Enabling non-boot CPUs ...
[ 22.685774] CPU1: Booted secondary processor
[ 22.685794] Calibrating delay loop (skipped) already calibrated this CPU
[ 22.686133] i.MXC CPU frequency driver
[ 22.700927] CPU1 is up
[ 22.703292] Enter the Hibernation [imx6_hibernation_finish]
[ 22.709558] PM: early thaw of devices complete after 0.666 msecs
[ 22.716183] imx-ipuv3 imx-ipuv3.0: IPU DMFC NORMAL mode: 1(0~1),
5B(4,5), 5F(6,7)
[ 23.047935] imx-sdma imx-sdma: loaded firmware 1.1
[ 23.052853] ehci fsl drv resume begins: DR
[ 23.056973] ehci_fsl_drv_resume,pm event, wait for wakeup irq if needed
[ 23.063624] USB Gadget resume begins
[ 23.063646] ehci_fsl_bus_resume begins, DR
[ 23.071295] fsl_udc_resume, Wait for wakeup thread finishes
[ 23.076887] ehci fsl drv resume begins: Host 1
[ 23.081333] ehci_fsl_drv_resume,pm event, wait for wakeup irq if needed
[ 23.087995] ehci_fsl_bus_resume begins, Host 1
[ 23.088576] ehci_fsl_bus_resume ends, DR
[ 23.113616] ehci_fsl_bus_resume ends, Host 1
[ 23.133822] PM: thaw of devices complete after 417.980 msecs
[ 23.139994] Enter the Hibernation [imx6_hibernation_end]
[ 23.145337] Post atomic.
[ 23.147882] Writing kernel & process data...
[ 23.348615] ...20%...40%...60%...80%
[ 23.795914] TuxOnIce: STEP_HIBERNATE_POWERDOWN.
[ 23.800454] Cleaning up...
[ 23.806806] Restarting all filesystems ...
[ 23.812761] Restarting tasks ... done.
[ 23.820325] TuxOnIce debugging info:
[ 23.820332] - TuxOnIce core : 3.2
[ 23.820336] - Kernel Version : 3.0.35
[ 23.820339] - Compiler vers. : 4.6
[ 23.820343] - Attempt number : 1
[ 23.820346] - Parameters : 0 667648 0 0 -2 0
[ 23.820350] - Overall expected compression percentage: 0.
[ 23.820355] - Compressor is 'lzo'.
[ 23.820359] Compressed 58949632 bytes into 12746060 (78 percent
compression).
[ 23.820365] - Block I/O active.
[ 23.820368] Used 3165 pages from swap on /dev/rb.
[ 23.820373] - Max outstanding reads 1. Max writes 1.
[ 23.820377] Memory_needed: 1024 x (4096 + 232 + 72) = 4505600 bytes.
[ 23.820383] Free mem throttle point reached 0.
[ 23.820387] - Swap Allocator enabled.
[ 23.820391] Swap available for image: 65535 pages.
[ 23.820395] - File Allocator active.
[ 23.820399] Storage available for image: 0 pages.
[ 23.820403] - I/O speed: Write 87224 KB/s.
[ 23.820407] - Extra pages : 0 used/2000.
[ 23.820411] - Result : Succeeded.
/ #
/ # [ 25.813631] ehci_fsl_bus_suspend begins, DR
[ 25.818063] ehci_fsl_bus_suspend ends, DR
[ 25.822090] ehci_fsl_bus_suspend begins, Host 1
[ 25.826656] ehci_fsl_bus_suspend ends, Host 1
/ #
/ # [ 81.505703] ehci_fsl_bus_resume begins, DR
[ 81.525366] ehci_fsl_bus_resume ends, DR
[ 81.775098] usb 1-1: new high speed USB device number 2 using fsl-ehci
[ 81.930654] usb 1-1: device v0951 p1643 is not supported
/ # ls /dev/rb
/dev/rb[ 101.183753] Kernel panic - not syncing: Attempted to kill init!
[ 101.189720] [<8003e1c0>] (unwind_backtrace+0x0/0xf8) from
[<803c660c>] (panic+0x74/0x18c)
[ 101.197938] [<803c660c>] (panic+0x74/0x18c) from [<800701c0>]
(do_exit+0x640/0x6f4)
[ 101.205622] [<800701c0>] (do_exit+0x640/0x6f4) from [<800704d0>]
(do_group_exit+0x3c/0xbc)
[ 101.213913] [<800704d0>] (do_group_exit+0x3c/0xbc) from [<8007b578>]
(get_signal_to_deliver+0x270/0x3ec)
[ 101.223407] [<8007b578>] (get_signal_to_deliver+0x270/0x3ec) from
[<800399b8>] (do_signal+0x90/0x4d0)
[ 101.232650] [<800399b8>] (do_signal+0x90/0x4d0) from [<8003a36c>]
(do_notify_resume+0x38/0x44)
[ 101.241297] [<8003a36c>] (do_notify_resume+0x38/0x44) from
[<80037098>] (work_pending+0x24/0x28)
[ 101.250112] CPU1: stopping
[ 101.252837] [<8003e1c0>] (unwind_backtrace+0x0/0xf8) from
[<800313a8>] (do_IPI+0x1d4/0x208)
[ 101.261202] [<800313a8>] (do_IPI+0x1d4/0x208) from [<80036a8c>]
(__irq_svc+0x4c/0xe8)
[ 101.269028] Exception stack(0x9a06bf90 to 0x9a06bfd8)
[ 101.274085] bf80: 8056bd60
80000093 00000001 00000000
[ 101.282270] bfa0: 9a06a000 80547a04 803ce5e0 80521704 1000406a
412fc09a 00000000 00000000
[ 101.290445] bfc0: 00000000 9a06bfd8 800460a8 80037b84 40000013 ffffffff
[ 101.297073] [<80036a8c>] (__irq_svc+0x4c/0xe8) from [<80037b84>]
(default_idle+0x24/0x28)
[ 101.305263] [<80037b84>] (default_idle+0x24/0x28) from [<80037e90>]
(cpu_idle+0xc8/0x108)
[ 101.313451] [<80037e90>] (cpu_idle+0xc8/0x108) from [<103c2d74>]
(0x103c2d74)
I want the linux system keep working instead of power down after
saving the hibernation image, how can I do it? I know I must avoid to
write the filesystem.
I have tried to change the 'return do_post_image_write()' to
'return 0' in do_toi_step function from tuxonice_highlevel.c , but it
would cause the system to panic when I use the ls command. Below is the
log and modification:
①Modification in function do_toi_step from tuxonice_highlevel.c:
case STEP_HIBERNATE_POWERDOWN:
printk(KERN_ERR "TuxOnIce: STEP_HIBERNATE_POWERDOWN.\n");
return 0;
//return do_post_image_write();
②Panic Logs:
[ 22.132978] Writing caches...
[ 22.138184] ...20%...40%...60%...80%
[ 22.144216] Waited for i/o due to synchronous I/O 4 times.
[ 22.149755] Doing atomic copy/restore.
[ 22.153509] Enter the Hibernation [imx6_hibernation_begin]
[ 22.160425] USB Host suspend begins
[ 22.163921] ehci_fsl_drv_suspend, pm event
[ 22.168243] host suspend ends
[ 22.171223] udc suspend begins
[ 22.174283] USB Host suspend begins
[ 22.177786] ehci_fsl_drv_suspend, pm event
[ 22.182280] host suspend ends
[ 22.186162] PM: freeze of devices complete after 27.144 msecs
[ 22.192797] PM: late freeze of devices complete after 0.853 msecs
[ 22.198918] Enter the Hibernation [imx6_hibernation_pre_snapshot]
[ 22.205475] Disabling non-boot CPUs ...
[ 22.220255] CPU1: shutdown
[ 22.660808] Enabling non-boot CPUs ...
[ 22.685774] CPU1: Booted secondary processor
[ 22.685794] Calibrating delay loop (skipped) already calibrated this CPU
[ 22.686133] i.MXC CPU frequency driver
[ 22.700927] CPU1 is up
[ 22.703292] Enter the Hibernation [imx6_hibernation_finish]
[ 22.709558] PM: early thaw of devices complete after 0.666 msecs
[ 22.716183] imx-ipuv3 imx-ipuv3.0: IPU DMFC NORMAL mode: 1(0~1),
5B(4,5), 5F(6,7)
[ 23.047935] imx-sdma imx-sdma: loaded firmware 1.1
[ 23.052853] ehci fsl drv resume begins: DR
[ 23.056973] ehci_fsl_drv_resume,pm event, wait for wakeup irq if needed
[ 23.063624] USB Gadget resume begins
[ 23.063646] ehci_fsl_bus_resume begins, DR
[ 23.071295] fsl_udc_resume, Wait for wakeup thread finishes
[ 23.076887] ehci fsl drv resume begins: Host 1
[ 23.081333] ehci_fsl_drv_resume,pm event, wait for wakeup irq if needed
[ 23.087995] ehci_fsl_bus_resume begins, Host 1
[ 23.088576] ehci_fsl_bus_resume ends, DR
[ 23.113616] ehci_fsl_bus_resume ends, Host 1
[ 23.133822] PM: thaw of devices complete after 417.980 msecs
[ 23.139994] Enter the Hibernation [imx6_hibernation_end]
[ 23.145337] Post atomic.
[ 23.147882] Writing kernel & process data...
[ 23.348615] ...20%...40%...60%...80%
[ 23.795914] TuxOnIce: STEP_HIBERNATE_POWERDOWN.
[ 23.800454] Cleaning up...
[ 23.806806] Restarting all filesystems ...
[ 23.812761] Restarting tasks ... done.
[ 23.820325] TuxOnIce debugging info:
[ 23.820332] - TuxOnIce core : 3.2
[ 23.820336] - Kernel Version : 3.0.35
[ 23.820339] - Compiler vers. : 4.6
[ 23.820343] - Attempt number : 1
[ 23.820346] - Parameters : 0 667648 0 0 -2 0
[ 23.820350] - Overall expected compression percentage: 0.
[ 23.820355] - Compressor is 'lzo'.
[ 23.820359] Compressed 58949632 bytes into 12746060 (78 percent
compression).
[ 23.820365] - Block I/O active.
[ 23.820368] Used 3165 pages from swap on /dev/rb.
[ 23.820373] - Max outstanding reads 1. Max writes 1.
[ 23.820377] Memory_needed: 1024 x (4096 + 232 + 72) = 4505600 bytes.
[ 23.820383] Free mem throttle point reached 0.
[ 23.820387] - Swap Allocator enabled.
[ 23.820391] Swap available for image: 65535 pages.
[ 23.820395] - File Allocator active.
[ 23.820399] Storage available for image: 0 pages.
[ 23.820403] - I/O speed: Write 87224 KB/s.
[ 23.820407] - Extra pages : 0 used/2000.
[ 23.820411] - Result : Succeeded.
/ #
/ # [ 25.813631] ehci_fsl_bus_suspend begins, DR
[ 25.818063] ehci_fsl_bus_suspend ends, DR
[ 25.822090] ehci_fsl_bus_suspend begins, Host 1
[ 25.826656] ehci_fsl_bus_suspend ends, Host 1
/ #
/ # [ 81.505703] ehci_fsl_bus_resume begins, DR
[ 81.525366] ehci_fsl_bus_resume ends, DR
[ 81.775098] usb 1-1: new high speed USB device number 2 using fsl-ehci
[ 81.930654] usb 1-1: device v0951 p1643 is not supported
/ # ls /dev/rb
/dev/rb[ 101.183753] Kernel panic - not syncing: Attempted to kill init!
[ 101.189720] [<8003e1c0>] (unwind_backtrace+0x0/0xf8) from
[<803c660c>] (panic+0x74/0x18c)
[ 101.197938] [<803c660c>] (panic+0x74/0x18c) from [<800701c0>]
(do_exit+0x640/0x6f4)
[ 101.205622] [<800701c0>] (do_exit+0x640/0x6f4) from [<800704d0>]
(do_group_exit+0x3c/0xbc)
[ 101.213913] [<800704d0>] (do_group_exit+0x3c/0xbc) from [<8007b578>]
(get_signal_to_deliver+0x270/0x3ec)
[ 101.223407] [<8007b578>] (get_signal_to_deliver+0x270/0x3ec) from
[<800399b8>] (do_signal+0x90/0x4d0)
[ 101.232650] [<800399b8>] (do_signal+0x90/0x4d0) from [<8003a36c>]
(do_notify_resume+0x38/0x44)
[ 101.241297] [<8003a36c>] (do_notify_resume+0x38/0x44) from
[<80037098>] (work_pending+0x24/0x28)
[ 101.250112] CPU1: stopping
[ 101.252837] [<8003e1c0>] (unwind_backtrace+0x0/0xf8) from
[<800313a8>] (do_IPI+0x1d4/0x208)
[ 101.261202] [<800313a8>] (do_IPI+0x1d4/0x208) from [<80036a8c>]
(__irq_svc+0x4c/0xe8)
[ 101.269028] Exception stack(0x9a06bf90 to 0x9a06bfd8)
[ 101.274085] bf80: 8056bd60
80000093 00000001 00000000
[ 101.282270] bfa0: 9a06a000 80547a04 803ce5e0 80521704 1000406a
412fc09a 00000000 00000000
[ 101.290445] bfc0: 00000000 9a06bfd8 800460a8 80037b84 40000013 ffffffff
[ 101.297073] [<80036a8c>] (__irq_svc+0x4c/0xe8) from [<80037b84>]
(default_idle+0x24/0x28)
[ 101.305263] [<80037b84>] (default_idle+0x24/0x28) from [<80037e90>]
(cpu_idle+0xc8/0x108)
[ 101.313451] [<80037e90>] (cpu_idle+0xc8/0x108) from [<103c2d74>]
(0x103c2d74)