Recently we ported TuxOnIce Hibernation on iMX6 Auto board, though suspend and resume works partially, we are seeing couple of issues in resume
1. After suspend, when we unplug the power source( Base Board) and power it on to resume Hibernation image, the LCD does not show any pixel data or in that case Android Home screen is not showing up which is an expected behavior.
2. Instead of unplugging the power source, Reset the button on CPU board, the system resumes, we see Android Home screen on LCD, but the color of some pixels shows blue, instead of green.
I am not sure where is the problem in drivers in BSP, is this CPU board power issue(PCIe) or LCD driver issue? it will be nice if someone can comment on these issues. I appreciate it..
Thanks,
Subbu
解決済! 解決策の投稿を見る。
As I know, freescale Android BSP doesn't support hibernateion yet. So how do you get it work?
From your issue, I think the IPU driver is not initialized correctly. For IPU driver, only recover the IPU register is not enough for working. When the issue happens, can you run command from serial console as followed:
# echo 1 > /sys/class/graphics/fb0/blank
# echo 0 > /sys/class/graphics/fb0/blank
If this can recover the display, maybe you can add such workround in your hibernation solution.
Hi Subrami
Can you upload the patch?
Thanks
Hi Subramani,
Am able to create hibernation image & save pages 100%.
But at resume, load image return with error from unpack_orig_pfns
function. It is looking like may be problem with memory_bitmap.
If any direction or help is appreciable.
Thanks & Regards,
Sudhir
Hi Subramani,
Am trying to implement hibernation on the same IMX6 Auto board. But it is stuck on swap_pages function & here is the log:
[ 88.008761] PM: Syncing filesystems ...
[ 88.017586] done.
[ 88.025536] PM: Preallocating image memory...
[ 88.415870] done (allocated 122464 pages)
[ 88.420083] PM: Allocated 489856 kbytes in 0.38 seconds (1289.09 MB/s)
[ 88.426633] pm_restrict_gfp_mask 125
[ 88.430300] PM: dpm_suspend start...
[ 88.456311] PM:done
[ 88.480808] PM: Creating hibernation image:
[ 88.694169] PM: Need to copy 121577 pages
[ 91.184024] PM: Hibernation image created (121577 pages copied)
[ 91.221788] PM: writing image.
[ 91.225413] PM: Free swap pages: 524286
The last call chain is like swap_write_page()->write_page()->hib_bio_write_page->submit()->wait_on_page_locked.
Any help or direction regarding the same will help to resolve this issue.
Thanks & Regards,
Sudhir
As I know, freescale Android BSP doesn't support hibernateion yet. So how do you get it work?
From your issue, I think the IPU driver is not initialized correctly. For IPU driver, only recover the IPU register is not enough for working. When the issue happens, can you run command from serial console as followed:
# echo 1 > /sys/class/graphics/fb0/blank
# echo 0 > /sys/class/graphics/fb0/blank
If this can recover the display, maybe you can add such workround in your hibernation solution.
Hi Qiang, Thanks for the information, that workaround did help..
Yes Freescale BSP does not support Hibernation, we did some work to make it work
Hi Subbu:
Recently,I have the same problem with you.the android home screen has abnormal color,there is no help when I run commond as follow:
# echo 1 > /sys/class/graphics/fb0/blank
# echo 0 > /sys/class/graphics/fb0/blank
Have you solve this problem?could you tell me how to add the code when resume the lcd? I add the code in mxc_ipu3_fb.c like this:
mxcfb_set_par / mxcfb_blank / fb_set_var / fb_blank,but It doesn‘t work.
Thanks
wangzhigang
Hi Subbu:
Would you have any idea to release your modifications about the TuxOnIce ? We want to patch the hibernation to imx6 too.