IMX6 Android Hibernation resume problem

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

IMX6 Android Hibernation resume problem

1,262件の閲覧回数
john_smith
Contributor II

Hello!

I'm trying to add hibernation support to IMX6Q processor module. I've aplied this patch - https://lkml.org/lkml/2014/3/11/486 . The problem is in resuming process. Everything freezes in function

static void notrace arch_restore_image(void *unused)
{
   struct pbe *pbe;

   cpu_switch_mm(idmap_pgd, &init_mm);
   for (pbe = restore_pblist; pbe; pbe = pbe->next)
 copy_page(pbe->orig_address, pbe->address);

   soft_restart(virt_to_phys(cpu_resume));
}‍‍‍‍‍‍‍‍‍‍

The program never returns from

for (pbe = restore_pblist; pbe; pbe = pbe->next)

copy_page function is being called about 50000 times and than the process freezes. There are some logs, where number of calls, pbe->orig_address and pbe->address values before freezing are collected:

Start

.......

50627 d4374000 c5a66000
50628 d4373000 c5a67000
50629 d4372000 c5a68000

Freeze

Start

.......

51209 d402b000 c52d7000

Freeze

Start

.......

52882 d402e000 c4cea000

52883 d402d000 c4ceb000
52884 d402c000 c4cec000
52885 d402b000 c4ced000

Freeze

What can be the reason?....

Thank you in advance!

ラベル(4)
5 返答(返信)

754件の閲覧回数
zc_tee
Contributor III

Hi John,

I am facing the same problem as you. May i know have you solve this issue? 

Would you mind to share how you solve this?

Thank you.

Regards,

Tee

0 件の賞賛

754件の閲覧回数
john_smith
Contributor II

Hello! Sorry for late answer.

We just removed no_console_suspend from kernel command line. After that we got console working and now we see GPU errors there. So everything seems to work fine except GPU driver. We use Android 6 (linux kernel 4.1.15).

0 件の賞賛

754件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi John

please try nxp official android releases on

http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/i.mx-applications-process...

check support way for third parties releases on

https://community.freescale.com/message/402940#402940


================================================================
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛

754件の閲覧回数
john_smith
Contributor II

I use Variscite CustomBoard, so I use official Android release with IMX6 patches from Variscite.

0 件の賞賛

754件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

official nxp bsps are located on

i.MX 6 Series Software and Development Tool|NXP 

non nxp releases (developed by third parties) are supported by

these third parties tech support. For Variscite bsps please post on

Variscite: Contact Support - Variscite 

or meta-fsl-arm mailing list, so that someone familiar with that board

could try to assist you

meta-freescale Info Page 

0 件の賞賛