latte-dev / android_kernel_xiaomi_latte

Linux 3.14.x Kernel for Cherry-Trail devices
Other
12 stars 12 forks source link

Changing CPU governor cause OS crash #4

Open max20091 opened 7 years ago

max20091 commented 7 years ago

As the title said, I tried to switch to powersave or performance governor cause the OS crash.

tank0412 commented 7 years ago

Attach last_kmsg

harrynowl commented 7 years ago

Yes, please provide logs when creating issues. I can't reproduce this.

max20091 commented 7 years ago

Oh here it is. it send a kernel panic message but I dont see anything suspicious last_kmsg.zip

max20091 commented 7 years ago

And why the CPU can turn on cores even I turned it off? (idk if this caused the kernel panic)

tank0412 commented 7 years ago

It is OK for this CPU to disable all cores before entering a deep sleep. It rebooted due to this: [ 345.254250] RIP [] cpufreq_bootboost_safety_timer+0x32/0x50 So maybe something wrong with this: https://github.com/latte-dev/android_kernel_xiaomi_latte/blob/cm-13.0/drivers/cpufreq/cpufreq_interactive.c#L1468

Anyway, it is a really strange bug. I do not see any suspicious stuff in CPU Frequency scaling of defconfig.