account arrowhead-down arrowhead-up mobile-menu search sm-bold-x x-skinny-rounded x-skinny arrowhead-right social-facebook social-googleplus social-instagram social-linkedin social-pinterest social-qzone social-renren social-tencent social-twitter social-vkontakt social-weibo social-youku social-youtube

Please help us improve our website

Take our customer survey to evaluate your visit.

It should only take a few minutes to answer five quick questions. Just click the Launch survey button at the end of your visit to begin.

cancel
Showing results for 
Search instead for 
Did you mean: 
Welcome to the Open Devices community!

This is where we discuss open source and development related questions on our Open Devices initiative.

Battery falls ~10% as soon as phone removed from charger

Highlighted
Talent
Message 1 of 11
2,951 Views
Message 1 of 11

Battery falls ~10% as soon as phone removed from charger

Just flashed with latest AOSP changes on device that was on stock, and battery almost immediately on 8X% after removed from charger.

It was fine on stock but now not sure what the issue is.

10 REPLIES 10
Highlighted
Emperor
Message 2 of 11
2,942 Views
Message 2 of 11

Re: Battery falls ~10% as soon as phone removed from charger

@rancid

 

What if you flash Sony's firmware once more to narrow down the issue




"I'd rather be hated for who I am, than loved for who I am not." Kurt Cobain (1967-1994)

Highlighted
Developer World
Message 3 of 11
2,935 Views
Message 3 of 11

Re: Battery falls ~10% as soon as phone removed from charger

hi

 

which device are you using ?

 

thanks

Alin

 

Highlighted
Talent
Message 4 of 11
2,925 Views
Message 4 of 11

Re: Battery falls ~10% as soon as phone removed from charger

@devjerpelea

Aries, Z3 compact

 

 

@uliwooly

I was on 23.5.A.0.570 for a while on my second device also z3 compact, ever since I got it back from Sony service centre after getting screen of death, surprisingly I got that device after 1st device got screen of death.

I only used Sony firmware on the second device until a few days ago when I unlocked and flashed latest AOSP.

Before that I only used AOSP/Custom on first device.

Did not have battery issues before, strange both z3c fall ~10 to 12% as soon as removed from charger.

Just tested again after full charge device is almost immediately 88%

 

Regular
Message 5 of 11
2,916 Views
Message 5 of 11

Re: Battery falls ~10% as soon as phone removed from charger

Hey this bug is solved if the new battery data Implementation  is merged our old battery data files are not readable from newer kernels and this bring us a new version 

this will solve the Problem to lose about 15% after unplug it from charger 

https://github.com/sonyxperiadev/kernel/pull/712

Highlighted
Talent
Message 6 of 11
2,911 Views
Message 6 of 11

Re: Battery falls ~10% as soon as phone removed from charger

Great to hear!

Has it been tested already?

 

Guess now the only bug left that I am facing is reboot during calls 

Highlighted
Regular
Message 7 of 11
2,899 Views
Message 7 of 11

Re: Battery falls ~10% as soon as phone removed from charger

Yes i use it on z2 phone and tablet and omnirom has it merged into thier git

Highlighted
Developer World
Message 8 of 11
2,859 Views
Message 8 of 11

Re: Battery falls ~10% as soon as phone removed from charger

Hi

 

May i have a log with the crash

are you using AOSP or what OS?

 

Thanks

Alin

 

Highlighted
Talent
Message 9 of 11
2,853 Views
Message 9 of 11

Re: Battery falls ~10% as soon as phone removed from charger

