[Galaxy S 4 Mini Original Android Development] jakall:
Since 2-3 days I have random reboots, even sometimes reboots before login screen.

kmsg with "mipi_dsi_cmd_dma_tx: dma timeout error"

[ 0.038425] AXI: msm_bus_fabric_init_driver(): msm_bus_fabric_init_driver
[ 0.078589] msm_gpiomux_install: write failure: -22
[ 0.078620] msm_gpiomux_install: write failure: -22
[ 0.078620] msm_gpiomux_install: write failure: -22
[ 0.078650] msm_gpiomux_install: write failure: -22
[ 0.085457] pm8xxx-regulator pm8xxx-regulator.3: Failed to set supply 8921_l29
[ 0.085579] pm8xxx_vreg_probe: regulator_register failed: 8921_l29, rc=-16
[ 0.085609] pm8xxx_vreg_probe: error for 8921_l29, rc=-16
[ 0.093087] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.093087] AXI: msm_bus_rpm_is_mem_interleaved(): Status read for interleaving returned: -22
[ 0.093087] Using interleaved memory by default
[ 0.093300] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.093300] AXI: msm_bus_rpm_is_mem_interleaved(): Status read for interleaving returned: -22
[ 0.093300] Using interleaved memory by default
[ 0.093483] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.093514] AXI: msm_bus_rpm_is_mem_interleaved(): Status read for interleaving returned: -22
[ 0.093514] Using interleaved memory by default
[ 0.093728] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.093728] AXI: msm_bus_rpm_is_mem_interleaved(): Status read for interleaving returned: -22
[ 0.093728] Using interleaved memory by default
[ 0.093911] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.093911] AXI: msm_bus_rpm_is_mem_interleaved(): Status read for interleaving returned: -22
[ 0.093911] Using interleaved memory by default
[ 0.101877] [CAMERA][msm8930_init_cam:1946] Start
[ 0.102334] [msm_camera_gpio_install:274] [Start]
[ 0.792705] smd_channel_probe_worker: allocation table not initialized
[ 0.864886] [mdnie lite] start!
[ 0.865313] [mdnie lite] end!
[ 0.869678] hdmi_msm hdmi_msm.1: external_common_state_create: sysfs group dfbbb008
[ 0.870868] Inside writeback_driver_init
[ 0.871356] Inside writeback_probe
[ 1.136273] wcd9xxx-i2c-core 8-0077: wcd9xxx_i2c_probe:probe for other slaves
[ 1.136273] devices of codec I2C slave Addr = 77
[ 1.147657] wcd9xxx-i2c-core 8-0066: wcd9xxx_i2c_probe:probe for other slaves
[ 1.147688] devices of codec I2C slave Addr = 66
[ 1.159377] wcd9xxx-i2c-core 8-0055: wcd9xxx_i2c_probe:probe for other slaves
[ 1.159377] devices of codec I2C slave Addr = 55
[ 1.198473] mpu6050_input_probe: mpu6050 probe failed
[ 1.316191] msm_otg_sm_work 2361: couldn't get usb power supply
[ 1.326903] imx175_eeprom_init called
[ 1.330108] imx175 spi driver probe
[ 1.334137] imx175_spi_read_id: ReadID:0xf8, 0x12
[ 1.338470] imx175_spi_read : Enter - reg_addr : 0x40
[ 1.343567] imx175_spi_read : Enter - reg_addr : 0x1000
[ 1.349610] imx175_spi_read : Enter - reg_addr : 0x2000
[ 1.354372] imx175_spi_read : Enter - reg_addr : 0x300c
[ 1.371341] imx175_spi_read : Enter - reg_addr : 0x1200
[ 1.376316] imx175_spi_read : Enter - reg_addr : 0x1218
[ 1.393102] imx175_format_calibrationdata: is_all_supported= 1
[ 1.398382] [shchang : imx175_format_afdata] Little Endian!!
[ 1.403815] [shchang : imx175_format_wbdata] Little Endian!!
[ 1.410865] msm_sensor_i2c_probe s5k3h5xa probe succeeded
[ 1.415321] [teddy]msm_sensor_i2c_probe s5k3h5xa sensor_create_node
[ 1.421638] [teddy][../../../../../../../android/p/kernel/samsung/msm8930-common/drivers/media/video/msm/sensors/s5k3h5xa.c::::S5K3H5XA_create_node][1]
[ 1.435006] [teddy][../../../../../../../android/p/kernel/samsung/msm8930-common/drivers/media/video/msm/sensors/s5k3h5xa.c::::S5K3H5XA_create_node][2]
[ 1.448557] [teddy][../../../../../../../android/p/kernel/samsung/msm8930-common/drivers/media/video/msm/sensors/s5k3h5xa.c::::S5K3H5XA_create_node][3]
[ 1.462200] msm_eeprom_probe probe_fail
[ 1.466381] msm_sensor_i2c_probe s5k6a3yx probe succeeded
[ 1.471387] msm_eeprom_probe probe_fail
[ 1.509995] mmc0: No card detect facilities available
[ 1.526964] mmc1: No card detect facilities available
[ 1.548176] gp2a_setup_irq, start
[ 1.551991] gp2a_setup_irq, success
[ 1.678559] soc-audio soc-audio.0: Failed to add Speaker Function: -16
[ 1.738409] tc360_init: init done 0
[ 1.743934] read_ocv_trim: program rev reg is 0x19
[ 1.748084] pm8921_is_usb_chg_plugged_in: called before init
[ 1.757912] pm8921_is_usb_chg_plugged_in: called before init
[ 1.763039] pm8921_is_usb_chg_plugged_in: called before init
[ 1.769174] pm8921_is_batfet_closed: called before init
[ 1.797588] pm8921_is_usb_chg_plugged_in: called before init
[ 1.802838] pm8921_is_batfet_closed: called before init
[ 1.812452] pm8921_usb_ovp_disable: called before init
[ 1.818556] [B]power_supply usb: driver failed to report `present' property: 4294967274[/B]
[ 1.826094] power_supply usb: driver failed to report `present' property: 4294967274
[ 1.833541] power_supply ac: driver failed to report `present' property: 4294967274
[ 1.841538] power_supply ac: driver failed to report `present' property: 4294967274
[ 1.859087] power_supply fuelgauge: driver failed to report `current_max' property: 4294967274
[ 1.870746] power_supply fuelgauge: driver failed to report `current_max' property: 4294967274
[ 1.878712] pm8921_charger_probe: battery(PM8917) cable_type (0)
[ 1.885304] irda_device_init called!
[ 1.889424] barcode_emul_ice4_8930_442: probe complete barcode_emul_probe
[ 2.112559] init: Init cannot set 'ro.boot.mode' to 'charger': Read-only property was already set
[ 2.137250] selinux: SELinux: Could not stat /dev/block: No such file or directory.
[ 2.137250]
[ 2.145856] init: waitid failed: No child processes
[ 2.161483] init: Unable to read config file 'init.carrier.rc': open() failed: No such file or directory
[ 2.180955] init: /init.rc: 31: Could not import file 'init.carrier.rc': No such file or directory
[ 2.189165] init: Unable to read config file '/vendor/etc/init/hw/init.qcom.rc': open() failed: No such file or directory
[ 2.200091] init: /init.rc: 10: Could not import file '/vendor/etc/init/hw/init.qcom.rc': No such file or directory
[ 2.211475] init: Unable to read config file '/system/etc/init': open() failed: No such file or directory
[ 2.220265] init: Unable to read config file '/product/etc/init': open() failed: No such file or directory
[ 2.229971] init: Unable to read config file '/odm/etc/init': open() failed: No such file or directory
[ 2.239188] init: Unable to read config file '/vendor/etc/init': open() failed: No such file or directory
[ 2.274225] ueventd: Unable to read config file '/vendor/ueventd.rc': open() failed: No such file or directory
[ 2.284053] ueventd: Unable to read config file '/odm/ueventd.rc': open() failed: No such file or directory
[ 2.436319] [B]power_supply usb: driver failed to report `health' property: 4294967274[/B]
[ 2.445872] power_supply fuelgauge: driver failed to report `current_max' property: 4294967274
[ 3.319853] init: setpgid failed for console: Operation not permitted
[ 3.783671] tsu6721 15-0025: dev1: 0x40, dev2: 0x0, dev3: 0x2, ADC: 0x1f Jig:eek:FF
[ 3.945643] [mdnie lite] is negative Mode On = 0
[ 3.945673] [mdnie lite] negative off when resume, tuning again!
[ 3.945673] [mdnie lite] mDNIe_Set_Mode start , mode(0), background(1)
[ 3.945704] [mdnie lite] = UI MODE =
[ 3.945704] [mdnie lite] = STANDARD MODE =
[ 3.945734] [mdnie lite] send tuning cmd!!
[ 3.979124] [mdnie lite] mDNIe_Set_Mode end , mode(0), background(1)
[ 3.984434] pm_chg_usb_trim: trim_orig 64 write 0x4a index=2 value 0xa to USB_OVP_TRIM
[ 3.984556] pm8921_set_max_battery_charge_current: pm8921_set_max_battery_charge_current (1500mA)--------
[ 3.987303] [B]power_supply usb: driver failed to report `health' property: 4294967274[/B]
[ 4.129711] pm_chg_usb_trim: trim_orig 64 write 0x4c index=3 value 0xc to USB_OVP_TRIM
[ 4.156416] pm_chg_usb_trim: trim_orig 64 write 0x50 index=4 value 0x10 to USB_OVP_TRIM
[ 4.183091] pm_chg_usb_trim: trim_orig 64 write 0x50 index=5 value 0x10 to USB_OVP_TRIM
[ 4.209735] pm_chg_usb_trim: trim_orig 64 write 0x53 index=6 value 0x13 to USB_OVP_TRIM
[ 4.236380] pm_chg_usb_trim: trim_orig 64 write 0x54 index=7 value 0x14 to USB_OVP_TRIM
[ 4.263085] pm_chg_usb_trim: trim_orig 64 write 0x53 index=8 value 0x13 to USB_OVP_TRIM
[ 4.289363] pm_chg_usb_trim: trim_orig 64 write 0x43 index=9 value 0x3 to USB_OVP_TRIM
[ 4.416175] mdp4_dsi_video_wait4vsync timeout ret=0
[ 5.111857] [mdnie lite] is negative Mode On = 0
[ 5.111887] [mdnie lite] negative off when resume, tuning again!
[ 5.111918] [mdnie lite] mDNIe_Set_Mode start , mode(0), background(1)
[ 5.111918] [mdnie lite] = UI MODE =
[ 5.111948] [mdnie lite] = STANDARD MODE =
[ 5.111948] [mdnie lite] send tuning cmd!!
[ 5.178544] [mdnie lite] mDNIe_Set_Mode end , mode(0), background(1)
[ 5.596032] mdp4_dsi_video_wait4vsync timeout ret=0
[ 6.240256] [mdnie lite] is negative Mode On = 0
[ 6.240286] [mdnie lite] negative off when resume, tuning again!
[ 6.240317] [mdnie lite] mDNIe_Set_Mode start , mode(0), background(1)
[ 6.240317] [mdnie lite] = UI MODE =
[ 6.240347] [mdnie lite] = STANDARD MODE =
[ 6.240347] [mdnie lite] send tuning cmd!!
[ 6.306912] [mdnie lite] mDNIe_Set_Mode end , mode(0), background(1)
[ 12.022737] mdp4_dsi_video_wait4vsync timeout ret=0
[B][ 12.346589] mipi_dsi_cmd_dma_tx: dma timeout error[/B]
[ 12.350862] dumpreg: =============IT's Fail case ==============
[ 12.356966] [0000] : 00000133 00000133 00000133 00000133 (a lot of)
...
[ 12.812086] dumpreg: ============= END ==============
[ 12.817366] dumstate: =============IT's Fail case ==============
[ 12.823042] intr_tot : 00000010
[ 12.826522] intr_underrun_p : 00000000
[ 12.830764] intr_dma_p : 00000000
[ 12.833999] dsi_clk_on : 00000003
[ 12.837540] dsi_clk_off : 00000003
[ 12.841477] intr_dsi : 00000162
[ 12.844712] intr_dsi_mdp : 00000000
[ 12.848405] intr_dsi_cmd : 00000123
[ 12.852403] intr_dsi_err : 00000030
[ 12.855852] mdp_current_clk_on : 00000000
[ 12.859850] dumstate: ============= END ==============
[ 12.877704] [<c0014118>] (unwind_backtrace+0x0/0xec) from [<c0369894>] (mipi_dsi_cmd_dma_tx+0x268/0x344)
[ 12.886952] [<c0369894>] (mipi_dsi_cmd_dma_tx+0x268/0x344) from [<c0369a74>] (mipi_dsi_cmds_tx+0x104/0x17c)
[ 12.896322] [<c0369a74>] (mipi_dsi_cmds_tx+0x104/0x17c) from [<c036a2e4>] (mipi_dsi_cmdlist_tx+0x3c/0x54)
[ 12.906210] [<c036a2e4>] (mipi_dsi_cmdlist_tx+0x3c/0x54) from [<c036a4fc>] (mipi_dsi_cmdlist_commit+0xb0/0xdc)
[ 12.916160] [<c036a4fc>] (mipi_dsi_cmdlist_commit+0xb0/0xdc) from [<c036a608>] (mipi_dsi_cmdlist_put+0xe0/0x110)
[ 12.926354] [<c036a608>] (mipi_dsi_cmdlist_put+0xe0/0x110) from [<c036b160>] (mipi_samsung_disp_send_cmd+0x1b0/0x238)[ 12.936883] [<c036b160>] (mipi_samsung_disp_send_cmd+0x1b0/0x238) from [<c036b2a8>] (mipi_samsung_disp_off+0x38/0x98)[ 12.947535] [<c036b2a8>] (mipi_samsung_disp_off+0x38/0x98) from [<c04408f4>] (device_shutdown+0xb0/0xd0)
[ 12.956966] [<c04408f4>] (device_shutdown+0xb0/0xd0) from [<c00a0cbc>] (kernel_restart+0xc/0x58)
[ 12.965756] [<c00a0cbc>] (kernel_restart+0xc/0x58) from [<c00a0e08>] (sys_reboot+0xf8/0x20c)
[ 12.973844] [<c00a0e08>] (sys_reboot+0xf8/0x20c) from [<c000dea0>] (ret_fast_syscall+0x0/0x30)
[B][ 13.226613] mipi_dsi_cmd_dma_tx: dma timeout error[/B]
[ 13.231100] dumpreg: =============IT's Fail case ==============
[ 13.236716] [0000] : 00000133 00000133 00000133 00000133 (A lot of)
...
[ 13.692110] dumpreg: ============= END ==============
[ 13.697390] dumstate: =============IT's Fail case ==============
[ 13.703097] intr_tot : 00000010
[ 13.706851] intr_underrun_p : 00000000
[ 13.710514] intr_dma_p : 00000000
[ 13.714024] dsi_clk_on : 00000003
[ 13.717869] dsi_clk_off : 00000003
[ 13.721226] intr_dsi : 00000162
[ 13.724767] intr_dsi_mdp : 00000000
[ 13.728704] intr_dsi_cmd : 00000123
[ 13.732153] intr_dsi_err : 00000030
[ 13.735907] mdp_current_clk_on : 00000000
[ 13.740180] dumstate: ============= END ==============
[ 13.745063] -------- Address 00000: -------
[ 13.749183] 00000: 00000000 00000000 00000000 00000000 [B]( a lot of this lines)[/B]

[ 14.749275] ======== dsi clock dump ++++ =====================
[ 14.755165] 0x0130 : 00000000
[ 14.758461] 0x0134 : 00000000
[ 14.761330] 0x0138 : 00002003
[ 14.764199] 0x004c : 00000000
[ 14.767312] 0x0050 : 00000000
[ 14.770639] 0x0054 : 00000003
[ 14.773386] ======== dsi clock dump ---- =====================
[ 14.779673] [<c0014118>] (unwind_backtrace+0x0/0xec) from [<c0369894>] (mipi_dsi_cmd_dma_tx+0x268/0x344)
[ 14.788799] [<c0369894>] (mipi_dsi_cmd_dma_tx+0x268/0x344) from [<c0369a74>] (mipi_dsi_cmds_tx+0x104/0x17c)
[ 14.798840] [<c0369a74>] (mipi_dsi_cmds_tx+0x104/0x17c) from [<c036a2e4>] (mipi_dsi_cmdlist_tx+0x3c/0x54)
[ 14.808332] [<c036a2e4>] (mipi_dsi_cmdlist_tx+0x3c/0x54) from [<c036a4fc>] (mipi_dsi_cmdlist_commit+0xb0/0xdc)
[ 14.818373] [<c036a4fc>] (mipi_dsi_cmdlist_commit+0xb0/0xdc) from [<c036a608>] (mipi_dsi_cmdlist_put+0xe0/0x110)
[ 14.828475] [<c036a608>] (mipi_dsi_cmdlist_put+0xe0/0x110) from [<c036b160>] (mipi_samsung_disp_send_cmd+0x1b0/0x238)[ 14.839127] [<c036b160>] (mipi_samsung_disp_send_cmd+0x1b0/0x238) from [<c036b2a8>] (mipi_samsung_disp_off+0x38/0x98)[ 14.849656] [<c036b2a8>] (mipi_samsung_disp_off+0x38/0x98) from [<c04408f4>] (device_shutdown+0xb0/0xd0)
[ 14.859178] [<c04408f4>] (device_shutdown+0xb0/0xd0) from [<c00a0cbc>] (kernel_restart+0xc/0x58)
[ 14.867602] [<c00a0cbc>] (kernel_restart+0xc/0x58) from [<c00a0e08>] (sys_reboot+0xf8/0x20c)
[ 14.876361] [<c00a0e08>] (sys_reboot+0xf8/0x20c) from [<c000dea0>] (ret_fast_syscall+0x0/0x30)
[ 15.009919] [lcd] mipi_samsung_disp_off
[ 15.014100] usb:: ci13xxx_pullup is_active: 0
[ 15.018129] usb:: ci13xxx_pullup udc->udc_driver->flags:3f
[ 15.023226] usb:: ci13xxx_pullup !udc->vbus_active:1, !udc->driver:0
[ 15.030672] Restarting system.
[ 15.033114] Going down for restart now
[ 15.036868] msm_restart : clear reset flag

No errors detected

another kmsg (staring from the change between the above one)

[ 3.950862] pm_chg_usb_trim: trim_orig 64 write 0x4a index=2 value 0xa to USB_OVP_TRIM
[ 3.950923] pm8921_set_max_battery_charge_current: pm8921_set_max_battery_charge_current (1500mA)--------
[ 3.954066] pm_chg_usb_trim: trim_orig 64 write 0x4c index=3 value 0xc to USB_OVP_TRIM
[ 3.954372] [B]power_supply usb: driver failed to report `health' property: 4294967274[/B]
[ 3.970273] [mdnie lite] is negative Mode On = 0
[ 3.970303] [mdnie lite] negative off when resume, tuning again!
[ 3.970303] [mdnie lite] mDNIe_Set_Mode start , mode(0), background(1)
[ 3.970334] [mdnie lite] = UI MODE =
[ 3.970334] [mdnie lite] = STANDARD MODE =
[ 3.970364] [mdnie lite] send tuning cmd!!
[ 3.978544] pm_chg_usb_trim: trim_orig 64 write 0x50 index=4 value 0x10 to USB_OVP_TRIM
[ 4.005035] pm_chg_usb_trim: trim_orig 64 write 0x50 index=5 value 0x10 to USB_OVP_TRIM
[ 4.032992] pm_chg_usb_trim: trim_orig 64 write 0x53 index=6 value 0x13 to USB_OVP_TRIM
[ 4.038730] [mdnie lite] mDNIe_Set_Mode end , mode(0), background(1)
[ 4.155074] pm_chg_usb_trim: trim_orig 64 write 0x54 index=7 value 0x14 to USB_OVP_TRIM
[ 4.183061] pm_chg_usb_trim: trim_orig 64 write 0x53 index=8 value 0x13 to USB_OVP_TRIM
[ 4.209613] pm_chg_usb_trim: trim_orig 64 write 0x43 index=9 value 0x3 to USB_OVP_TRIM
[ 4.506027] mdp4_dsi_video_wait4vsync timeout ret=0
[ 5.166641] [mdnie lite] is negative Mode On = 0
[ 5.166671] [mdnie lite] negative off when resume, tuning again!
[ 5.166702] [mdnie lite] mDNIe_Set_Mode start , mode(0), background(1)
[ 5.166702] [mdnie lite] = UI MODE =
[ 5.166732] [mdnie lite] = STANDARD MODE =
[ 5.166732] [mdnie lite] send tuning cmd!!
[ 5.233297] [mdnie lite] mDNIe_Set_Mode end , mode(0), background(1)
[ 5.647947] mdp4_dsi_video_wait4vsync timeout ret=0
[ 6.293270] [mdnie lite] is negative Mode On = 0
[ 6.293300] [mdnie lite] negative off when resume, tuning again!
[ 6.293331] [mdnie lite] mDNIe_Set_Mode start , mode(0), background(1)
[ 6.293331] [mdnie lite] = UI MODE =
[ 6.293361] [mdnie lite] = STANDARD MODE =
[ 6.293361] [mdnie lite] send tuning cmd!!
[ 6.359926] [mdnie lite] mDNIe_Set_Mode end , mode(0), background(1)
[ 11.184068] Restarting system.

No errors detected

And something interesting: even if battery was fully charged (100%), after this random reboot it magically loses all the energy to 0% (sometimes less, like 50%). Then it charges until 100%. It's physically, chemically, electrically impossible.

Today after reboot I have boot loop... :(

What to do? Will dirty flashing December build solve the problem?