On Tuesday, 13.03.2018 at 17:30, Martin Lucina wrote:
> On Tuesday, 13.03.2018 at 15:18, Martin Lucina wrote:
> > I've now also tried with a 4.16-rc5 kernel and get the same "bad page
> > state" early in the boot process.
> > 
> > Are current mainline kernels stable on this board, or do I need some extra
> > patches? Headless operation is enough for me. 
> 
> I just tried with U-boot 2018.03 (released as of a few hours ago) and with
> mainline 4.16-rc5 kernel the board now completes debootstrap --second-stage
> sucessfully, so it looks like this problem is solved in the new U-boot
> (previously I was using 2018.01).
> 
> Will report back if I see any further instability.

It seems that I spoke too soon. Have power-cycled the board to do a
slightly different debootstrap configuration from scratch and I'm getting
lots more of "BUG: bad page state in process ...":

[    0.096713] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]       
           
[    0.120292] BUG: Bad page state in process kthreadd  pfn:7da80               
            
[    0.120316] page:ffff7e0000f6a000 count:64 mapcount:0 
mapping:0000000000000000 index:0x0   
[    0.120326] flags: 0xfffc00000000000()                                       
                                                        
[    0.120339] raw: 0fffc00000000000 0000000000000000 0000000000000000 
00000040ffffffff                               
[    0.120349] raw: dead000000000100 dead000000000200 0000000000000000 
0000000000000000
[    0.120355] page dumped because: nonzero _count
[    0.120361] Modules linked in:
[    0.120374] CPU: 0 PID: 2 Comm: kthreadd Not tainted 4.16.0-rc5 #2
[    0.120379] Hardware name: Olimex A64-Olinuxino (DT)
[    0.120386] Call trace:
[    0.120404]  dump_backtrace+0x0/0x198
[    0.120415]  show_stack+0x14/0x20
[    0.120426]  dump_stack+0x98/0xbc
[    0.120436]  bad_page+0xe4/0x148
[    0.120444]  check_new_page_bad+0x68/0x90
[    0.120454]  get_page_from_freelist+0xbec/0x1090
[    0.120463]  __alloc_pages_nodemask+0xfc/0xc00
[    0.120474]  __vmalloc_node_range+0xfc/0x288
[    0.120485]  copy_process.isra.6.part.7+0x4e4/0x1638
[    0.120493]  _do_fork+0xcc/0x368
[    0.120501]  kernel_thread+0x30/0x38
[    0.120511]  kthreadd+0x170/0x1e8
[    0.120519]  ret_from_fork+0x10/0x18
[    0.120525] Disabling lock debugging due to kernel taint
[    0.124719] Detected VIPT I-cache on CPU3
[    0.124750] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.124823] smp: Brought up 1 node, 4 CPUs
[    0.124835] SMP: Total of 4 processors activated.
...
[    0.134003] pinctrl core: initialized pinctrl subsystem
[    0.135125] BUG: Bad page state in process kworker/u8:3  pfn:7d03d
[    0.135146] page:ffff7e0000f40f40 count:64 mapcount:0 
mapping:0000000000000000 index:0x0
[    0.135158] flags: 0xfffc00000000000()
[    0.135170] raw: 0fffc00000000000 0000000000000000 0000000000000000 
00000040ffffffff
[    0.135180] raw: dead000000000100 dead000000000200 0000000000000000 
0000000000000000
[    0.135187] page dumped because: nonzero _count
[    0.135193] Modules linked in:
[    0.135207] CPU: 0 PID: 40 Comm: kworker/u8:3 Tainted: G    B            
4.16.0-rc5 #2
[    0.135213] Hardware name: Olimex A64-Olinuxino (DT)
[    0.135237] Workqueue: events_unbound call_usermodehelper_exec_work
[    0.135246] Call trace:
[    0.135259]  dump_backtrace+0x0/0x198
[    0.135269]  show_stack+0x14/0x20
[    0.135282]  dump_stack+0x98/0xbc
[    0.135292]  bad_page+0xe4/0x148
[    0.135300]  check_new_page_bad+0x68/0x90
[    0.135309]  get_page_from_freelist+0xbec/0x1090
[    0.135318]  __alloc_pages_nodemask+0xfc/0xc00
[    0.135328]  alloc_pages_current+0x80/0xe8
[    0.135339]  __vmalloc_node_range+0x17c/0x288
[    0.135341] DMI not present or invalid.
[    0.135355]  copy_process.isra.6.part.7+0x4e4/0x1638
[    0.135363]  _do_fork+0xcc/0x368
[    0.135371]  kernel_thread+0x30/0x38
[    0.135380]  call_usermodehelper_exec_work+0x40/0xf8
[    0.135390]  process_one_work+0x1c0/0x328
[    0.135398]  worker_thread+0x50/0x458
[    0.135407]  kthread+0xf8/0x128
[    0.135416]  ret_from_fork+0x10/0x18
[    0.135783] NET: Registered protocol family 16
...
[    0.137706] cpuidle: using governor menu
[    0.137796] BUG: Bad page state in process swapper/0  pfn:7d4a8
[    0.137809] page:ffff7e0000f52a00 count:72 mapcount:0 
mapping:0000000000000000 index:0x2
[    0.137820] flags: 0xfffc00000000000()
[    0.137833] raw: 0fffc00000000000 0000000000000000 0000000000000002 
00000048ffffffff
[    0.137843] raw: dead000000000100 dead000000000200 0000000000000000 
0000000000000000
[    0.137849] page dumped because: nonzero _count
[    0.137854] Modules linked in:
[    0.137868] CPU: 2 PID: 1 Comm: swapper/0 Tainted: G    B            
4.16.0-rc5 #2
[    0.137874] Hardware name: Olimex A64-Olinuxino (DT)
[    0.137881] Call trace:
[    0.137899]  dump_backtrace+0x0/0x198
[    0.137910]  show_stack+0x14/0x20
[    0.137922]  dump_stack+0x98/0xbc
[    0.137932]  bad_page+0xe4/0x148
[    0.137940]  check_new_page_bad+0x68/0x90
[    0.137950]  get_page_from_freelist+0x880/0x1090
[    0.137959]  __alloc_pages_nodemask+0xfc/0xc00
[    0.137972]  alloc_page_interleave+0x18/0xa8
[    0.137980]  alloc_pages_current+0xd4/0xe8
[    0.137991]  new_slab+0x41c/0x610
[    0.138001]  ___slab_alloc+0x4ac/0x560
[    0.138010]  __slab_alloc.isra.23+0x24/0x38
[    0.138019]  kmem_cache_alloc+0x1ac/0x1e0
[    0.138029]  sock_alloc_inode+0x28/0xb8
[    0.138040]  alloc_inode+0x20/0xa0
[    0.138049]  new_inode_pseudo+0x10/0x50
[    0.138057]  sock_alloc+0x1c/0x78
[    0.138064]  sock_create_lite+0x18/0x40
[    0.138076]  __netlink_kernel_create+0x70/0x248
[    0.138086]  uevent_net_init+0x78/0x100
[    0.138097]  ops_init+0xb4/0x148
[    0.138107]  register_pernet_operations+0x140/0x1d0
[    0.138116]  register_pernet_subsys+0x34/0x58
[    0.138129]  kobject_uevent_init+0x18/0x20
[    0.138137]  do_one_initcall+0x50/0x160
[    0.138147]  kernel_init_freeable+0x184/0x224
[    0.138156]  kernel_init+0x10/0x108
[    0.138165]  ret_from_fork+0x10/0x18
[    0.138344] vdso: 2 pages (1 code @         (ptrval), 1 data @         
(ptrval))
[    0.138361] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.139623] DMA: preallocated 256 KiB pool for atomic allocations
...

and so on.

Any ideas? This is with U-boot 2018.03 (released a few hours ago) and mainline 
Linux 4.16-rc5.

-mato

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to