The following log was after a reboot triggered by crash during call, I received another call, answered and phone rebooted once more, [ I added commits in PR (which now are merged) the battery fix and the video fix, but not this [https://github.com/sonyxperiadev/device-sony-common/commit/5fe7b56e56ab1b0d90539f4ae25655451625aaab] as it was not available:

 

[   11.463866] ueventd: SELinux: Could not get canonical path /sys/devices/qcom,smp2pgpio-ssr-smp2p-4-out.26/gpio/gpiochip287 restorecon: No such file or directory.
[   11.463991] M-Notify: General: 7
[   11.635670] msm_camera_fill_vreg_params:57 i 0 j 0 cam_vdig
[   11.640209] msm_camera_fill_vreg_params:76 i 1 j 1 cam_vio
[   11.645872] msm_camera_fill_vreg_params:95 i 2 j 2 cam_vana
[   11.651231] msm_camera_fill_vreg_params:114 i 3 j 3 cam_vaf
[   11.656949] msm_camera_fill_vreg_params:57 i 2 j 0 cam_vdig
[   11.662340] msm_camera_fill_vreg_params:76 i 3 j 1 cam_vio
[   11.668032] msm_camera_fill_vreg_params:95 i 4 j 2 cam_vana
[   11.673365] msm_camera_fill_vreg_params:114 i 5 j 3 cam_vaf
[   11.679144] msm_camera_pinctrl_init:1247 Getting pinctrl handle failed
[   11.682961] IPC_RTR: ipc_router_create_log_ctx: Unable to create IPC logging for [modem_IPCRTR]
[   11.683463] ueventd: SELinux: Could not get canonical path /sys/devices/qcom,smp2pgpio-ssr-smp2p-4-out.26/gpio/gpiochip287 restorecon: No such file or directory.
[   11.697089] diag: In diag_dci_write_proc, invalid data 0xf3504000, peripheral: 0, len: 527
[   11.698102] ueventd: SELinux: Could not get canonical path /sys/devices/qcom,smp2pgpio-ssr-smp2p-4-out.26/gpio/gpiochip287 restorecon: No such file or directory.
[   11.731947] msm_camera_power_up:1288 Initialization of pinctrl failed
[   11.761409] msm_cci_pinctrl_init:705 devm_pinctrl_get cci_pinctrl failed
[   11.769590] msm_cci_init:827 Initialization of pinctrl failed
[   11.775075]  msm_cci_init: Failed in getting TOP gdscr regulator handle
[   11.781280] imx200b probe succeeded[   11.875576] IRQ39 no longer affine to CPU3

[   11.919013] msm_camera_fill_vreg_params:57 i 0 j 0 cam_vdig
[   11.933744] msm_camera_fill_vreg_params:76 i 1 j 1 cam_vio
[   11.938188] msm_camera_fill_vreg_params:95 i 2 j 2 cam_vana
[   11.946232] msm_camera_fill_vreg_params:95 i 3 j 2 cam_vana
[   11.950789] msm_camera_fill_vreg_params:76 i 4 j 1 cam_vio
[   11.971995] msm_camera_fill_vreg_params:57 i 5 j 0 cam_vdig
[   11.976755] msm_camera_pinctrl_init:1247 Getting pinctrl handle failed
[   11.983037] msm_camera_power_up:1288 Initialization of pinctrl failed
[   12.009721] msm_cci_pinctrl_init:705 devm_pinctrl_get cci_pinctrl failed
[   12.016266] msm_cci_init:827 Initialization of pinctrl failed
[   12.021326]  msm_cci_init: Failed in getting TOP gdscr regulator handle
[   12.028553] imx132 probe succeeded
[   12.154685]  msm_csid_init: Failed in getting TOP gdscr regulator handle
[   12.165825]  msm_csid_init: Failed in getting TOP gdscr regulator handle
[   12.261339] MSM-CPP cpp_init_hardware:1121 stream_cnt:0
[   12.303078] MSM-CPP cpp_release_ion_client:689 Calling ion_client_destroy
[   13.219275] ueventd: SELinux: Could not get canonical path /sys/devices/qcom,smp2pgpio-ssr-smp2p-4-in.25/gpio/gpiochip287 restorecon: No such file or directory.
[   15.224526] ueventd: SELinux: Could not get canonical path /sys/devices/qcom,smp2pgpio-ssr-smp2p-4-out.26/gpio/gpiochip287 restorecon: No such file or directory.
[   17.153593] msm_post_event: Timed out
[   17.156241] Evt_type=8002000 Evt_id=1 Evt_cmd=0
[   17.160731] Evt_session_id=1 Evt_stream_id=0 Evt_arg=-1
[   17.166154] camera_v4l2_open : posting of NEW_SESSION event failed
[   17.172101] camera_v4l2_open : Line 594 rc -110
[   17.179149]  msm_csid_init: Failed in getting TOP gdscr regulator handle
[   17.194545] msm_camera_pinctrl_init:1247 Getting pinctrl handle failed
[   17.200201] msm_camera_power_up:1288 Initialization of pinctrl failed
[   17.204317] MSM-CPP cpp_init_hardware:1121 stream_cnt:0
[   17.231348] msm_cci_pinctrl_init:705 devm_pinctrl_get cci_pinctrl failed
[   17.237210] msm_cci_init:827 Initialization of pinctrl failed
[   17.242876]  msm_cci_init: Failed in getting TOP gdscr regulator handle
[   17.246249] smd_pkt_open: DATA17_CNTL open failed -19
[   17.254803] msm_sensor_config:1298 sensor state 1
[   17.304926] msm_post_event : timeout cannot be negative Line 742
[   17.319035] MSM-CPP cpp_release_ion_client:689 Calling ion_client_destroy
[   17.433569] msm_sensor_config:1325 sensor state 0
[   17.439927]  msm_csid_init: Failed in getting TOP gdscr regulator handle
[   17.453822] msm_camera_pinctrl_init:1247 Getting pinctrl handle failed
[   17.457189] MSM-CPP cpp_init_hardware:1121 stream_cnt:0
[   17.466645] msm_camera_power_up:1288 Initialization of pinctrl failed
[   17.489886] msm_cci_pinctrl_init:705 devm_pinctrl_get cci_pinctrl failed
[   17.495652] msm_cci_init:827 Initialization of pinctrl failed
[   17.501358]  msm_cci_init: Failed in getting TOP gdscr regulator handle
[   17.508259] msm_sensor_config:1298 sensor state 1
[   17.546694] msm_post_event : timeout cannot be negative Line 742
[   17.560244] MSM-CPP cpp_release_ion_client:689 Calling ion_client_destroy
[   17.693581] msm_sensor_config:1325 sensor state 0
[   19.043942] IRQ39 no longer affine to CPU1
[   22.759471] msm_qti_pp_get_rms_value_control, back not active to query rms be_idx:3
[   22.767822] msm_dolby_dap_param_to_get_control_get, port_id not set, do not query ADM
[   22.774799] APR: Wrong parameters
[   22.777921] adm_get_params: Failed to Get Params on port_id 0x0 -22
[   22.784283] msm_dolby_dap_param_visualizer_control_get: get parameters failed
[   22.791908] msm_pcm_volume_ctl_get substream runtime not found
[   22.797363] msm_pcm_volume_ctl_get substream runtime not found
[   22.802992] msm_compr_audio_effects_config_get: stream or effects inactive
[   22.810154] msm_pcm_volume_ctl_get substream runtime not found
[   22.815670] msm_compr_audio_effects_config_get: stream or effects inactive
[   22.822634] msm_compr_audio_effects_config_get: stream or effects inactive
[   22.829587] msm_pcm_volume_ctl_get substream runtime not found
[   23.234152] IRQ39 no longer affine to CPU1
[   34.727695] init: Service 'bootanim' (pid 391) exited with status 0
[   34.738364] init: write_file: Unable to write to '/sys/class/kgsl/kgsl-3d0/devfreq/governor': No such device
[   34.825046] IRQ39 no longer affine to CPU3
[   38.040908] init: Untracked pid 3736 exited with status 91
[   38.058331] init: Untracked pid 3752 exited with status 166
[   38.135588] send_afe_cal_type cal_block not found!!
[   38.265180] init: Untracked pid 3744 exited with status 0
[   38.284348] init: Untracked pid 3755 exited with status 0
[   44.975844] send_afe_cal_type cal_block not found!!
[   49.906717] IRQ39 no longer affine to CPU2
[   51.861687] send_afe_cal_type cal_block not found!!
[   60.117051] send_afe_cal_type cal_block not found!!
[   60.454962] send_afe_cal_type cal_block not found!!
[   60.997400] send_afe_cal_type cal_block not found!!
[   61.051890] send_afe_cal_type cal_block not found!!
[   61.128143] voice_get_cal: No cal data for cal 7!
[   61.131900] voice_send_cvs_register_cal_cmd: Voice_get_cal failed for cal 7!
[   61.139017] voice_get_cal: No cal data for cal 4!
[   61.143676] voice_send_cvp_register_dev_cfg_cmd: Voice_get_cal failed for cal 4!
[   61.151086] voice_get_cal: No cal data for cal 2!
[   61.155955] voice_send_cvp_register_cal_cmd: Voice_get_cal failed for cal 2!
[   61.162779] voice_get_cal: No cal data for cal 3!
[   61.167720] voice_send_cvp_register_vol_cal_cmd: Voice_get_cal failed for cal 3!
[   61.188956] qdsp_cvp_callback: cmd = 0x112c2 returned error = 0x1
[   61.221700] qdsp_cvp_callback: cmd = 0x112c2 returned error = 0x1
[   72.265070] IRQ39 no longer affine to CPU2
[   72.764084] Freezing of tasks aborted after 0.000 seconds
[   72.916308] Unable to handle kernel NULL pointer dereference at virtual address 0000001c
[   72.916321] pgd = f3230000
[   72.916339] [0000001c] *pgd=00000000
[   72.916362] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[   72.916390] CPU: 0 PID: 900 Comm: system_server Not tainted 3.10.96-g5721b96-dirty #1
[   72.916408] task: f33b4200 ti: f2c54000 task.ti: f2c54000
[   72.916451] PC is at snd_pcm_do_suspend+0x44/0x54
[   72.916474] LR is at snd_pcm_action_single+0x38/0x64
[   72.916494] pc : [<c06d2b00>]    lr : [<c06d2760>]    psr: 60000093
[   72.916494] sp : f2c55cd0  ip : ffffa74d  fp : c0dabc28
[   72.916506] r10: 00000002  r9 : c0bc2a81  r8 : c03581bc
[   72.916520] r7 : c0e64438  r6 : 00000000  r5 : c0e53bd4  r4 : c4ba2e00
[   72.916532] r3 : c4ba2e00  r2 : 00000000  r1 : 00000005  r0 : c4ba2e00
[   72.916550] Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment user
[   72.916566] Control: 10c5787d  Table: 3323006a  DAC: 00000015
[   72.916580] Process system_server (pid: 900, stack limit = 0xf2c54238)
[   72.916593] Stack: (0xf2c55cd0 to 0xf2c56000)
[   72.916613] 5cc0:                                     c06d2abc c06d2760 00000000 c4ba2e00
[   72.916638] 5ce0: c4ba2efc a0000013 c0e64438 c06d5098 c4ba2e00 00000002 c4ba2c00 c06d5110
[   72.916662] 5d00: c0e64350 00000039 000005e0 c06eebd8 c06eeae4 00000000 00000000 f3ee3010
[   72.916686] 5d20: 00000002 c03581bc c0bc2a81 c03581e8 00000000 c035cf70 c0d716d0 c003bf34
[   72.916710] 5d40: 00000000 00000000 f3ee3010 f3ee3010 00000002 c1095954 f3ee3044 f3ee3010
[   72.916735] 5d60: c0e1d620 c035e064 000ceb28 f3ee3010 f33b4200 c0fc6f74 c0fc6f74 ffffac00
[   72.916758] 5d80: c0fc6600 c035c804 f2c55d6c ffffffff ffffffff 00000000 00000000 00000000
[   72.916782] 5da0: 00000000 00000000 c0dad480 c30be5bc c0dad480 00000100 c0d75460 c0098b80
[   72.916807] 5dc0: c30be464 c0dad740 60000113 c0d756d4 c30be464 c0099cb4 c0d7c0a4 00003fd0
[   72.916832] 5de0: 02349000 f2c54008 00000001 c0d7c0a8 00000100 f2c54008 c0fc63c0 f2c54000
[   72.916856] 5e00: f2c54000 c00351d8 f3c02740 00000000 00000014 00404040 ffffa74d 00000000
[   72.916878] 5e20: 00000014 c0d76ba8 00000000 c009a9ec 00000000 f33b4200 00000014 c0d76ba8
[   72.916902] 5e40: 00000000 f2c55eac 00000000 c0e1d638 c0e1d640 c000ec34 c5a02000 f2c55e78
[   72.916927] 5e60: c0d833c0 c000860c c035e3fc 60000013 ffffffff c000df40 f34a9c44 00000000
[   72.916950] 5e80: 00000000 f33b4200 f34a9c74 00000000 a8b245d9 c0077ae4 c0ec55c8 00000003
[   72.916973] 5ea0: 00000000 c1095954 f3c04e74 f3ee3074 00000000 c1095954 00000000 c035e19c
[   72.916997] 5ec0: f9da007c 00000010 f9da007c 00000010 00000003 00000003 c0e843e8 f3e5fc80
[   72.917020] 5ee0: f3e5fd80 c096473c b07d62bb c006f0d8 00000003 00000007 c1095954 00000000
[   72.917043] 5f00: 00000003 c006f3e0 c0fc9abc 00000003 00000003 d549a000 f2c55f80 c006e1c8
[   72.917067] 5f20: 00000003 c3afaa80 c3afaa98 c0206814 00000003 c0147ad8 b07d62bb f2c55f80
[   72.917090] 5f40: f3258a80 00000003 f2c54018 00000003 00000000 c00f7994 f3258a80 b07d62bb
[   72.917113] 5f60: 00000000 00000000 f3258a80 00000001 b07d62bb 00000003 00000000 c00f7b1c
[   72.917135] 5f80: 00000000 00000000 00000003 00000005 b07d8044 b07d8044 00000004 c000e504
[   72.917158] 5fa0: f2c54000 c000e380 00000005 b07d8044 00000026 b07d62bb 00000003 00000000
[   72.917182] 5fc0: 00000005 b07d8044 b07d8044 00000004 b07d6480 b07d649b b07d8040 b07d62bb
[   72.917206] 5fe0: b07d625c a168e880 b07d45f3 b6d60164 200f0010 00000026 000029f0 00002a00
[   72.917262] [<c06d2b00>] (snd_pcm_do_suspend+0x44/0x54) from [<c06d2760>] (snd_pcm_action_single+0x38/0x64)
[   72.917308] [<c06d2760>] (snd_pcm_action_single+0x38/0x64) from [<c06d5098>] (snd_pcm_suspend+0x34/0x5c)
[   72.917351] [<c06d5098>] (snd_pcm_suspend+0x34/0x5c) from [<c06d5110>] (snd_pcm_suspend_all+0x50/0x64)
[   72.917404] [<c06d5110>] (snd_pcm_suspend_all+0x50/0x64) from [<c06eebd8>] (snd_soc_suspend+0xf4/0x3a0)
[   72.917447] [<c06eebd8>] (snd_soc_suspend+0xf4/0x3a0) from [<c03581e8>] (platform_pm_suspend+0x2c/0x58)
[   72.917501] [<c03581e8>] (platform_pm_suspend+0x2c/0x58) from [<c035cf70>] (dpm_run_callback+0x44/0x7c)
[   72.917542] [<c035cf70>] (dpm_run_callback+0x44/0x7c) from [<c035e064>] (__device_suspend+0x1f0/0x284)
[   72.917573] [<c035e064>] (__device_suspend+0x1f0/0x284) from [<c035e19c>] (dpm_suspend+0xa4/0x200)
[   72.917612] [<c035e19c>] (dpm_suspend+0xa4/0x200) from [<c006f0d8>] (suspend_devices_and_enter+0xc0/0x258)
[   72.917648] [<c006f0d8>] (suspend_devices_and_enter+0xc0/0x258) from [<c006f3e0>] (pm_suspend+0x170/0x2a0)
[   72.917679] [<c006f3e0>] (pm_suspend+0x170/0x2a0) from [<c006e1c8>] (state_store+0x40/0x68)
[   72.917714] [<c006e1c8>] (state_store+0x40/0x68) from [<c0206814>] (kobj_attr_store+0x14/0x20)
[   72.917751] [<c0206814>] (kobj_attr_store+0x14/0x20) from [<c0147ad8>] (sysfs_write_file+0x104/0x148)
[   72.917800] [<c0147ad8>] (sysfs_write_file+0x104/0x148) from [<c00f7994>] (vfs_write+0xcc/0x1b4)
[   72.917845] [<c00f7994>] (vfs_write+0xcc/0x1b4) from [<c00f7b1c>] (SyS_write+0x38/0x68)
[   72.917893] [<c00f7b1c>] (SyS_write+0x38/0x68) from [<c000e380>] (ret_fast_syscall+0x0/0x38)
[   72.917921] Code: 1a000004 e59320e0 e1a00003 e3a01005 (e592201c) 
[   72.917941] ---[ end trace 1bf6a0b381134eeb ]---
[   72.930692] Kernel panic - not syncing: Fatal exception
[   72.930947] CPU1: stopping
[   72.930980] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G      D      3.10.96-g5721b96-dirty #1
[   72.931045] [<c001393c>] (unwind_backtrace+0x0/0x11c) from [<c0011c68>] (show_stack+0x10/0x14)
[   72.931086] [<c0011c68>] (show_stack+0x10/0x14) from [<c0012c98>] (handle_IPI+0xe0/0x1b8)
[   72.931120] [<c0012c98>] (handle_IPI+0xe0/0x1b8) from [<c0008628>] (gic_handle_irq+0x58/0x60)
[   72.931159] [<c0008628>] (gic_handle_irq+0x58/0x60) from [<c000df40>] (__irq_svc+0x40/0x70)
[   72.931173] Exception stack(0xf3de7ed8 to 0xf3de7f20)
[   72.931191] 7ec0:                                                       f3de7f48 00000010
[   72.931219] 7ee0: c30caea8 00001ae9 0035d345 00000000 006920a3 00000000 8d4fdf3b 83126e97
[   72.931243] 7f00: 00000003 f3de6020 00000008 f3de7f20 c0077b1c c05f5484 00000013 ffffffff
[   72.931296] [<c000df40>] (__irq_svc+0x40/0x70) from [<c05f5484>] (lpm_cpuidle_enter+0x558/0x614)
[   72.931340] [<c05f5484>] (lpm_cpuidle_enter+0x558/0x614) from [<c05f2838>] (cpuidle_enter_state+0x3c/0xd8)
[   72.931378] [<c05f2838>] (cpuidle_enter_state+0x3c/0xd8) from [<c05f29cc>] (cpuidle_idle_call+0xf8/0x154)
[   72.931421] [<c05f29cc>] (cpuidle_idle_call+0xf8/0x154) from [<c000f024>] (arch_cpu_idle+0x8/0x38)
[   72.931464] [<c000f024>] (arch_cpu_idle+0x8/0x38) from [<c0070670>] (cpu_startup_entry+0x1d4/0x268)
[   72.931497] [<c0070670>] (cpu_startup_entry+0x1d4/0x268) from [<009269c4>] (0x9269c4)
[   72.931533] CPU2: stopping
[   72.931610] CPU: 2 PID: 0 Comm: swapper/2 Tainted: G      D      3.10.96-g5721b96-dirty #1
[   72.931715] [<c001393c>] (unwind_backtrace+0x0/0x11c) from [<c0011c68>] (show_stack+0x10/0x14)
[   72.931797] [<c0011c68>] (show_stack+0x10/0x14) from [<c0012c98>] (handle_IPI+0xe0/0x1b8)
[   72.931874] [<c0012c98>] (handle_IPI+0xe0/0x1b8) from [<c0008628>] (gic_handle_irq+0x58/0x60)
[   72.931990] [<c0008628>] (gic_handle_irq+0x58/0x60) from [<c000df40>] (__irq_svc+0x40/0x70)
[   72.932034] Exception stack(0xf3de9ed8 to 0xf3de9f20)
[   72.932089] 9ec0:                                                       f3de9f48 00000010
[   72.932131] 9ee0: c30d5ea8 00001a87 00350f56 00000000 0067a1f3 00000000 8d4fdf3b 83126e97
[   72.932177] 9f00: 00000003 f3de8020 00000008 f3de9f20 c0077b1c c05f5484 00000013 ffffffff
[   72.932352] [<c000df40>] (__irq_svc+0x40/0x70) from [<c05f5484>] (lpm_cpuidle_enter+0x558/0x614)
[   72.932429] [<c05f5484>] (lpm_cpuidle_enter+0x558/0x614) from [<c05f2838>] (cpuidle_enter_state+0x3c/0xd8)
[   72.932469] [<c05f2838>] (cpuidle_enter_state+0x3c/0xd8) from [<c05f29cc>] (cpuidle_idle_call+0xf8/0x154)
[   72.932514] [<c05f29cc>] (cpuidle_idle_call+0xf8/0x154) from [<c000f024>] (arch_cpu_idle+0x8/0x38)
[   72.932561] [<c000f024>] (arch_cpu_idle+0x8/0x38) from [<c0070670>] (cpu_startup_entry+0x1d4/0x268)
[   72.932595] [<c0070670>] (cpu_startup_entry+0x1d4/0x268) from [<009269c4>] (0x9269c4)
[   72.932617] CPU3: stopping
[   72.932650] CPU: 3 PID: 0 Comm: swapper/3 Tainted: G      D      3.10.96-g5721b96-dirty #1
[   72.932720] [<c001393c>] (unwind_backtrace+0x0/0x11c) from [<c0011c68>] (show_stack+0x10/0x14)
[   72.932759] [<c0011c68>] (show_stack+0x10/0x14) from [<c0012c98>] (handle_IPI+0xe0/0x1b8)
[   72.932799] [<c0012c98>] (handle_IPI+0xe0/0x1b8) from [<c0008628>] (gic_handle_irq+0x58/0x60)
[   72.932863] [<c0008628>] (gic_handle_irq+0x58/0x60) from [<c000df40>] (__irq_svc+0x40/0x70)
[   72.932879] Exception stack(0xf3debed8 to 0xf3debf20)
[   72.932896] bec0:                                                       f3debf48 00000010
[   72.932923] bee0: c30e0ea8 00004275 0084eae0 00000000 01039abe 00000000 8d4fdf3b 83126e97
[   72.932947] bf00: 00000003 f3dea020 00000008 f3debf20 c0077b1c c05f5484 00000013 ffffffff
[   72.933003] [<c000df40>] (__irq_svc+0x40/0x70) from [<c05f5484>] (lpm_cpuidle_enter+0x558/0x614)
[   72.933047] [<c05f5484>] (lpm_cpuidle_enter+0x558/0x614) from [<c05f2838>] (cpuidle_enter_state+0x3c/0xd8)
[   72.933084] [<c05f2838>] (cpuidle_enter_state+0x3c/0xd8) from [<c05f29cc>] (cpuidle_idle_call+0xf8/0x154)
[   72.933127] [<c05f29cc>] (cpuidle_idle_call+0xf8/0x154) from [<c000f024>] (arch_cpu_idle+0x8/0x38)
[   72.933172] [<c000f024>] (arch_cpu_idle+0x8/0x38) from [<c0070670>] (cpu_startup_entry+0x1d4/0x268)
[   72.933206] [<c0070670>] (cpu_startup_entry+0x1d4/0x268) from [<009269c4>] (0x9269c4)
[   74.999185] Rebooting in 5 seconds..
[   80.004793] Going down for restart now
[   80.008622] Calling SCM to disable SPMI PMIC arbiter
Highlighted
Talent
Message 10 of 11
2,847 Views
Message 10 of 11

Re: Battery falls ~10% as soon as phone removed from charger

Currently I am compiling AOSP based DU Rom, as for the past year I have been compiling both AOSP and DU only to get the same issues on both.

Recently, the issues I have been facing have been consistent with the Sony open device devs:

I will compile now with latest changes including https://github.com/sonyxperiadev/device-sony-common/commit/5fe7b56e56ab1b0d90539f4ae25655451625aaab , as it was not available the last time I compiled.

 

After adding the iommu patch, Instagram app working well without any crashes on video playback.

But, I did get a crash and reboot ONCE on video in vlc app, unfortunately I have not been able to reproduce crash as with the previous case:

 

[ 7597.010593] mdss_mdp_wb_kickoff: unable to get writeback buf ctl=1
[ 7599.309583] mdss_mdp_wb_kickoff: unable to get writeback buf ctl=1
[ 7602.167080] ------------[ cut here ]------------
[ 7602.170658] kernel BUG at ../../../../../../kernel/sony/msm/drivers/iommu/msm_iommu-v1.c:302!
[ 7602.179168] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM
[ 7602.184983] CPU: 1 PID: 2273 Comm: Binder_2 Not tainted 3.10.96-g5721b96-dirty #1
[ 7602.192446] task: c3bdd800 ti: e0afa000 task.ti: e0afa000
[ 7602.197834] PC is at __sync_tlb+0x54/0x60
[ 7602.201824] LR is at arch_timer_read_counter_long+0x10/0x18
[ 7602.207378] pc : [<c06aa284>]    lr : [<c0013124>]    psr: 600f0013
[ 7602.207378] sp : e0afbb48  ip : 00000008  fp : c5d4803c
[ 7602.218835] r10: f361a990  r9 : f32a72c0  r8 : f3691810
[ 7602.224043] r7 : 00000004  r6 : c0db9efc  r5 : c5d487f4  r4 : 00000000
[ 7602.230553] r3 : 000003c0  r2 : ffe54800  r1 : 00000044  r0 : 00000000
[ 7602.237065] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[ 7602.244183] Control: 10c5787d  Table: 0417806a  DAC: 00000015
[ 7602.249912] Process Binder_2 (pid: 2273, stack limit = 0xe0afa238)
[ 7602.256074] Stack: (0xe0afbb48 to 0xe0afc000)
[ 7602.260415] bb40:                   00000000 c5d48000 c5d48004 c06ab318 00000000 f32a72cc
[ 7602.268576] bb60: 00000001 f3691818 00000001 f32a7280 c5d40000 333e8000 00000004 00000001
[ 7602.276736] bb80: c52aca40 f32a5f00 f32a44a8 f32a44b0 f3309010 f32a7280 c06a7ae8 00000014
[ 7602.284895] bba0: c10c68cc c06a7adc f3668c10 c06a781c f32a7280 00000000 f30e4640 f32a7280
[ 7602.293060] bbc0: f3309010 00000194 f32a4480 c05348b8 00000003 c50ec800 c50d7ff4 c0e3375c
[ 7602.301214] bbe0: 00000001 c0da00b0 c50d7fe0 c0536864 c55149a0 000000d0 00000000 c0d83048
[ 7602.309374] bc00: c5514b00 f3e61280 c0e78400 00000000 f3c0f400 c00c9e7c 00000000 00000041
[ 7602.317533] bc20: c0e778c0 00000000 00000000 df1d0180 00000002 c093699c 00000012 c0047cb0
[ 7602.325699] bc40: 00000000 00000000 c0e33bfc 00000001 00000001 c30cb680 c50cf900 c005a21c
[ 7602.333853] bc60: c0e33bfc f3c2a000 00000002 c003c254 000b2433 200f0013 c0e33bec c50cf900
[ 7602.342015] bc80: 00000004 000000c8 00000002 c50ec800 e0afbccc c50ec84c c50cf900 00000002
[ 7602.350173] bca0: c419d008 c05396cc 00000002 c05386cc 00000001 c50ec800 c50ec800 00000002
[ 7602.358333] bcc0: c50ec87c c0539414 00040000 0000001c 00010005 00000001 00000001 00000018
[ 7602.366493] bce0: 00000001 de590d80 e0afa000 c00f39a0 02354000 c00f2464 e0afa000 c00f26cc
[ 7602.374650] bd00: c0d85414 de590d80 0000008b 00000014 c4d28280 c419d000 c50ec800 00000002
[ 7602.382812] bd20: c419d000 00000002 c419d008 c05396cc d7414ec0 c0539784 c3bdd800 c419d5fc
[ 7602.390972] bd40: c419d000 c0519b14 c419d000 00000003 c419d000 34363248 c0e3375c 00000005
[ 7602.399131] bd60: 00000003 c051dd38 f30e4000 f2b6a900 00000000 c50ec800 f30e4000 c419d000
[ 7602.407290] bd80: de132100 c0e30758 c0e3375c 00000000 de132100 c419d764 f02ac540 c0528150
[ 7602.415450] bda0: 0000001c c020c448 00000000 e0afbe50 e0afbe50 e0afbe50 de132100 c099e2d0
[ 7602.423610] bdc0: f02ac540 c419d764 00000000 c0509a64 de132100 f30e42b8 c0509810 c0e2fc38
[ 7602.431769] bde0: c0cc5605 c050ad78 e0afbe68 e0afbf00 c099e2d0 00000000 00000000 00000000
[ 7602.439929] be00: c0d78b50 c00f2c0c 000080d0 0000008f 00000000 c050aea0 fffffdfd 00000000
[ 7602.448090] be20: c0cc5605 de132100 de132100 b38404b8 00000000 f02ac540 00000000 c050b110
[ 7602.456247] be40: 00000001 00000000 00000003 c050abe0 0000000c 0000000a 00000001 00000000
[ 7602.464409] be60: 00000000 00000000 00000000 00000000 00040257 00000000 ffffffff 00000004
[ 7602.472568] be80: 00000000 00000000 00000000 00000000 e0afbe00 00000000 0000008f 00000000
[ 7602.480727] bea0: 00000000 00000000 00000000 00000001 00000000 00000000 00000000 00000000
[ 7602.488886] bec0: 00000000 0000008f c3c889c8 00000002 c455f220 f30e42b8 c0cc5605 c0e2fb28
[ 7602.497047] bee0: b38404b8 f02ac540 00000012 b38404b8 c4c71598 c0506860 00000000 f02ac540
[ 7602.505208] bf00: 00000012 c0cc5605 00000001 c01059d8 b38404b8 c0106454 c4c200e0 00005605
[ 7602.513366] bf20: c4c71598 00000001 00000012 00000000 b36cea6c c01c5108 00005605 e0afbf50
[ 7602.521526] bf40: c0fca540 c50e0c10 c56c8110 e0af5605 c3c8890b e0afbf44 b383fdc0 00000000
[ 7602.529686] bf60: f02ac540 b38404b8 c0cc5605 00000001 00000012 00000000 b36cea6c c0106550
[ 7602.537846] bf80: 00000012 00000001 b38404b8 b2502000 00000140 b36cf060 00000036 c000e504
[ 7602.546004] bfa0: e0afa000 c000e380 b2502000 00000140 00000012 c0cc5605 b38404b8 b38402b8
[ 7602.554166] bfc0: b2502000 00000140 b36cf060 00000036 b38404b8 00000000 b3840358 b36cea6c
[ 7602.562325] bfe0: b384032c b38402a8 b6a8443d b6a7d9c0 000f0010 00000012 86818583 83838683
[ 7602.570495] [<c06aa284>] (__sync_tlb+0x54/0x60) from [<c06ab318>] (msm_iommu_attach_dev+0x53c/0x708)
[ 7602.579603] [<c06ab318>] (msm_iommu_attach_dev+0x53c/0x708) from [<c06a7adc>] (iommu_attach_device+0x18/0x24)
[ 7602.589499] [<c06a7adc>] (iommu_attach_device+0x18/0x24) from [<c06a781c>] (iommu_group_for_each_dev+0x34/0x58)
[ 7602.599569] [<c06a781c>] (iommu_group_for_each_dev+0x34/0x58) from [<c05348b8>] (venus_hfi_iommu_attach+0xc4/0x158)
[ 7602.609985] [<c05348b8>] (venus_hfi_iommu_attach+0xc4/0x158) from [<c0536864>] (venus_hfi_iface_cmdq_write_nolock+0x484/0xd78)
[ 7602.621361] [<c0536864>] (venus_hfi_iface_cmdq_write_nolock+0x484/0xd78) from [<c05386cc>] (venus_hfi_iface_cmdq_write+0x100/0x144)
[ 7602.633159] [<c05386cc>] (venus_hfi_iface_cmdq_write+0x100/0x144) from [<c0539414>] (venus_hfi_set_default_sys_properties+0x7c/0x24c)
[ 7602.645139] [<c0539414>] (venus_hfi_set_default_sys_properties+0x7c/0x24c) from [<c0539784>] (venus_hfi_session_init+0xb8/0x198)
[ 7602.656686] [<c0539784>] (venus_hfi_session_init+0xb8/0x198) from [<c051dd38>] (msm_comm_try_state+0x350/0xda4)
[ 7602.666756] [<c051dd38>] (msm_comm_try_state+0x350/0xda4) from [<c0528150>] (msm_vdec_s_fmt+0x2f0/0x4f4)
[ 7602.676216] [<c0528150>] (msm_vdec_s_fmt+0x2f0/0x4f4) from [<c0509a64>] (v4l_s_fmt+0x254/0x260)
[ 7602.684895] [<c0509a64>] (v4l_s_fmt+0x254/0x260) from [<c050ad78>] (__video_do_ioctl+0x198/0x284)
[ 7602.693748] [<c050ad78>] (__video_do_ioctl+0x198/0x284) from [<c050b110>] (video_usercopy+0x2ac/0x3e8)
[ 7602.703039] [<c050b110>] (video_usercopy+0x2ac/0x3e8) from [<c0506860>] (v4l2_ioctl+0xd4/0x124)
[ 7602.711719] [<c0506860>] (v4l2_ioctl+0xd4/0x124) from [<c01059d8>] (vfs_ioctl+0x28/0x3c)
[ 7602.719792] [<c01059d8>] (vfs_ioctl+0x28/0x3c) from [<c0106454>] (do_vfs_ioctl+0x4c0/0x570)
[ 7602.728123] [<c0106454>] (do_vfs_ioctl+0x4c0/0x570) from [<c0106550>] (SyS_ioctl+0x4c/0x78)
[ 7602.736460] [<c0106550>] (SyS_ioctl+0x4c/0x78) from [<c000e380>] (ret_fast_syscall+0x0/0x38)
[ 7602.744877] Code: e5963004 e12fff33 e2544001 1afffff6 (e7f001f2) 
[ 7602.750952] ---[ end trace a0531fa3bb4a20b9 ]---
[ 7602.764457] Kernel panic - not syncing: Fatal exception
[ 7602.768796] CPU2: stopping
[ 7602.771362] CPU: 2 PID: 0 Comm: swapper/2 Tainted: G      D      3.10.96-g5721b96-dirty #1
[ 7602.779629] [<c001393c>] (unwind_backtrace+0x0/0x11c) from [<c0011c68>] (show_stack+0x10/0x14)
[ 7602.788207] [<c0011c68>] (show_stack+0x10/0x14) from [<c0012c98>] (handle_IPI+0xe0/0x1b8)
[ 7602.796368] [<c0012c98>] (handle_IPI+0xe0/0x1b8) from [<c0008628>] (gic_handle_irq+0x58/0x60)
[ 7602.804872] [<c0008628>] (gic_handle_irq+0x58/0x60) from [<c000df40>] (__irq_svc+0x40/0x70)
[ 7602.813187] Exception stack(0xf3de9ed8 to 0xf3de9f20)
[ 7602.818222] 9ec0:                                                       f3de9f48 000006ea
[ 7602.826394] 9ee0: c30d5ea8 00001d45 003a8a0b 00000000 0072559d 00000000 8d4fdf3b 83126e97
[ 7602.834550] 9f00: 00000003 f3de8020 00000008 f3de9f20 c0077b1c c05f5484 00000013 ffffffff
[ 7602.842733] [<c000df40>] (__irq_svc+0x40/0x70) from [<c05f5484>] (lpm_cpuidle_enter+0x558/0x614)
[ 7602.851495] [<c05f5484>] (lpm_cpuidle_enter+0x558/0x614) from [<c05f2838>] (cpuidle_enter_state+0x3c/0xd8)
[ 7602.861127] [<c05f2838>] (cpuidle_enter_state+0x3c/0xd8) from [<c05f29cc>] (cpuidle_idle_call+0xf8/0x154)
[ 7602.870678] [<c05f29cc>] (cpuidle_idle_call+0xf8/0x154) from [<c000f024>] (arch_cpu_idle+0x8/0x38)
[ 7602.879620] [<c000f024>] (arch_cpu_idle+0x8/0x38) from [<c0070670>] (cpu_startup_entry+0x1d4/0x268)
[ 7602.888640] [<c0070670>] (cpu_startup_entry+0x1d4/0x268) from [<009269c4>] (0x9269c4)
[ 7602.896433] CPU3: stopping
[ 7602.899146] CPU: 3 PID: 0 Comm: swapper/3 Tainted: G      D      3.10.96-g5721b96-dirty #1
[ 7602.907411] [<c001393c>] (unwind_backtrace+0x0/0x11c) from [<c0011c68>] (show_stack+0x10/0x14)
[ 7602.915986] [<c0011c68>] (show_stack+0x10/0x14) from [<c0012c98>] (handle_IPI+0xe0/0x1b8)
[ 7602.924141] [<c0012c98>] (handle_IPI+0xe0/0x1b8) from [<c0008628>] (gic_handle_irq+0x58/0x60)
[ 7602.932651] [<c0008628>] (gic_handle_irq+0x58/0x60) from [<c000df40>] (__irq_svc+0x40/0x70)
[ 7602.940966] Exception stack(0xf3debed8 to 0xf3debf20)
[ 7602.945999] bec0:                                                       f3debf48 000006ea
[ 7602.954167] bee0: c30e0ea8 00001cff 0039fefa 00000000 00714601 00000000 8d4fdf3b 83126e97
[ 7602.962324] bf00: 00000003 f3dea020 00000008 f3debf20 c0077b1c c05f5484 00000013 ffffffff
[ 7602.970510] [<c000df40>] (__irq_svc+0x40/0x70) from [<c05f5484>] (lpm_cpuidle_enter+0x558/0x614)
[ 7602.979272] [<c05f5484>] (lpm_cpuidle_enter+0x558/0x614) from [<c05f2838>] (cpuidle_enter_state+0x3c/0xd8)
[ 7602.988903] [<c05f2838>] (cpuidle_enter_state+0x3c/0xd8) from [<c05f29cc>] (cpuidle_idle_call+0xf8/0x154)
[ 7602.998455] [<c05f29cc>] (cpuidle_idle_call+0xf8/0x154) from [<c000f024>] (arch_cpu_idle+0x8/0x38)
[ 7603.007397] [<c000f024>] (arch_cpu_idle+0x8/0x38) from [<c0070670>] (cpu_startup_entry+0x1d4/0x268)
[ 7603.016416] [<c0070670>] (cpu_startup_entry+0x1d4/0x268) from [<009269c4>] (0x9269c4)
[ 7603.024203] CPU0: stopping
[ 7603.026898] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G      D      3.10.96-g5721b96-dirty #1
[ 7603.035144] [<c001393c>] (unwind_backtrace+0x0/0x11c) from [<c0011c68>] (show_stack+0x10/0x14)
[ 7603.043731] [<c0011c68>] (show_stack+0x10/0x14) from [<c0012c98>] (handle_IPI+0xe0/0x1b8)
[ 7603.051890] [<c0012c98>] (handle_IPI+0xe0/0x1b8) from [<c0008628>] (gic_handle_irq+0x58/0x60)
[ 7603.060398] [<c0008628>] (gic_handle_irq+0x58/0x60) from [<c000df40>] (__irq_svc+0x40/0x70)
[ 7603.068724] Exception stack(0xc0d7be90 to 0xc0d7bed8)
[ 7603.073762] be80:                                     c0d7bf00 000006ea c30bfea8 000001fa
[ 7603.081921] bea0: 0003f506 00000000 0007ba8f 00000000 8d4fdf3b 83126e97 00000003 c0d7a018
[ 7603.090079] bec0: 00000008 c0d7bed8 c0077b1c c05f5484 00000013 ffffffff
[ 7603.096686] [<c000df40>] (__irq_svc+0x40/0x70) from [<c05f5484>] (lpm_cpuidle_enter+0x558/0x614)
[ 7603.105452] [<c05f5484>] (lpm_cpuidle_enter+0x558/0x614) from [<c05f2838>] (cpuidle_enter_state+0x3c/0xd8)
[ 7603.115083] [<c05f2838>] (cpuidle_enter_state+0x3c/0xd8) from [<c05f29cc>] (cpuidle_idle_call+0xf8/0x154)
[ 7603.124634] [<c05f29cc>] (cpuidle_idle_call+0xf8/0x154) from [<c000f024>] (arch_cpu_idle+0x8/0x38)
[ 7603.133575] [<c000f024>] (arch_cpu_idle+0x8/0x38) from [<c0070670>] (cpu_startup_entry+0x1d4/0x268)
[ 7603.142608] [<c0070670>] (cpu_startup_entry+0x1d4/0x268) from [<c0923968>] (rest_init+0x8c/0xa8)
[ 7603.151370] [<c0923968>] (rest_init+0x8c/0xa8) from [<c0d1aa10>] (start_kernel+0x30c/0x368)
[ 7604.369047] Rebooting in 5 seconds..
[ 7609.372985] Going down for restart now
[ 7609.376494] Calling SCM to disable SPMI PMIC arbiter

The difference is that now the error is at 302,

[ 7602.170658] kernel BUG at ../../../../../../kernel/sony/msm/drivers/iommu/msm_iommu-v1.c:302!

Whereas before it was 307,

[92524.492995] kernel BUG at ../../../../../../kernel/sony/msm/drivers/iommu/msm_iommu-v1.c:307!