OnePlusOSS / android_kernel_oneplus_sm8250

Other
148 stars 127 forks source link

CPU freqency scaling issue. #12

Open swejuggalo opened 3 years ago

swejuggalo commented 3 years ago

I've looked around and haven't really found a good answer or reason for this. This seems to affect firmware from beta 2 and forward (In my case stock firmware and 8 Pro). I have a constant frequency monitor app running and hoping to find a pattern of why and when it happens.

The problem in short can be described as refusal of using freqency lower than 1056MHz. It is still allowed to deep sleep but locked out from using lower freqencies ranges on all CPU cores. This can happen randomly. From within an hour to 1 or 2 days uptime.

I've seen a few commits to CPU scheduler. And some seems to touch this area but I don't really know if they can be the fault of this behavior. Could any recent changes auto adjust the ranges allowed?

For reference. https://forums.oneplus.com/threads/8-pro-beta-3-cpu-frequency-scaling.1340830/

swejuggalo commented 3 years ago

b619cde72cac1c22975ab4c749ff354e99777eaf

097243c4ade69fda9109a85a9c833be27ad6c830

And perhaps most relevant 7816143617e756d121a36e83b4718675af087b85 f1771866469cebed64521e7b9941e5cf9e255d51 6b3fd221aa52877e7c42d2b3e759f18b79139cbb

swejuggalo commented 3 years ago

New discovery. Pretty sure it applies to both 8/9 non Pro and Pro non modified kernels.

Turning OFF Bubbles in system settings removes this issue for me. So bubbles is apparently a trigger of this behaviour.

Problem remains though. Nothing should be able to trigger the CPU to get stuck like this.