[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] ARM: Issues while Enabling hibernation in domU(linux) on jacinto-j6





On 09/07/18 09:59, moin anjnawala wrote:
Hi Julien,

Hello,

[...]

[   18.746774] PC is at safe_copy_page+0x1c/0x38
[   18.746774] LR is at safe_copy_page+0x20/0x38
[   18.746774] pc : [<c018b800>]    lr : [<c018b804>]    psr: a00300d3
[   18.746774] sp : d62b3d14  ip : d62b3d14  fp : d62b3d28
[   18.746774] r10: c0c9f000  r9 : d779dd64  r8 : d770dc68
[   18.746774] r7 : 00005137  r6 : c0f9b260  r5 : c0fc7ec0  r4 : d2cca000
[   18.746774] r3 : ffffffff  r2 : d2ccb000  r1 : d7469000  r0 : d6cd1000
[   18.746774] Flags: NzCv  IRQs off  FIQs off  Mode SVC_32  ISA ARM
Segment none
[   18.746774] Control: 10c5387d  Table: 560c006a  DAC: 00000051
[   18.746774] Process bash (pid: 283, stack limit = 0x(ptrval))
[   18.746774] Stack: (0xd62b3d14 to 0xd62b4000)
[   18.746774] 3d00:
ffffffff c0f09504 d62b3d60
[   18.746774] 3d20: d62b3d2c c018da0c c018b7f0 00000001 d62b3d7c
d6ccb900 00000030 d62b3dac
[   18.746774] 3d40: 00000000 00000008 00000010 d61f5890 c0c9f000
d62b3d78 d62b3d64 c0110ad4
[   18.746774] 3d60: c018d640 00000000 00000030 d62b3de4 d62b3d7c
c0110730 c0110ad0 56d24000
[   18.746774] 3d80: d62b3dac 4011d6a0 00000000 b6f4e4c0 b6f4e4c0
00000051 4000406a 10c5387d
[   18.746774] 3da0: 00000000 00f00000 00000000 c0f9695c d677ee00
00000000 c0f02800 c0c0754c
[   18.746774] 3dc0: d61f5890 00000005 d62b3de4 c01108fc c0f9695c
00000000 d62b3df4 d62b3de8
[   18.746774] 3de0: c0110bd4 c01108b8 d62b3e1c d62b3df8 c018aab4
c0110bc4 00000000 c0f1a2c8
[   18.746774] 3e00: 00000000 c0f9b130 d62f2280 c0f1a228 d62b3e4c
d62b3e20 c018b3f0 c018a770
[   18.746774] 3e20: c0271418 00000005 d5e68198 d62f2280 00000005
d61f5880 d62f2280 d62b3f68
[   18.746774] 3e40: d62b3e64 d62b3e50 c0189408 c018b288 d62f2280
00000000 d62b3e74 d62b3e68
[   18.746774] 3e60: c0903cbc c01893b0 d62b3e8c d62b3e78 c0316b44
c0903cac c0316af0 00000000
[   18.746774] 3e80: d62b3ec4 d62b3e90 c031619c c0316afc 00000000
00000000 d62b3efc d60cc840
[   18.746774] 3ea0: 00000005 d60cc840 d62b3f68 00000005 000ce408
00000000 d62b3f34 d62b3ec8
[   18.746774] 3ec0: c02a13d8 c03160b0 00000800 00000008 00000000
0000081f c091b8f4 b6f5d560
[   18.746774] 3ee0: c0f0b7ec d62b3fb0 b6f5d968 000c5758 d62b3fac
d62b3f00 c0117fd0 c091b900
[   18.746774] 3f00: 00000000 c02a1630 d62b3f34 d62b3f18 c029d7c4
d60cc840 00000005 000ce408
[   18.746774] 3f20: d62b3f68 00000005 d62b3f64 d62b3f38 c02a1670
c02a13ac d60cc840 c02c0ae8
[   18.746774] 3f40: 00000000 00000000 d60cc840 d60cc840 00000005
000ce408 d62b3f94 d62b3f68
[   18.746774] 3f60: c02a1880 c02a15c8 00000000 00000000 00000005
000ce408 b6eccb50 00000004
[   18.746774] 3f80: c01011e4 d62b2000 d62b3fa4 d62b3f98 c02a18ec
c02a1840 00000000 d62b3fa8
[   18.746774] 3fa0: c0101000 c02a18e0 00000005 000ce408 00000001
000ce408 00000005 00000000
[   18.746774] 3fc0: 00000005 000ce408 b6eccb50 00000004 00000005
00000000 000c5758 00000000
[   18.746774] 3fe0: 00000000 bee588e4 b6e2fc85 b6e6af26 40020030
00000001 00000000 00000000
[   18.746774] [<c018b800>] (safe_copy_page) from [<c018da0c>]
(swsusp_save+0x3d8/0x480)
[   18.746774] [<c018da0c>] (swsusp_save) from [<c0110ad4>]
(arch_save_image+0x10/0x48)
[   18.746774] [<c0110ad4>] (arch_save_image) from [<c0110730>]
(cpu_suspend_abort+0x0/0x30)
[   18.746774] Code: e52de004 e8bd4000 e1a04000 e1a00001 (eb03838b)
[   18.746774] ---[ end trace d5b1b8f68a0ece68 ]---
[   18.746774] ------------[ cut here ]------------
[   18.746774] WARNING: CPU: 0 PID: 0 at kernel/time/timekeeping.c:760
ktime_get+0xec/0xf8
[   18.746774] Modules linked in:
[   18.746774] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G      D
   4.17.4-00012-g8675d93-dirty #289
[   18.746774] Hardware name: Generic DT based system
[   18.746774] [<c011376c>] (unwind_backtrace) from [<c010e688>]
(show_stack+0x20/0x24)
[   18.746774] [<c010e688>] (show_stack) from [<c08ffb64>]
(dump_stack+0x98/0xac)
[   18.746774] [<c08ffb64>] (dump_stack) from [<c01316d8>] (__warn+0x104/0x11c)
[   18.746774] [<c01316d8>] (__warn) from [<c01317e0>]
(warn_slowpath_null+0x50/0x58)
[   18.746774] [<c01317e0>] (warn_slowpath_null) from [<c01b3210>]
(ktime_get+0xec/0xf8)
[   18.746774] [<c01b3210>] (ktime_get) from [<c01c32fc>]
(tick_nohz_idle_enter+0x44/0x8c)
[   18.746774] [<c01c32fc>] (tick_nohz_idle_enter) from [<c016354c>]
(do_idle+0x2c/0x240)
[   18.746774] [<c016354c>] (do_idle) from [<c0163a3c>]
(cpu_startup_entry+0x28/0x2c)
[   18.746774] [<c0163a3c>] (cpu_startup_entry) from [<c0914c48>]
(rest_init+0xe0/0xe4)
[   18.746774] [<c0914c48>] (rest_init) from [<c0e00f80>]
(start_kernel+0x450/0x464)
[   18.746774] ---[ end trace d5b1b8f68a0ece69 ]---

Also, one more observation I have had is that hibernation image
creation does not crash for linux mainline version upto v4.7.10 but
not for later versions.

I am not sure to follow this. Which version are you using for Dom0? For DomU? Earlier you mention 4.17, but now you mention 4.7...

[...]


Is there any plan to support hibernation from userspace on arm on xen
for any future release ? If not then what implementations I need to
add in xen and linux to enable hibernation on domU for arm?

As I mention in my previous reply, it is very likely that some bits would need to be implemented for Arm. I haven't looked at the series, but I think you can look at x86 code and replicate for Arm.

Cheers,

--
Julien Grall

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.