Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Conversation

IAreKyleW00t
Copy link
Contributor

Improved formatting and removed redundant files.

Improved formatting and removed redundant files.
chenxiaolong added a commit that referenced this pull request Mar 19, 2015
@chenxiaolong chenxiaolong merged commit d980d8f into chenxiaolong:master Mar 19, 2015
chenxiaolong pushed a commit that referenced this pull request May 15, 2015
Workaround #1:
1. Write to /sepolicy

Reboot number | Works | ls -l /sepolicy
--------------|-------| -------------------------------------------------------------------
01            | Yes   | [Not recorded]
02            | Yes   | [Not recorded]
03            | Yes   | [Not recorded]
04            | Yes   | [Not recorded]
05            | Yes   | [Not recorded]
06            | Yes   | -rw-r--r-- system   system     452157 2015-05-15 01:12 sepolicy
07            | Yes   | -rw-r--r-- system   system     452157 2015-05-15 01:14 sepolicy
08            | No    | -rw-r--r-- system   system     452157 2015-05-15 01:15 sepolicy

Workaround #2:
1. Write to /sepolicy
2. Set selinux.reload_policy=1

Reboot number | Works | ls -l /sepolicy
--------------|-------| -------------------------------------------------------------------
01            | No    | -rw-r--r-- system   system     452157 2015-05-15 01:20 sepolicy
02            | Yes   | -rw-r--r-- system   system     452157 2015-05-15 01:22 sepolicy
03            | Yes   | -rw-r--r-- system   system     452145 2015-05-15 01:24 sepolicy
04            | Yes   | -rw-r--r-- system   system     452145 1969-12-31 19:00 sepolicy ** errno=EPERM
05            | Yes   | -rw-r--r-- system   system     452157 2015-05-15 01:27 sepolicy

Workaround #3:
1. Write to /sepolicy
2. Retry if write fails

Reboot number | Works | ls -l /sepolicy
--------------|-------| -------------------------------------------------------------------
01            | No    | -rw-r--r-- system   system     452157 2015-05-15 01:33 sepolicy

Workaround #4:
1. Write to /sepolicy
2. Retry if write fails
3. Set selinux.reload_policy=1

Reboot number | Works | ls -l /sepolicy
--------------|-------| -------------------------------------------------------------------
01            | Yes   | -rw-r--r-- system   system     452157 2015-05-15 01:39 sepolicy
02            | Yes   | -rw-r--r-- system   system     453261 2015-05-15 01:40 sepolicy ** errno=EROFS, attempts=2
03            | Yes   | -rw-r--r-- system   system     452157 2015-05-15 01:42 sepolicy
04            | Yes   | -rw-r--r-- system   system     453261 2015-05-15 01:43 sepolicy ** errno=EPERM, attempts=2
05            | Yes   | -rw-r--r-- system   system     453261 2015-05-15 01:44 sepolicy ** errno=EROFS, attempts=2
06            | No    | -rw-r--r-- system   system     452157 2015-05-15 01:45 sepolicy

Workaround #5:
1. Don't patch policy in main()
2. Patch policy in connect_to_installd() (after client attempts connect)

Legend:
PMCON = PackageManager connection attempt
SEPOL = SEPolicy patching attempt
INST  = installd connection attempt

Reboot number | Works | Details
--------------|-------| -------------------------------------------------------------------
01            | Yes   | PMCON #2 { SEPOL #1, INST #1 }
02            | Yes   | PMCON #2 { SEPOL #1, INST #1 }
03            | Yes   | PMCON #2 { SEPOL #1, INST #1 }
04            | Yes   | PMCON #2 { SEPOL #1, INST #1 }
05            | Yes   | PMCON #2 { SEPOL #1, INST #1 }
06            | Yes   | PMCON #2 { SEPOL #1, INST #1 }
07            | Yes   | PMCON #2 { SEPOL #1, INST #1 }
08            | Yes   | PMCON #2 { SEPOL #1, INST #1 }
09            | Yes   | PMCON #2 { SEPOL #1, INST #1 }
10            | Yes   | PMCON #2 { SEPOL #1, INST #1 }
11            | Yes   | PMCON #2 { SEPOL #1, INST #1 }
12            | Yes   | PMCON #2 { SEPOL #1, INST #1 }
13            | Yes   | PMCON #2 { SEPOL #1, INST #1 }
14            | Yes   | PMCON #2 { SEPOL #1, INST #1 }
15            | Yes   | PMCON #2 { SEPOL #1, INST #1 }
16            | Yes   | PMCON #2 { SEPOL #1, INST #1 }
17            | Yes   | PMCON #2 { SEPOL #1, INST #1 }
18            | Yes   | PMCON #2 { SEPOL #1, INST #1 }
19            | Yes   | PMCON #2 { SEPOL #1, INST #1 }
20            | Yes   | PMCON #2 { SEPOL #1, INST #1 }

Interesting how a 5 second delay from the retries makes this work 100% of the time. Race conditions...
chenxiaolong pushed a commit that referenced this pull request May 15, 2015
chenxiaolong pushed a commit that referenced this pull request May 17, 2015
… fails to load the first time

