samsung-m0: max170x driver eating CPU
Describe your issue
What's the expected behaviour?
The IRQ handler use little CPU
What's the current behaviour?
The irq/109-max170xx_battery kernel thread uses 45% of a CPU core
How to reproduce your issue?
Just installed latest edge build for Samsung Galaxy SIII
Note: I had to do the /lib/firmware/brcm/brcmfmac4334-sdio.samsung,i9305.txt
workaround to have wifi. See here for details.
What device are you using?
samsung-m0
On what postmarketOS version did you encounter the issue?
-
edge ( master
branch) -
v22.06
-
I confirm that the issue still is present after running sudo apk upgrade -a
On what environment did you encounter the issue?
Environments
-
Phosh -
Plasma Mobile -
Sxmo (Wayland/Sway) Please post the output of sxmo_version.sh
-
Other: Please fill out
How did you get postmarketOS image?
-
from https://images.postmarketos.org -
I built it using pmbootstrap -
It was preinstalled on my device
What's the build date of the image? (in yyyy-mm-dd format)
20221109-1302
Additional information
vmstat 1
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
r b swpd free buff cache si so bi bo in cs us sy id wa st
2 0 0 36888 2560 107128 0 0 0 0 3683 1459 3 31 66 0 0
1 0 0 36888 2560 107128 0 0 0 0 3551 1304 2 29 69 0 0
2 0 0 37096 2560 107140 0 0 4 0 3544 1487 1 32 66 0 0
2 0 0 37068 2560 107140 0 0 0 0 3553 1383 2 31 67 0 0
1 0 0 37068 2560 107140 0 0 0 0 3633 1449 1 29 70 0 0
^C
ps faux
Load average: 2.86 2.35 2.11 2/392 9825
PID PPID USER STAT VSZ %VSZ CPU %CPU COMMAND
71 2 root SW 0 0% 1 12% [irq/109-max170x]
1814 992 root S 4628 0% 2 7% /sbin/udevd
992 1 root S 4632 0% 0 5% /sbin/udevd
2163 1 root S 7092 1% 3 2% /usr/libexec/upowerd
top -d 1
Tasks: 205 total, 3 running, 202 sleeping, 0 stopped, 0 zombie
%Cpu(s): 2.7 us, 30.3 sy, 0.0 ni, 67.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 995.6 total, 25.7 free, 853.5 used, 116.4 buff/cache
MiB Swap: 0.0 total, 0.0 free, 0.0 used. 44.0 avail Mem
71 root -51 0 0 0 0 S 45.1 0.0 49:18.02 irq/109-max170xx_battery
1814 root 20 0 4628 760 268 S 30.4 0.1 28:30.06 udevd
992 root 20 0 4632 824 340 S 18.6 0.1 17:56.80 udevd
2163 root 20 0 7160 2772 1216 S 9.8 0.3 9:03.02 upowerd
Edited by Administrator