[Fire Original Android Development] stargo:
Hi,

the SMP-problem is easy to explain: The kernel thinks the CPU is cold-booted and doesn't set the BOOT_ADDR. If you apply this patch, it looks better, but the kernel still hangs at the same point.

[ 0.000000]-(0)[0:swapper]Linux version 3.10.54+ (michael@deepthought) (gcc version 4.8 (GCC) ) #3 SMP PREEMPT Wed Feb 3 15:16:10 CET 2016
[ 0.000000]-(0)[0:swapper]CPU: ARMv7 Processor [410fc073] revision 3 (ARMv7), cr=10c5387d
[ 0.000000]-(0)[0:swapper]CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000]-(0)[0:swapper]Machine: MT8117
[ 0.000000]-(0)[0:swapper]Load default dfo data...
[ 0.000000]-(0)[0:swapper][EEMCS/PLAT] DFO:MTK_MD5_SUPPORT:0x00000005
[ 0.000000]-(0)[0:swapper][EEMCS/PLAT] DFO:MTK_ENABLE_MD5:0x00000000
[ 0.000000]-(0)[0:swapper][EEMCS/PLAT] DFO:MD5_SIZE:0x01600000
[ 0.000000]-(0)[0:swapper][EEMCS/PLAT] Get DFO:MTK_MD5_SUPPORT:0x00000005
[ 0.000000]-(0)[0:swapper][EEMCS/PLAT] Get DFO:MTK_ENABLE_MD5:0x00000000
[ 0.000000]-(0)[0:swapper][EEMCS/PLAT] Get DFO:MD5_SIZE:0x01600000
[ 0.000000]-(0)[0:swapper]tag_devinfo_data_rid, index[12]:0xa644eaa0
[ 0.000000]-(0)[0:swapper]tag_devinfo_data size:26
[ 0.000000]-(0)[0:swapper]Get MD inf from META
[ 0.000000]-(0)[0:swapper]md_inf[0]=0
[ 0.000000]-(0)[0:swapper]md_inf[1]=0
[ 0.000000]-(0)[0:swapper]md_inf[2]=0
[ 0.000000]-(0)[0:swapper]md_inf[3]=0
[ 0.000000]-(0)[0:swapper][PHY layout]avaiable DRAM size (lk) = 0x37a00000
[ 0.000000][PHY layout]avaiable DRAM size = 0x37a00000
[ 0.000000][PHY layout]FB : 0xb6600000 - 0xb79fffff (0x1400000)
[ 0.000000]-(0)[0:swapper]Ignoring unrecognised tag 0x41000802
[ 0.000000]-(0)[0:swapper]Ignoring unrecognised tag 0x41000804
[ 0.000000]-(0)[0:swapper]Ignoring unrecognised tag 0x54410008
[ 0.000000]-(0)[0:swapper]Ignoring unrecognised tag 0x41000806
[ 0.000000]-(0)[0:swapper][memblock]mt_reserve: 0x83f00000 - 0x83ffffff (0x00100000)
[ 0.000000]-(0)[0:swapper][PHY layout]mtk_wcn_consys_memory_reserve : 0xb6500000 - 0xb65fffff (0x00100000)
[ 0.000000]-(0)[0:swapper][WMT-CONSYS-HW][I]mtk_wcn_consys_memory_reserve:memblock done: 0xb6500000
[ 0.000000]-(0)[0:swapper]Memory policy: ECC disabled, Data cache writealloc
[ 0.000000]-(0)[0:swapper][PHY layout]kernel : 0x80000000 - 0xb64fffff (0x36500000)
[ 0.000000]-(0)[0:swapper]creating mapping start pa: 0x80000000 @ 0xc0000000 , end pa: 0xa0000000 @ 0xe0000000
[ 0.000000]-(0)[0:swapper][CORE] num:4
[ 0.000000]-(0)[0:swapper]Built 1 zonelists in Zone order, mobility grouping on. Total pages: 221440
[ 0.000000]-(0)[0:swapper][cpu_ntf] <00>c0122be4 (page_alloc_cpu_notify)
[ 0.000000]-(0)[0:swapper]Kernel command line: console=tty0 console=ttyMT3,921600n1 root=/dev/ram vmalloc=496M slub_max_order=0 slub_debug=O coherent_pool=3240K
[ 0.000000]-(0)[0:swapper]Memory: 863476k/863476k available, 27404k reserved, 365568K highmem
[ 0.000000]-(0)[0:swapper]Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xe0800000 - 0xff000000 ( 488 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0acae0c (11020 kB)
[ 0.000000] .init : 0xc0acb000 - 0xc0b20480 ( 342 kB)
[ 0.000000] .data : 0xc0b22000 - 0xc0be62e8 ( 785 kB)
[ 0.000000] .bss : 0xc0be62e8 - 0xc0d7bc04 (1623 kB)
[ 0.000000]-(0)[0:swapper][cpu_ntf] <01>c07f2174 (slab_cpuup_callback)
[ 0.000000]-(0)[0:swapper/0][cpu_ntf] <02>c07f14d4 (sched_ilb_notifier)
[ 0.000000]-(0)[0:swapper/0][cpu_ntf] <03>c07f1f8c (perf_cpu_notify)
[ 0.000000]-(0)[0:swapper/0][cpu_ntf] <04>c07f17a8 (rcu_cpu_notify)
[ 0.000000]-(0)[0:swapper/0][cpu_ntf] <05>c02b6a9c (radix_tree_callback)
[ 0.000000]-(0)[0:swapper/0][cpu_ntf] <06>c07f06f4 (timer_cpu_notify)
[ 0.000000]-(0)[0:swapper/0][cpu_ntf] <07>c07f0db4 (hrtimer_cpu_notify)
[ 0.000000]-(0)[0:swapper/0][cpu_ntf] <08>c07f04b4 (remote_softirq_cpu_notify)
[ 0.000000]-(0)[0:swapper/0]GPT1_CMP = 130000, HZ = 100
[ 0.000000]-(0)[0:swapper/0]fwq sysc count
[ 0.000000]-(0)[0:swapper/0][cpu_ntf] <09>c00d3dfc (hotplug_cfd)
[ 0.000000].(0)[0:swapper/0]ram_console: buffer start: 0xe0800000, size: 0x100000
[ 0.000000].(0)[0:swapper/0]ram_console: log size 0xffc80, start 0x6029, off_console 0x380, buffer_size 0x100000
[ 0.000000].(0)[0:swapper/0]ram_console: lk[0], linux[200], console[380]
[ 0.000000].(0)[0:swapper/0]ram_console: old_header[df806000], buffer[e0800000], header_size[380]
[ 0.000000].(0)[0:swapper/0]ram_console:bin_log_count[0]
[ 0.000000].(0)[0:swapper/0][UART] mtk console setup : co->index 3 options:921600n1
[ 0.000000]-(0)[0:swapper/0]No Flow Control
[ 0.000000].(0)[0:swapper/0][UART] mtk console setup : uart_set_option port(3) baud(921600) parity(n) bits(1) flow(n) - ret(0)
[ 0.000000].(0)[0:swapper/0][UART] mtk setting: (0, 0, 0, 0, 128)
[ 0.112097].(0)[0:swapper/0][cpu_ntf] <10>c018b05c (buffer_cpu_notify)
[ 0.113479].(0)[0:swapper/0][cpu_ntf] <11>c07f1fd8 (ratelimit_handler)
[ 0.114900]Calibrating local timer... 13.00MHz.
[ 0.172749].(0)[1:swapper/0][init] f(c0acd61c)
[ 0.173528].(0)[1:swapper/0] s:172741538 e:172743076 d:1538
[ 0.174303].(0)[1:swapper/0][init] f(c0acd5f8)
[ 0.175079].(0)[1:swapper/0] s:174298230 e:174298846 d:616
[ 0.175889].(0)[1:swapper/0][init] f(c0acfde8)
[ 0.176667].(0)[1:swapper/0] s:175848307 e:175879923 d:31616
[ 0.177449].(0)[1:swapper/0][cpu_ntf] <12>c07f057c (cpu_callback)
[ 0.192799].(0)[1:swapper/0][init] f(c0ad3800)
[ 0.193579].(0)[1:swapper/0] s:177437538 e:192791692 d:15354154
[ 0.194366].(0)[1:swapper/0][cpu_ntf] <13>c07f09c8 (workqueue_cpu_up_callback)
[ 0.195146].(0)[1:swapper/0][cpu_ntf] <14>c07f0d0c (workqueue_cpu_down_callback)
[ 0.196296].(0)[1:swapper/0][init] f(c0ad4ae0)
[ 0.197076].(0)[1:swapper/0] s:194350000 e:196288538 d:1938538
[ 0.197851].(0)[1:swapper/0][init] f(c0ad503c)
[ 0.198628].(0)[1:swapper/0] s:197844615 e:197846076 d:1461
[ 0.199410].(0)[1:swapper/0][cpu_ntf] <15>c07f10e4 (migration_call)
[ 0.200189].(0)[1:swapper/0][cpu_ntf] <16>c07f1060 (sched_cpu_active)
[ 0.200966].(0)[1:swapper/0][cpu_ntf] <17>c07f1094 (sched_cpu_inactive)
[ 0.201740].(0)[1:swapper/0][init] f(c0ad69f0)
[ 0.202517].(0)[1:swapper/0] s:199398461 e:201736076 d:2337615
[ 0.223370].(0)[1:swapper/0][init] f(c0ad9190)
[ 0.224149].(0)[1:swapper/0] s:203325153 e:223362769 d:20037616
[ 0.224925].(0)[1:swapper/0][init] f(c0ad96d4)
[ 0.225702].(0)[1:swapper/0] s:224920307 e:224920923 d:616
[ 0.226665].(0)[1:swapper/0][init] f(c0ad96f8)
[ 0.227443].(0)[1:swapper/0] s:226470384 e:226657153 d:186769
[ 0.228284].(0)[1:swapper/0][cpu_ntf] <18>c00f9ae4 (rb_cpu_notify)
[ 0.229122].(0)[1:swapper/0][init] f(c0ada0b0)
[ 0.229900].(0)[1:swapper/0] s:228213538 e:229116000 d:902462
[ 0.230683].(0)[1:swapper/0][init] f(c0ada284)
[ 0.231459].(0)[1:swapper/0] s:230670384 e:230678538 d:8154
[ 0.232233].(0)[1:swapper/0][init] f(c0ada340)
[ 0.233009].(0)[1:swapper/0] s:232227538 e:232228769 d:1231
[ 0.233823].(0)[1:swapper/0][init] f(c0ada3a0)
[ 0.234602].(0)[1:swapper/0] s:233810538 e:233816769 d:6231
[ 0.235377].(0)[1:swapper/0][init] f(c0af55f0)
[ 0.236153].(0)[1:swapper/0] s:235372153 e:235372846 d:693
[ 0.254146].(0)[1:swapper/0]Boot slave CPU
[ 0.254922].(0)[1:swapper/0][Power/hotplug] boot_secondary, cpu: 1
[ 0.255698].(0)[1:swapper/0][Power/hotplug] SLAVE1_MAGIC_NUM:534c4131
[ 0.256473].(0)[1:swapper/0]mt_wakeup_cpu: not first boot!(1)
[ 0.257456]-(1)[0:swapper/1]CPU1: Booted secondary processor
[ 0.257478]-(1)[0:swapper/1][Power/hotplug] platform_secondary_init, cpu: 1
[ 0.257642]-(1)[0:swapper/1]WD wd_cpu_hot_plug_on_notify kick ext wd
[ 0.334236].(0)[1:swapper/0]Boot slave CPU
[ 0.335012].(0)[1:swapper/0][Power/hotplug] boot_secondary, cpu: 2
[ 0.335789].(0)[1:swapper/0][Power/hotplug] SLAVE2_MAGIC_NUM:4c415332
[ 0.336563].(0)[1:swapper/0]mt_wakeup_cpu: not first boot!(2)
[ 0.337538]-(2)[0:swapper/2]CPU2: Booted secondary processor
[ 0.337559]-(2)[0:swapper/2][Power/hotplug] platform_secondary_init, cpu: 2
[ 0.337718]-(2)[0:swapper/2]WD wd_cpu_hot_plug_on_notify kick ext wd
[ 0.414346].(0)[1:swapper/0]Boot slave CPU
[ 0.415122].(0)[1:swapper/0][Power/hotplug] boot_secondary, cpu: 3
[ 0.415899].(0)[1:swapper/0][Power/hotplug] SLAVE3_MAGIC_NUM:41534c33
[ 0.416674].(0)[1:swapper/0]mt_wakeup_cpu: not first boot!(3)
[ 0.417649]-(3)[0:swapper/3]CPU3: Booted secondary processor
[ 0.417671]-(3)[0:swapper/3][Power/hotplug] platform_secondary_init, cpu: 3
[ 0.417826]-(3)[0:swapper/3]WD wd_cpu_hot_plug_on_notify kick ext wd
[ 0.474526].(0)[1:swapper/0][cpu_ntf] <19>c0085764 (sched_domains_numa_masks_update)
[ 0.475308].(0)[1:swapper/0][cpu_ntf] <20>c008eeb0 (cpuset_cpu_active)
[ 0.476088].(0)[1:swapper/0][cpu_ntf] <21>c008ef54 (cpuset_cpu_inactive)
[ 0.476869].(0)[1:swapper/0][cpu_ntf] <22>c009bf04 (update_runtime)
[ 0.477647].(0)[1:swapper/0][cpu_ntf] <23>c0088bb0 (hotplug_hrtick)
[ 0.484183].(0)[1:swapper/0][init] f(c0aebb68)
[ 0.484967].(0)[1:swapper/0] s:484168923 e:484170461 d:1538
[ 0.485743].(0)[1:swapper/0][init] f(c0aebc00)
[ 0.486520].(0)[1:swapper/0] s:485737000 e:485737615 d:615
[ 0.487308].(0)[1:swapper/0][init] f(c0afb7fc)
[ 0.488083].(0)[1:swapper/0] s:487289692 e:487303000 d:13308
[ 0.488867].(0)[1:swapper/0][init] f(c0afd6b4)
[ 0.489644].(0)[1:swapper/0] s:488852538 e:488862692 d:10154
[ 0.490605].(0)[1:swapper/0][init] f(c0acd640)
[ 0.491382].(0)[1:swapper/0] s:490598153 e:490600000 d:1847
[ 0.492158].(0)[1:swapper/0][init] f(c0ace810)
[ 0.492933].(0)[1:swapper/0] s:492151538 e:492153384 d:1846
[ 0.493709].(0)[1:swapper/0][init] f(c0ad13c4)
[ 0.494500].(0)[1:swapper/0] s:493703538 e:493704153 d:615
[ 0.495278].(0)[1:swapper/0][init] f(c0ad379c)
[ 0.496053].(0)[1:swapper/0] s:495271307 e:495272846 d:1539
[ 0.496827].(0)[1:swapper/0][init] f(c0ad3788)
[ 0.497604].(0)[1:swapper/0] s:496822153 e:496822461 d:308
[ 0.498441].(0)[1:swapper/0][init] f(c0ad4938)
[ 0.499219].(0)[1:swapper/0] s:498374000 e:498434615 d:60615
[ 0.500011].(0)[1:swapper/0][init] f(c0ad5778)
[ 0.500789].(0)[1:swapper/0] s:499990000 e:500006153 d:16153
[ 0.501642].(0)[1:swapper/0][init] f(c0ad74dc)
[ 0.502420].(0)[1:swapper/0] s:501559076 e:501634000 d:74924
[ 0.503204].(0)[1:swapper/0][init] f(c0ad77f0)
[ 0.503982].(0)[1:swapper/0] s:503190000 e:503199384 d:9384
[ 0.504776].(0)[1:swapper/0][init] f(c00bf6bc)
[ 0.505554].(0)[1:swapper/0] s:504768384 e:504770615 d:2231
[ 0.506516].(0)[1:swapper/0][init] f(c0ad7a94)
[ 0.507295].(0)[1:swapper/0] s:506322769 e:506508384 d:185615
[ 0.508074].(0)[1:swapper/0][init] f(c0ad7d14)
[ 0.508852].(0)[1:swapper/0] s:508064923 e:508069615 d:4692
[ 0.509628].(0)[1:swapper/0][init] f(c0ad816c)
[ 0.510404].(0)[1:swapper/0] s:509621384 e:509623923 d:2539
[ 0.511222].(0)[1:swapper/0][init] f(c0ad8ccc)
[ 0.511999].(0)[1:swapper/0] s:511173307 e:511216000 d:42693
[ 0.513823].(0)[1:swapper/0][init] f(c0ada644)
[ 0.514604].(0)[1:swapper/0] s:512768769 e:513816000 d:1047231
[ 0.515405].(0)[1:swapper/0][init] f(c010ed24)
[ 0.516183].(0)[1:swapper/0] s:515396230 e:515397538 d:1308
[ 0.516957].(0)[1:swapper/0][init] f(c0adea90)
[ 0.517733].(0)[1:swapper/0] s:516951692 e:516952538 d:846
[ 0.518521].(0)[1:swapper/0][init] f(c0ae23cc)
[ 0.519298].(0)[1:swapper/0] s:518503384 e:518516076 d:12692
[ 0.520094].(0)[1:swapper/0][init] f(c0ae27f4)
[ 0.520870].(0)[1:swapper/0] s:520066846 e:520088461 d:21615
[ 0.521645].(0)[1:swapper/0][init] f(c0ae283c)
[ 0.522421].(0)[1:swapper/0] s:521638615 e:521640307 d:1692
[ 0.523197].(0)[1:swapper/0][init] f(c0ae2860)
[ 0.523973].(0)[1:swapper/0] s:523191923 e:523192615 d:692
[ 0.524761].(0)[1:swapper/0][init] f(c0aeb98c)
[ 0.525553].(0)[1:swapper/0] s:524741461 e:524755769 d:14308
[ 0.526331].(0)[1:swapper/0][init] f(c0aeefc8)
[ 0.527108].(0)[1:swapper/0] s:526323692 e:526326000 d:2308
[ 0.527901].(0)[1:swapper/0][init] f(c0af2b7c)
[ 0.528678].(0)[1:swapper/0] s:527877692 e:527896384 d:18692
[ 0.529547].(0)[1:swapper/0][init] f(c0af53e8)
[ 0.530325].(0)[1:swapper/0] s:529447307 e:529540615 d:93308
[ 0.531107].(0)[1:swapper/0][init] f(c0afb828)
[ 0.531885].(0)[1:swapper/0] s:531095307 e:531102538 d:7231
[ 0.532812].(0)[1:swapper/0][init] f(c0afd530)
[ 0.533591].(0)[1:swapper/0] s:532654538 e:532805461 d:150923
[ 0.534418].(0)[1:swapper/0][init] f(c0afedec)
[ 0.535196].(0)[1:swapper/0] s:534362230 e:534411307 d:49077
[ 0.537829].(0)[1:swapper/0][init] f(c0acee64)
[ 0.538608].(0)[1:swapper/0] s:536187076 e:537824230 d:1637154
[ 0.539513].(0)[1:swapper/0][init] f(c0add4d4)
[ 0.540293].(0)[1:swapper/0] s:539377076 e:539505692 d:128616
[ 0.541083].(0)[1:swapper/0][init] f(c0aeef14)
[ 0.541859].(0)[1:swapper/0] s:541062384 e:541077769 d:15385
[ 0.542667].(0)[1:swapper/0][init] f(c0aef574)
[ 0.543444].(0)[1:swapper/0] s:542628615 e:542661846 d:33231
[ 0.544237].(0)[1:swapper/0][init] f(c0aef590)
[ 0.545015].(0)[1:swapper/0] s:544213923 e:544231615 d:17692
[ 0.545802].(0)[1:swapper/0][init] f(c0af25d4)
[ 0.546601].(0)[1:swapper/0] s:545785692 e:545796769 d:11077
[ 0.547377].(0)[1:swapper/0][PWRAP] common driver init, version $Revision$
[ 0.548183].(0)[1:swapper/0][init] f(c0af5b80)
[ 0.548960].(0)[1:swapper/0] s:547371692 e:548177307 d:805615
[ 0.549733].(0)[1:swapper/0][PWRAP] HAL init: version $Revision$
[ 0.550527].(0)[1:swapper/0][init] f(c0af5bf8)
[ 0.551305].(0)[1:swapper/0] s:549729000 e:550522153 d:793153
[ 0.552122].(0)[1:swapper/0][init] f(c0af8acc)
[ 0.552900].(0)[1:swapper/0] s:552075461 e:552117000 d:41539
[ 0.553736].(0)[1:swapper/0][init] f(c0afa370)
[ 0.554514].(0)[1:swapper/0] s:553671000 e:553731538 d:60538
[ 0.555484].(0)[1:swapper/0][init] f(c0acd5c8)
[ 0.556261].(0)[1:swapper/0] s:555477769 e:555478384 d:615
[ 0.557055].(0)[1:swapper/0][init] f(c0acd778)
[ 0.557832].(0)[1:swapper/0] s:557047230 e:557049000 d:1770
[ 0.558622]-(3)[0:swapper/3]hw-breakpoint: Failed to enable monitor mode on CPU 3.
[ 0.559401].(0)[1:swapper/0][init] f(c0acead0)
[ 0.560178].(0)[1:swapper/0] s:558600538 e:559395538 d:795000
[ 0.560954].(0)[1:swapper/0][init] f(c0acf0c4)
[ 0.561730].(0)[1:swapper/0] s:560948384 e:560949230 d:846
[ 0.562555].(0)[1:swapper/0][pdev] dbg_reg_dump
[ 0.563334].(0)[1:swapper/0] s:562499076 e:562550230 d:51154
[ 0.564108].(0)[1:swapper/0][init] f(c0ad1f5c)
[ 0.564884].(0)[1:swapper/0] s:562498230 e:564103153 d:1604923
[ 0.565665].(0)[1:swapper/0][Power/PM_INIT] Bus Frequency = 273000 KHz
[ 0.567675].(0)[1:swapper/0][SPM] PWAKE_EN:1, PCMWDT_EN:1, BYPASS_SYSPWREQ:0
[ 0.568452].(0)[1:swapper/0][SLP] SLEEP_DPIDLE_EN:1, REPLACE_DEF_WAKESRC:0, SUSPEND_LOG_EN:1

Cheers,

Michael