The partition mounting has to happen as fast as possible, so the kernel
can load /system/etc/firmware/audience-es705-fw.bin. The kernel module
is supposed to retry if the firmware loading fails, but instead, it
dereferences a NULL pointer. The only reason we didn't see this happen
in AOSP-based ROMs is because the kernel didn't attempt to load the
firmware until about 9.5 seconds into the boot process. The stock
TouchWiz kernels load fast enough where we run into this issue in nearly
every boot.

<3>[    5.554358]  [0:   kworker/u8:3:  197] es70x-codec es704-codec-gen0: es705_core_probe(): request_firmware(audience-es705-fw.bin) failed -2
<7>[    5.724434]  [0:   kworker/u8:3:  197] es70x-codec es704-codec-gen0: es705_core_probe(): exit with error
<3>[    5.724484]  [0:   kworker/u8:3:  197] es70x-codec es704-codec-gen0: es705_slim_probe(): es705_core_probe() failed -2
<7>[    5.724529]  [0:   kworker/u8:3:  197] es70x-codec es704-codec-gen0: es705_slim_probe(): exit with error
<6>[    5.724562]  [0:   kworker/u8:3:  197] es70x-codec es704-codec-gen0: fw_download(): fw download
<1>[    5.724594]  [0:   kworker/u8:3:  197] Unable to handle kernel NULL pointer dereference at virtual address 00000000
<1>[    5.724628]  [0:   kworker/u8:3:  197] pgd = c0004000
<6>[    5.544745]  [0:   kworker/u8:3:  197] slimbus:1 laddr:0x93, EAPC:0x1:0x83
<1>[    5.724668]  [0:   kworker/u8:3:  197] [00000000] *pgd=00000000
<0>[    5.724696]  [0:   kworker/u8:3:  197] Internal error: Oops: 17 [#1] PREEMPT SMP ARM
<4>[    5.724723]  [0:   kworker/u8:3:  197] Modules linked in:
<4>[    5.724746]  [0:   kworker/u8:3:  197] CPU: 0 PID: 197 Comm: kworker/u8:3 Tainted: G        W    3.10.40-gc894dbe-dirty #1
<4>[    5.724787]  [0:   kworker/u8:3:  197] Workqueue: sb-1 slim_report
<4>[    5.724811]  [0:   kworker/u8:3:  197] task: f6694980 ti: f5c16000 task.ti: f5c16000
<4>[    5.724841]  [0:   kworker/u8:3:  197] PC is at es705_bootup+0xc/0xa4
<4>[    5.724882]  [0:   kworker/u8:3:  197] LR is at fw_download+0x24/0x180
<4>[    5.724918]  [0:   kworker/u8:3:  197] pc : [<c097f1bc>]    lr : [<c09803c0>]    psr: 600d0013
<4>[    5.724918]  [0:   kworker/u8:3:  197] sp : f5c17e78  ip : 33403340  fp : f6ed0400
<4>[    5.724988]  [0:   kworker/u8:3:  197] r10: c1418408  r9 : 00000000  r8 : c1570108
<4>[    5.725023]  [0:   kworker/u8:3:  197] r7 : f5901700  r6 : c15989f0  r5 : c154dbe0  r4 : c154dbe0
<4>[    5.725062]  [0:   kworker/u8:3:  197] r3 : 00000000  r2 : a8279b9f  r1 : 600d0093  r0 : c154dbe0
<4>[    5.725102]  [0:   kworker/u8:3:  197] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
<4>[    5.725144]  [0:   kworker/u8:3:  197] Control: 10c5787d  Table: 35bcc06a  DAC: 00000015
<4>[    5.725180]  [0:   kworker/u8:3:  197]
<4>[    5.725180]  [0:   kworker/u8:3:  197] PC: 0xc097f13c:
<4>[    5.725222]  [0:   kworker/u8:3:  197] f13c  0a000003 e5940000 e59f1058 e59f2048 ebee880b e3a00014 ebe01261 e59f1048
<4>[    5.725275]  [0:   kworker/u8:3:  197] f15c  e59f002c ebfffe7ce3a03003 e5940000 e59f1038 e5843340 e3a03004 e59f2018
<4>[    5.725318]  [0:   kworker/u8:3:  197] f17c  e58435a4 e3a03001 e584334c e8bd4010 eaee8842 c154dbe0 c10df694 c0ccb81f
<4>[    5.725361]  [0:   kworker/u8:3:  197] f19c  c1166e53 c1167ae7 c1167b13 904e0000 c1167b3b e92d40f8 e1a04000 e5903008
<4>[    5.725404]  [0:   kworker/u8:3:  197] f1bc  e5933000 e3530000 1a000000 e7f001f2 e2805fca e3a0600b e1a00005 eb084ebe
<4>[    5.725447]  [0:   kworker/u8:3:  197] f1dc  e3a03000 e1a00005 e5843340 eb084e1c e1a00004 e3a01001 ebfff067 e2507000
<4>[    5.725490]  [0:   kworker/u8:3:  197] f1fc  0a000008 e59f1044 e59f2044 e5940000 ebee87db e1a00004 eb0006fe e2566001
<4>[    5.725534]  [0:   kworker/u8:3:  197] f21c  1afffff2 ea000007 e1a00005 eb084eaa e3a03003 e1a00005 e5843340 e3a03004
<4>[    5.725578]  [0:   kworker/u8:3:  197]
<4>[    5.725578]  [0:   kworker/u8:3:  197] LR: 0xc0980340:
<4>[    5.725610]  [0:   kworker/u8:3:  197] 0340  c0ccabc8 c1167f51 c0ccb956 c1599128 c1167f86 c1167faa c1167fcc c1599140
<4>[    5.725664]  [0:   kworker/u8:3:  197] 0360  c1168023 c1167e82 c1168041 c1599158 c1168083 c0ccb9a4 c1599170 c1167eaa
<4>[    5.725718]  [0:   kworker/u8:3:  197] 0380  c11680a6 c1168136 c11680bc c1599188 c1168102 c116805f c1167c05 e92d43f7
<4>[    5.725773]  [0:   kworker/u8:3:  197] 03a0  e1a04000 e59f113c e59f213c e5900000 ebee83b9 e1a00004 e59f6130 ebfffb7b
<4>[    5.725827]  [0:   kworker/u8:3:  197] 03c0  e1a03000 e59f1128 e59f211c e5940000 ebee83b1 e5945164 e1a00005 eb000bb5
<4>[    5.725881]  [0:   kworker/u8:3:  197] 03e0  e30037c2 e19630b3 e3130004 0a000006 e5953178 e2860e7b e1a01005 e59f20f4
<4>[    5.725934]  [0:   kworker/u8:3:  197] 0400  e58d3000 e59f30f0 ebe98619 e59f10ec e3a0300a e1a00005 e2812080 ebff1939
<4>[    5.725989]  [0:   kworker/u8:3:  197] 0420  e30037da e1a07000 e19630b3 e3130004 0a000005 e58d0000 e1a01005 e59f00c0
<4>[    5.726042]  [0:   kworker/u8:3:  197]
<4>[    5.726042]  [0:   kworker/u8:3:  197] SP: 0xf5c17df8:
<4>[    5.726079]  [0:   kworker/u8:3:  197] 7df8  65672d63 c000306e 00000007 a8279b9f f5577600 f5c17e4c c1418408 c097f1bc
<4>[    5.726122]  [0:   kworker/u8:3:  197] 7e18  600d0013 ffffffff f5c17e64 c1570108 00000000 c0b95b98 c154dbe0 600d0093
<4>[    5.726164]  [0:   kworker/u8:3:  197] 7e38  a8279b9f 00000000 c154dbe0 c154dbe0 c15989f0 f5901700 c1570108 00000000
<4>[    5.726207]  [0:   kworker/u8:3:  197] 7e58  c1418408 f6ed0400 33403340 f5c17e78 c09803c0 c097f1bc 600d0013 ffffffff
<4>[    5.726250]  [0:   kworker/u8:3:  197] 7e78  a8279b9f c154dbe0 c154dbe0 c15989f0 f5901700 c09803c0 c154dbe0 600d0093
<4>[    5.726292]  [0:   kworker/u8:3:  197] 7e98  a8279b9f c154dbe0 c154dbe0 c154dbe0 f5901700 c1570108 00000000 c0982d20
<4>[    5.726335]  [0:   kworker/u8:3:  197] 7eb8  00000000 00000083 00000000 000000be 00000002 f55777b4 f55777b4 f74 ec00
<4>[    5.726378]  [0:   kworker/u8:3:  197] 7ed8  f5c16028 c05a7378 c05a7300 c018f1b0 f740ec2c c16b6040 c140b990 00000000
<4>[    5.726423]  [0:   kworker/u8:3:  197]
<4>[    5.726423]  [0:   kworker/u8:3:  197] FP: 0xf6ed0380:
<4>[    5.726465]  [0:   kworker/u8:3:  197] 0380  f5ce24c0 f6ed0a84 f6ed0304 f5ce148c f5ce1480 c148c94c f5ce2540 00000001
<4>[    5.726520]  [0:   kworker/u8:3:  197] 03a0  00000007 00000000 f6ed03a8 f6ed03a8 00000000 00000000 f6895e70 f6ed0abc
<4>[    5.726574]  [0:   kworker/u8:3:  197] 03c0  f6ed033c 00000001 00000000 c1535d8c 00000000 00000000 00000000 00000000
<4>[    5.726628]  [0:   kworker/u8:3:  197] 03e0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[    5.726681]  [0:   kworker/u8:3:  197] 0400  00000000 f740ed58 f55777b4 c05a7300 f5901700 00000000 f6ed0418 f6ed0418
<4>[    5.726735]  [0:   kworker/u8:3:  197] 0420  f6694980 f740ec00 ffff8cf8 00000081 00000003 00000000 00000000 00000000
<4>[    5.726789]  [0:   kworker/u8:3:  197] 0440  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[    5.726842]  [0:   kworker/u8:3:  197] 0460  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[    5.726888]  [0:   kworker/u8:3:  197]
<4>[    5.726888]  [0:   kworker/u8:3:  197] R0: 0xc154db60:
<4>[    5.726921]  [0:   kworker/u8:3:  197] db60  00000000 00000001 00000008 00000000 00000000 00000000 00000000 00000000
<4>[    5.726963]  [0:   kworker/u8:3:  197] db80  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[    5.727005]  [0:   Kworker/u8:3:  197] dba0  00000000 00000000 00000000 00000000 00000000 00000000 c107db65 00000124
<4>[    5.727048]  [0:   kworker/u8:3:  197] dbc0  c0192db0 00000000 00000000 00000000 00000000 c11665eb c0fee353 00000000
<4>[    5.727089]  [0:   kworker/u8:3:  197] dbe0  f5577600 00000000 00000000 00000000 00000000 00000000 63696f76 72675f65
<4>[    5.727132]  [0:   kworker/u8:3:  197] dc00  616d6d61 69622e72 0000006e 00000000 00000000 00000000 00000000 00000000
<4>[    5.727175]  [0:   kworker/u8:3:  197] dc20  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[    5.727220]  [0:   kworker/u8:3:  !97] dc40  00000000 00000000 00000000 00000000 00000000 00000000 00000000 63696f76
<4>[    5.727275]  [0:   kworker/u8:3:  197]
<4>[    5.727275]  [0:   kworker/u8:3:  197] R4: 0xc154db60:
<4>[    5.727317]  [0:   kworker/u8:3:  197] db60  00000000 00000001 00000008 00000000 00000000 00000000 00000000 00000000
<4>[    5.727370]  [0:   kworker/u8:3:  197] db80  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[    5.727423]  [0:   kworker/u8:3:  197] dba0  00000000 00000000 00000000 00000000 00000000 00000000 c107db65 00000124
<4>[    5.727477]  [0:   kworker/u8:3:  197] dbc0  c0192db0 00000000 00000000 00000000 00000000 c11665eb c0fee353 00000000
<4>[    5.727531]  [0:   kworker/u8:3:  197] dbe0  f5577600 00000000 00000000 00000000 00000000 00000000 63696f76 72675f65
<4>[    5.727585]  [0:   kworker/u8:3:  197] dc00  616d6d61 69622e72 0000006e 00000000 00000000 00000000 00000000 00000000
<4>[    5.727638]  [0:   kworker/u8:3:  197] dc20  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[    5.727683]  [0:   kworker/u8:3:  197] dc40  00000000 00000000 00000000 00000000 00000000 00000000 00000000 63696f76
<4>[    5.727726]  [0:   kworker/u8:3:  197]
<4>[    5.727726]  [0:   kworker/u8:3:  197] R5: 0xc154db60:
<4>[    5.727758]  [0:   kworker/u8:3:  197] db60  00000000 00000001 00000008 00000000 00000000 00000000 00000000 00000000
<4>[    5.727800]  [0:   kworker/u8:3:  197] db80  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[    5.727842]  [0:   kworker/u8:3:  197] dba0  00000000 00000000 00000000 00000000 00000000 00000000 c107db65 00000124
<4>[    5.727885]  [0:   kworker/u8:3:  197] dbc0  c0192db0 00000000 00000000 00000000 00000000 c11665eb c0fee353 00000000
<4>[    5.727927]  [0:   kworker/u8:3:  197] dbe0  f5577600 00000000 00000000 00000000 00000000 00000000 63696f76 72675f65
<4>[    5.727969]  [0:   kworker/u8:3:  197] dc00  616d6d61 69622e72 0000006e 00000000 00000000 00000000 00000000 00000000
<4>[    5.728015]  [0:   kworker/u8:3:  197] dc20  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[    5.728069]  [0:   kworker/u8:3:  197] dc40  00000000 00000000 00000000 00000000 00000000 00000000 00000000 63696f76
<4>[    5.728123]  [0:   kworker/u8:3:  197]
<4>[    5.728123]  [0:   kworker/u8:3:  197] R6: 0xc1598970:
<4>[    5.728165]  [0:   kworker/u8:3:  197] 8970  00000be5 00000000 c1164e87 c0cca9c5 c1166591 c1166420 00000aff 00000000
<4>[    5.728220]  [0:   kworker/u8:3:  197] 8990  c1164e87 c0cca9c5 c1166591 c116645b 00000b14 00000000 c1164e87 c0cca9dd
<4>[    5.728275]  [0:   kworker/u8:3:  197] 89b0  c1166591 c1166506 00000b2b 00000000 c1164e87 c0cca994 c1166591 c1164f18
<4>[    5.728329]  [0:   kworker/u8:3:  197] 89d0  00000c11 00000000 c11665eb c0ccaa2c c11665fc c1172b08 00000034 00000000
<4>[    5.728384]  [0:   kworker/u8:3:  197] 89f0  c116862e c0ccac22 c116863c c11666aa 00040cf1 00000000 c116862e c0ccac3c
<4>[    5.728439]  [0:   kworker/u8:3:  197] 8a10  c116863c c1166690 00040b35 00000000 c116862e c0ccac55 c116863c c11666cc
<4>[    5.728483]  [0:   kworker/u8:3:  197] 8a30  00040c99 00000000 c116862e c0ccac68 c116863c c11666dd 00040bba 00000000
<4>[    5.728526]  [0:   kworker/u8:3:  197] 8a50  c116862e c0ccac7b c116863c c11666ec 00040e37 00000000 c116862e c0ccac93
<4>[    5.728568]  [0:   kworker/u8:3:  197]
<4>[    5.728568]  [0:   kworker/u8:3:  197] R7: 0xf5901680:
<4>[    5.728601]  [0:   kworker/u8:3:  197] 1680  0000000a 00000000 f5901700 00000000 00000000 00000000 00000000 00000000
<4>[    5.728644]  [0:   kworker/u8:3:  197] 16a0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[    5.728686]  [0:   kworker/u8:3:  197] 16c0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[    5.728729]  [0:   kworker/u8:3:  197] 16e0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[    5.728771]  [0:   kworker/u8:3:  197] 1700  f740ec00 f5901600 00000000 ffffffff 00000003 00000001 00000000 00000000
<4>[    5.728818]  [0:   kworker/u8:3:  197] 1720  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[    5.728871]  [0:   kworker/u8:3:  197] 1740  00000000 00000000 00000000 00000000 00000001 00000001 f5901758 f5901758
<4>[    5.728924]  [0:   kworker/u8:3:  197] 1760  f5901600 f5901600 f5901768 f5901768 ffffffe0 f5901774 f5901774 c018fcd0
<4>[    5.728979]  [0:   kworker/u8:3:  197]
<4>[    5.728979]  [0:   kworker/u8:3:  197] R8: 0xc1570088:
<4>[    5.729022]  [0:   kworker/u8:3:  197] 0088  00000000 00000000 c11a3f91 00000000 00000000 00000000 00000000 c11a3fa5
<4>[    5.729076]  [0:   kworker/u8:3:  197] 00a8  00000000 00000000 00000000 00000000 c11a3fba 00000000 00000000 00000000
<4>[    5.729130]  [0:   kworker/u8:3:  197] 00c8  00000000 c11a3fc8 00000000 00000000 00000000 00000000 c11a402d 00000000
<4>[    5.729184]  [0:   kworker/u8:3:  197] 00e8  00000000 00000000 00000000 c11a401e 00000000 00000000 00000000 00000000
<4>[    5.729238]  [0:   kworker/u8:3:  197] 0108  c11a406b 00000000 00000000 00000000 00000000 c11a4083 00000000 00000000
<4>[    5.729282]  [0:   kworker/u8:3:  197] 0128  00000000 00000000 c11a4053 00000000 00000000 00000000 00000000 c11a403d
<4>[    5.729324]  [0:   kworker/u8:3:  197] 0148  00000000 00000000 00000000 00000000 c11a4098 00000000 00000000 00000000
<4>[    5.729367]  [0:   kworker/u8:3:  197] 0168  00000000 c11a41b9 00000001 00000000 00000000 f6ec7a88 c11a41e4 00000000
<4>[    5.729410]  [0:   kworker/u8:3:  197]
<4>[    5.729410]  [0:   kworker/u8:3:  197] R10: 0xc1418388:
<4>[    5.729443]  [0:   kworker/u8:3:  197] 8388  c41ad32f 0ec67274 cfcdd6f2 051177a9 5b749545 91a8341e 6e7e1c4c a4a2bd17
<4>[    5.729486]  [0:   kworker/u8:3:  197] 83a8  fac75ffb 301bfea0 f1105a26 3bccfb7d 65a91991 af75b8ca 9b044835 51d8e96e
<4>[    5.729529]  [0:   kworker/u8:3:  197] 83c8  0fbd0b82 c561aad9 046a0e5f ceb6af04 90d34de8 5a0fecb3 a5d9c4e1 6f0565ba
<4>[    5.729572]  [0:   kworker/u8:3:  197] 83e8  31608756 fbbc260d 3ab7828b f06b23d0 ae0ec13c 64d26067 00000000 00000001
<4>[    5.729620]  [0:   kworker/u8:3:  197] 8408  a8279b9f c010c004 ffffffff c0108910 00000009 000fb0d7 c0114ae0 c0114aa4
<4>[    5.729673]  [0:   kworker/u8:3:  197] 8428  00000022 ffffffff 00000000 00000000 00000000 0000000f 0000000f 0000000f
<4>[    5.729727]  [0:   kworker/u8:3:  197] 8448  0000000f 00000000 f743b900 f743b9c0 f743ba80 f743c100 f743bb40 00000000
<4>[    5.729781]  [0:   kworker/u8:3:  197] 8468  00000015 00000001 00000000 00002e7b 00000001 000003e8 00989680 0000006e
<0>[    5.729837]  [0:   kworker/u8:3:  197] Process kworker/u8:3 (pid: 197, stack limit = 0xf5c16238)
<0>[    5.729876]  [0:   kworker/u8:3:  197] Stack: (0xf5c17e78 to 0xf5c18000)
<0>[    5.729908]  [0:   kworker/u8:3:  197] 7e60:                                                       a8279b9f c154dbe0
<0>[    5.729954]  [0:   kworker/u8:3:  197] 7e80: c154dbe0 c15989f0 f5901700 c09803c0 c154dbe0 600d0093 a8279b9f c154dbe0
<0>[    5.730001]  [0:   kworker/u8:3:  197] 7ea0: c154dbe0 c154dbe0 f5901700 c1570108 00000000 c0982d20 00000000 00000083
<0>[    5.730040]  [0:   kworker/u8:3:  197] 7ec0: 00000000 000000be 00000002 f55777b4 f55777b4 f740ec00 f5c16028 c05a7378
<0>[    5.730075]  [0:   kworker/u8:3:  197] 7ee0: c05a7300 c018f1b0 f740ec2c c16b6040 c140b990 00000000 c16b6040 696c7340
<0>[    5.730111]  [0:   kworker/u8:3:  197] 7f00: 65725f6d 74726f70 0078302b a8279b9f f740ec00 f6ed0400 f740ec00 f740ec00
<0>[    5.730147]  [0:   kworker/u8:3:  197] 7f20: f5c16038 f6ed0418 f5c16000 f740ec14 00000000 c018f828 f6ed0400 f5c17f6c
<0>[    5.730183]  [0:   kworker/u8:3:  197] 7f40: 00000000 f7489ea0 00000000 f6ed0400 c018f600 00000000 00000000 00000000
<0>[    5.730218]  [0:   kworker/u8:3:  197] 7f60: 00000000 c01944a4 00000000 00000000 00000000 f6ed0400 00000000 00000000
<0>[    5.730253]  [0:   kworker/u8:3:  197] 7f80: f5c17f80 f5c17f80 00000000 00000000 f5c17f90 f5c17f90 f5c17fac f7489ea0
<0>[    5.730287]  [0:   kworker/u8:3:  197] 7fa0: c0194404 00000000 00000000 c0105f78 00000000 00000000 00000000 00000000
<0>[    5.730325]  [0:   kworker/u8:3:  197] 7fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<0>[    5.730372]  [0:   kworker/u8:3:  197] 7fe0: 00000000 00000000 00000000 00000000 00000013 00000000 67666666 6968687e
<4>[    5.730423]  [0:   kworker/u8:3:  197] [<c097f1bc>] (es705_bootup+0xc/0xa4) from [<c09803c0>] (fw_download+0x24/0x180)
<4>[    5.730472]  [0:   kworker/u8:3:  197] [<c09803c0>] (fw_download+0x24/0x180) from [<c0982d20>] (es705_slim_device_up+0x314/0x3f0)
<4>[    5.730527]  [0:   kworker/u8:3:  197] [<c0982d20>] (es705_slim_device_up+0x314/0x3f0) from [<c05a7378>] (slim_report+0x78/0x7c)
<4>[    5.730583]  [0:   kworker/u8:3:  197] [<c05a7378>] (slim_report+0x78/0x7c) from [<c018f1b0>] (process_one_work+0x2c8/0x47c)
<4>[    5.730634]  [0:   kworker/u8:3:  197] [<c018f1b0>] (process_one_work+0x2c8/0x47c) from [<c018f828>] (worker_thread+0x228/0x35c)
<4>[    5.730689]  [0:   kworker/u8:3:  197] [<c018f828>] (worker_thread+0x228/0x35c) from [<c01944a4>] (kthread+0xa0/0xac)
<4>[    5.730737]  [0:   kworker/u8:3:  197] [<c01944a4>] (kthread+0xa0/0xac) from [<c0105f78>] (ret_from_fork+0x14/0x3c)
<0>[    5.730773]  [0:   kworker/u8:3:  197] Code: c1167b3b e92d40f8 e1a04000 e5903008 (e5933000)
<4>[    5.730808]  [0:   kworker/u8:3:  197] ---[ end trace 468eda9b36db1d03 ]---
<0>[    5.730836]  [0:   kworker/u8:3:  197] Kernel panic - not syncing: Fatal exception
<2>[    5.730870] I[2:    kworker/2:1:   27] CPU2: stopping
<4>[    5.730895] I[2:    kworker/2:1:   27] CPU: 2 PID: 27 Comm: kworker/2:1 Tainted: G      D W    3.10.40-gc894dbe-dirty #1
<4>[    5.730939] I[2:    kworker/2:1:   27] Workqueue: events work_function_firmware_update
<4>[    5.730978] I[2:    kworker/2:1:   27] [<c010c718>] (unwind_backtrace+0x0/0x11c) from [<c0109b58>] (show_stack+0x10/0x14)
<4>[    5.731022] I[2:    kworker/2:1:   27] [<c0109b58>] (show_stack+0x10/0x14) from [<c010bb44>] (handle_IPI+0xe8/0x1ac)
<4>[    5.731064] I[2:    kworker/2:1:   27] [<c010bb44>] (handle_IPI+0xe8/0x1ac) from [<c010050c>] (gic_handle_irq+0x5c/0x70)
<4>[    5.731113] I[2:    kworker/2:1:   27] [<c010050c>] (gic_handle_irq+0x5c/0x70) from [<c0b95c00>] (__irq_svc+0x40/0x70)
<4>[    5.731159] I[2:    kworker/2:1:   27] Exception stack(0xf6f5dd88 to 0xf6f5ddd0)
<4>[    5.731195] I[2:    kworker/2:1:   27] dd80:                   0a553c4d 00000000 fff55000 c010bfec f6f5dddc 0000017f
<4>[    5.731243] I[2:    kworker/2:1:   27] dda0: 00002712 c1463368 00000000 00000000 0000000f f6f15000 00020002 f6f5ddd0
<4>[    5.731289] I[2:    kworker/2:1:   27] ddc0: c010bffc c03c7314 a00f0013 ffffffff
<4>[    5.731331] I[2:    kworker/2:1:   27] [<c0b95c00>] (__irq_svc+0x40/0x70) from [<c03c7314>] (read_current_timer+0x20/0x38)
<4>[    5.731383] I[2:    kworker/2:1:   27] [<c03c7314>] (read_current_timer+0x20/0x38) from [<c03c7350>] (__timer_delay+0x24/0x4c)
<4>[    5.731438] I[2:    kworker/2:1:   27] [<c03c7350>] (__timer_delay+0x24/0x4c) from [<c08f6db8>] (ssp_wait_for_chg.isra.1+0x50/0x8c)
<4>[    5.731495] I[2:    kworker/2:1:   27] [<c08f6db8>] (ssp_wait_for_chg.isra.1+0x50/0x8c) from [<c08f6e10>] (spi_read_wait_chg+0x1c/0x9c)
<4>[    5.731543] I[2:    kworker/2:1:   27] [<c08f6e10>] (spi_read_wait_chg+0x1c/0x9c) from [<c08f6eb0>] (check_bootloader+0x20/0x19c)
<4>[    5.731589] I[2:    kworker/2:1:   27] [<c08f6eb0>] (check_bootloader+0x20/0x19c) from [<c08f746c>] (load_kernel_fw_bootmode+0xac/0x1c0)
<4>[    5.731638] I[2:    kworker/2:1:   27] [<c08f746c>] (load_kernel_fw_bootmode+0xac/0x1c0) from [<c08f7754>] (forced_to_download_binary+0x16c/0x294)
<4>[    5.731687] I[2:    kworker/2:1:   27] [<c08f7754>] (forced_to_download_binary+0x16c/0x294) from [<c08f07a8>] (work_function_firmware_update+0x28/0x64)
<4>[    5.731740] I[2:    kworker/2:1:   27] [<c08f07a8>] (work_function_firmware_update+0x28/0x64) from [<c018f1b0>] (process_one_work+0x2c8/0x47c)
<4>[    5.731788] I[2:    kworker/2:1:   27] [<c018f1b0>] (process_one_work+0x2c8/0x47c) from [<c018f828>] (worker_thread+0x228/0x35c)
<4>[    5.731834] I[2:    kworker/2:1:   27] [<c018f828>] (worker_thread+0x228/0x35c) from [<c01944a4>] (kthread+0xa0/0xac)
<4>[    5.731883] I[2:    kworker/2:1:   27] [<c01944a4>] (kthread+0xa0/0xac) from [<c0105f78>] (ret_from_fork+0x14/0x3c)
<2>[    5.731931] I[3:      swapper/3:    0] CPU3: stopping
<4>[    5.732051] I[3:      swapper/3:    0] CPU: 3 PID: 0 Comm: swapper/3 Tainted: G      D W    3.10.40-gc894dbe-dirty #1
<4>[    5.732113] I[3:      swapper/3:    0] [<c010c718>] (unwind_backtrace+0x0/0x11c) from [<c0109b58>] (show_stack+0x10/0x14)
<4>[    5.732166] I[3:      swapper/3:    0] [<c0109b58>] (show_stack+0x10/0x14) from [<c010bb44>] (handle_IPI+0xe8/0x1ac)
<4>[    5.732215] I[3:      swapper/3:    0] [<c010bb44>] (handle_IPI+0xe8/0x1ac) from [<c010050c>] (gic_handle_irq+0x5c/0x70)
<4>[    5.732267] I[3:      swapper/3:    0] [<c010050c>] (gic_handle_irq+0x5c/0x70) from [<c0b95c00>] (__irq_svc+0x40/0x70)
<4>[    5.730314] I[3:      swapper/3:    0] Exception stack(0xf760bee8 to 0xf760bf30)
<4>[    5.732350] I[3:      swapper/3:    0] bee0:                   005b1542 00000000 00001751 00000000 8d4fdf3b 83126e97
<4>[    5.732391] I[3:      swapper/3:    0] bf00: 00000004 00002736 c59777b0 f5de3754 00000003 000002cb 00000000 f760bf30
<4>[    5.732431] I[3:      swapper/3:    0] bf20: c01b6280 c0155130 00070013 ffffffff
<4>[    5.'32467] I[3:      swapper/3:    0] [<c0b95c00>] (__irq_svc+0x40/0x70) from [<c0155130>] (lpm_cpuidle_enter+0x2b0/0x2d0)
<4>[    5.732516] I[3:      swapper/3:    0] [<c0155130>] (lpm_cpuidle_enter+0x2b0/0x2d0) from [<c0817bdc>] (cpuidle_enter_state+0x3c/0xd8)
<4>[    5.732566] I[3:      swapper/3:    0] [<c0817bdc>] (cpuidle_enter_state+0x3c/0xd8) from [<c0817e10>] (cpuidle_idle_call+0x198/0x288)
<4>[    5.732614] I[3:      swapper/3:    0] [<c0817e10>] (cpuidle_idle_call+0x198/0x288) from [<c0106bbc>] (arch_cpu_idle+0x8/0x38)
<4>[    5.732664] I[3:      swapper/3:    0] [<c0106bbc>] (arch_cpu_idle+0x8/0x38) from [<c01b4fd0>] (cpu_startup_entry+0x17c/0x208)
<4>[    5.732712] I[3:      swapper/3:    0] [<c01b4fd0>] (cpu_startup_entry+0x17c/0x208) from [<00b82fa4>] (0xb82fa4)
<2>[    5.732756] I[1:      swapper/1:    0] CPU1: stopping
<4>[    5.732790] I[1:      swapper/1:    0] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G      D W    3.10.40-gc894dbe-dirty #1
<4>[    5.732858] I[1:      swapper/1:    0] [<c010c718>] (unwind_backtrace+0x0/0x11c) from [<c0109b58>] (show_stack+0x10/0x14)
<4>[    5.732911] I[1:      swapper/1:    0] [<c0109b58>] (show_stack+0x10/0x14) from [<c010bb44>] (handle_IPI+0xe8/0x1ac)
<4>[    5.732960] I[1:      swapper/1:    0] [<c010bb44>] (handle_IPI+0xe8/0x1ac) from [<c010050c>] (gic_handle_irq+0x5c/0x70)
<4>[    5.733012] I[1:      swapper/1:    0] [<c010050c>] (gic_handle_irq+0x5c/0x70) from [<c0b95c00>] (__irq_svc+0x40/0x70)
<4>[    5.733059] I[1:      swapper/1:    0] Exception stack(0xf7607ee8 to 0xf7607f30)
<4>[    5.733095] I[1:      swapper/1:    0] 7ee0:                   00620c19 00000000 00001919 00000000 8d4fdf3b 83126e97
<4>[    5.733143] I[1:      swapper/1:    0] 7f00: 00000004 00009bf5 c59637b0 f5de3754 00000003 000002cb 00000000 f7607f30
<4>[    5.733185] I[1:      swapper/1:    0] 7f20: c01b6280 c0155130 000d0013 ffffffff
<4>[    5.733218] I[1:      swapper/1:    0] [<c0b95c00>] (__irq_svc+0x40/0x70) from [<c0155130>] (lpm_cpuidle_enter+0x2b0/0x2d0)
<4>[    5.733268] I[1:      swapper/1:    0] [<c0155130>] (lpm_cpuidle_enter+0x2b0/0x2d0) from [<c0817bdc>] (cpuidle_enter_state+0x3c/0xd8)
<4>[    5.733316] I[1:     swapper/1:    0] [<c0817bdc>] (cpuidle_enter_state+0x3c/0xd8) from [<c0817e10>] (cpuidle_idle_call+0x198/0x288)
<4>[    5.733363] I[1:      swapper/1:    0] [<c0817e10>] (cpuidle_idle_call+0x198/0x288) from [<c0106bbc>] (arch_cpu_idle+0x8/0x38)
<4>[    5.733413] I[1:      swapper/1:    0] [<c0106bbc>] (arch_cpu_idle+0x8/0x38) from [<c01b4fd0>] (cpu_startup_entry+0x17c/0x208)
<4>[    5.733460] I[1:      swapper/1:    0] [<c01b4fd0>] (cpu_startup_entry+0x17c/0x208) from [<00b82fa4>] (0xb82fa4)
<6>[    5.933584]  [0:   kworker/u8:3:  197] ext-mdm qcom,mdm0.77: signal apq err fatal for graceful restart
<0>[    5.933683]  [0:   kworker/u8:3:  197] (sec_debug_set_upload_magic) 776655ee
<6>[    5.933709]  [0:   kworker/u8:3:  197] sec_debug_set_qc_dload_magic: on=1
<3>[    5.933734]  [0:   kworker/u8:3:  197] set_dload_mode <1> ( c0170000 )
<0>[    5.933804]  [0:   kworker/u8:3:  197] (sec_debug_set_upload_cause) c8
<0>[    5.933832]  [0:   kworker/u8:3:  197] (sec_debug_hw_reset) 3.10.40-gc894dbe-dirty #1 SMP PREEMPT Sat May 16 01:50:09 EDT 2015
<0>[    5.933870]  [0:   kworker/u8:3:  197] (sec_debug_hw_reset) rebooting...
<5>[    5.933935]  [0:   kworker/u8:3:  197] Going down for restart now
<3>[    5.933964]  [0:   kworker/u8:3:  197] set_dload_mode <0> ( c016d72c )
<3>[    5.934568]  [0:   kworker/u8:3:  197] msm_restart_prepare : Normal mode Mode!!
<2>[    5.934660]  [0:   kworker/u8:3:  197] Calling SCM to disable SPMI PMIC arbiter
chenxiaolong pushed a commit that referenced this pull request Aug 7, 2016
chenxiaolong pushed a commit that referenced this pull request Jan 14, 2017
chenxiaolong pushed a commit that referenced this pull request Jan 14, 2017
chenxiaolong pushed a commit that referenced this pull request Feb 11, 2017
chenxiaolong pushed a commit that referenced this pull request Jun 4, 2017
chenxiaolong pushed a commit that referenced this pull request Nov 4, 2017
Some Common codenames of a6000 are used across different ROMs
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants