Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751539AbdL0CvG (ORCPT ); Tue, 26 Dec 2017 21:51:06 -0500 Received: from mail-pl0-f68.google.com ([209.85.160.68]:44244 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751163AbdL0CvF (ORCPT ); Tue, 26 Dec 2017 21:51:05 -0500 X-Google-Smtp-Source: ACJfBosqFdyWXwQCopdSeDUFd4GblbHP2V+Anu37gggMb2090iR4eu49zmcPri9jt5uKRyg3AWlkPQ== Date: Wed, 27 Dec 2017 10:50:55 +0800 From: Dong Aisheng To: "A.s. Dong" Cc: Shawn Guo , Peng Fan , "linux-kernel@vger.kernel.org" , Russell King , Fabio Estevam , Sascha Hauer , "van.freenix@gmail.com" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH V2] ARM: imx: suspend/resume: use outer_disable/resume Message-ID: <20171227025055.GD11724@b29396-OptiPlex-7040> References: <1514339867-28946-1-git-send-email-peng.fan@nxp.com> <20171227023207.GX23070@X250> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4640 Lines: 92 On Wed, Dec 27, 2017 at 02:33:57AM +0000, A.s. Dong wrote: > > -----Original Message----- > > From: Shawn Guo [mailto:shawnguo@kernel.org] > > Sent: Wednesday, December 27, 2017 10:32 AM > > To: Peng Fan > > Cc: A.s. Dong ; linux-kernel@vger.kernel.org; Russell > > King ; Fabio Estevam ; > > Sascha Hauer ; van.freenix@gmail.com; linux-arm- > > kernel@lists.infradead.org > > Subject: Re: [PATCH V2] ARM: imx: suspend/resume: use > > outer_disable/resume > > > > On Wed, Dec 27, 2017 at 09:57:47AM +0800, Peng Fan wrote: > > > Use outer_disable/resume for suspend/resume. > > > With the two APIs used, code could be simplified and easy to extend to > > > introduce l2c_write_sec for i.MX platforms when moving Linux Kernel > > > runs in non-secure world. > > > > > > Signed-off-by: Peng Fan > > > Cc: Shawn Guo > > > Cc: Sascha Hauer > > > Cc: Fabio Estevam > > > Cc: Russell King > > > Cc: Dong Aisheng > > > > @Aisheng, can you please give it a test? > > > > Yes, of course. > Not sure but i can still meet booting crash on mx6sx sdb. Peng, you did not meet it, right? I tested with Shanw/for-next branch. [ 4.840665] VFS: Mounted root (nfs filesystem) readonly on device 0:13. [ 4.853448] devtmpfs: mounted [ 4.858370] Freeing unused kernel memory: 1024K INIT: version 2.88 booting [ 6.835667] BUG: Bad rss-counter state mm:ecef66c0 idx:0 val:-1 [ 6.841783] BUG: Bad rss-counter state mm:ecef66c0 idx:1 val:1 Starting udev [ 7.792090] Unable to handle kernel NULL pointer dereference at virtual address 00000001 [ 7.800500] pgd = ecbcc000 [ 7.803884] [00000001] *pgd=ba0c1831 [ 7.807541] Internal error: Oops: 17 [#1] SMP ARM [ 7.812268] Modules linked in: [ 7.815368] CPU: 0 PID: 175 Comm: S04udev Not tainted 4.15.0-rc1-00043-g7afb5ac-dirty #1891 [ 7.823739] Hardware name: Freescale i.MX6 SoloX (Device Tree) [ 7.829595] task: ec79d940 task.stack: ec8bc000 [ 7.834168] PC is at kmem_cache_alloc+0xf0/0x168 [ 7.838808] LR is at 0x2e85d000 [ 7.841971] pc : [] lr : [<2e85d000>] psr: 20000013 [ 7.848257] sp : ec8bdef8 ip : ef7d9ee0 fp : ec8bdf2c [ 7.853502] r10: 00000b5e r9 : 00000001 r8 : a0000013 [ 7.858748] r7 : 00000b5f r6 : c014a21c r5 : 014000c0 r4 : ec001d80 [ 7.865295] r3 : 00000000 r2 : eca5b200 r1 : ec8bc000 r0 : c1009290 [ 7.871848] Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none [ 7.879003] Control: 10c5387d Table: acbcc04a DAC: 00000051 [ 7.884770] Process S04udev (pid: 175, stack limit = 0xec8bc210) [ 7.890798] Stack: (0xec8bdef8 to 0xec8be000) [ 7.895180] dee0: 00422030 00000000 [ 7.903387] df00: 000000c3 00000004 ec79d940 ffffff9c 0178f780 c0108104 ec8bc000 00000000 [ 7.911592] df20: ec8bdf44 ec8bdf30 c014a21c c0226ddc 00000004 00000000 ec8bdf94 ec8bdf48 [ 7.919798] df40: c022bf2c c014a1fc 00422030 00000000 0000000d 00000004 000003e8 000003e8 [ 7.928004] df60: 0000a990 00000000 5a41ff5b 00000004 00000000 0178f780 00000021 c0108104 [ 7.936209] df80: ec8bc000 00000000 ec8bdfa4 ec8bdf98 c022c120 c022bf0c 00000000 ec8bdfa8 [ 7.944414] dfa0: c0107f40 c022c110 00000004 00000000 0178f780 00000004 be92eca8 00008000 [ 7.952619] dfc0: 00000004 00000000 0178f780 00000021 00000000 00000000 00000024 be92edac [ 7.960826] dfe0: 000e51e4 be92eca4 b6eac97c b6eac87c 60000010 0178f780 00000000 00000000 [ 7.969018] Backtrace: [ 7.971519] [] (kmem_cache_alloc) from [] (prepare_creds+0x2c/0x120) [ 7.979642] r10:00000000 r9:ec8bc000 r8:c0108104 r7:0178f780 r6:ffffff9c r5:ec79d940 [ 7.987492] r4:00000004 [ 7.990060] [] (prepare_creds) from [] (SyS_faccessat+0x2c/0x204) [ 7.997911] r5:00000000 r4:00000004 [ 8.001517] [] (SyS_faccessat) from [] (SyS_access+0x1c/0x20) [ 8.009028] r10:00000000 r9:ec8bc000 r8:c0108104 r7:00000021 r6:0178f780 r5:00000000 [ 8.016875] r4:00000004 [ 8.019448] [] (SyS_access) from [] (ret_fast_syscall+0x0/0x28) [ 8.027135] Code: e121f008 e3590000 0a000002 e5943014 (e7993003) [ 8.033525] ---[ end trace 5829484d9a98b0fd ]--- /etc/init.d/rc: line 45: 175 Se[ 8.042776] Unable to handle kernel NULL pointer dereference at virtual address 00000001 Regards Dong Aisheng > Regards > Dong Aisheng > > > Shawn