[Galaxy S 4 i9505 Android Development] kridster:
Today, my S4 suddenly switched off. Luckily I was able to grab a last_kmsg log, which, at least I think, shows some problems with the CPU power management.

This is just an excerpt:

[14327.371183] Freezing of tasks aborted after 0.000 seconds (42 tasks refusing to freeze, wq_busy=0):
[14328.709012] Freezing of tasks aborted after 0.000 seconds (12 tasks refusing to freeze, wq_busy=0):
[14329.579893] ueventd: SELinux: Could not stat /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor: No such file or directory.
[14329.580564] ueventd: SELinux: Could not stat /sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_transition_latency: No such file or directory.
[14329.581235] ueventd: SELinux: Could not stat /sys/devices/system/cpu/cpu2/cpufreq/scaling_available_frequencies: No such file or directory.
[14329.581876] ueventd: SELinux: Could not stat /sys/devices/system/cpu/cpu2/cpufreq/scaling_driver: No such file or directory.
[14329.582548] ueventd: SELinux: Could not stat /sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_cur_freq: No such file or directory.
[14329.583189] ueventd: SELinux: Could not stat /sys/devices/system/cpu/cpu2/cpufreq/cpu_utilization: No such file or directory.
[14329.583829] ueventd: SELinux: Could not stat /sys/devices/system/cpu/cpu2/cpufreq/scaling_available_governors: No such file or directory.
[14329.586332] ueventd: SELinux: Could not stat /sys/devices/system/cpu/cpu2/cpufreq/scaling_cur_freq: No such file or directory.
[14329.586973] ueventd: SELinux: Could not stat /sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_max_freq: No such file or directory.
[14329.587644] ueventd: SELinux: Could not stat /sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_min_freq: No such file or directory.
[14329.588315] ueventd: SELinux: Could not stat /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq: No such file or directory.
[14329.589017] ueventd: SELinux: Could not stat /sys/devices/system/cpu/cpu2/cpufreq/affected_cpus: No such file or directory.
[14329.589750] ueventd: SELinux: Could not stat /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq: No such file or directory.
[14329.590452] ueventd: SELinux: Could not stat /sys/devices/system/cpu/cpu2/cpufreq/related_cpus: No such file or directory.
[14329.591184] ueventd: SELinux: Could not stat /sys/devices/system/cpu/cpu2/cpufreq/scaling_setspeed: No such file or directory.
[14329.627622] ueventd: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/topology: No such file or directory
[14329.628751] ueventd: SELinux: Could not read /sys/devices/system/cpu/cpu2/topology: No such file or directory.
[14332.312620] dpm_run_callback(): platform_pm_suspend+0x0/0x50 returns -16
[14332.312650] PM: Device alarm failed to suspend: error -16
[14332.312681] PM: Some devices failed to suspend
[14393.436491] mdp_enable_irq: MDP IRQ term-0x1 is already set, mask=101 irq=1
[14466.206174] dtv_pipe is not configured yet
[14473.038297] dpm_run_callback(): platform_pm_suspend+0x0/0x50 returns -16
[14473.038297] PM: Device alarm failed to suspend: error -16
[14473.038358] PM: Some devices failed to suspend
[14514.509428] qup_i2c qup_i2c.2: QUP: I2C status flags :0x1343c8, irq:228
[14514.509672] qup_i2c qup_i2c.2: I2C slave addr:0x26 not connected
[14514.509885] MFD is Null
[14517.027372] mdm_power_down_common: MDM2AP_STATUS never went low. Doing a hard reset
[14725.848936] msm_fb_pan_display_ex,2090 fb_0 panel type 8 is suspended
[14752.170560] PMIC Initiated shutdown cpu_power_off cpu=0
[14752.170560] PMIC Initiated shutdown cpu_power_off cpu=2
[14752.171293] PMIC Initiated shutdown cpu_power_off cpu=1
[14752.171781] Powering off the SoC
[14752.172422] Calling scm to disable arbiter
[14752.172788] SCM returned even when asked to busy loop rc=-4
[14752.173368] waiting on pmic to shut msm down

52 Corrected bytes, 0 unrecoverable blocks

There is a lot more "PM: Device alarm failed to suspend: error -16" action going on.

Ideas anyone?