cpuidle broken on pine64-pinephone

Describe your issue

CPU power states are managed by the kernel both in clock frequency scaling (cpufreq) and power states (cpuidle)

What's the current behaviour?

It appears that on latest Edge kernel (pkgver=6.1.3_git20230104) the cpuidle driver, set in the Config as follows is not working:

# CPU Power Management
521 #
522
523 #
524 # CPU Idle
525 #
526 CONFIG_CPU_IDLE=y
527 CONFIG_CPU_IDLE_MULTIPLE_DRIVERS=y
528 # CONFIG_CPU_IDLE_GOV_LADDER is not set
529 CONFIG_CPU_IDLE_GOV_MENU=y
530 # CONFIG_CPU_IDLE_GOV_TEO is not set
531 CONFIG_DT_IDLE_STATES=y
532 CONFIG_DT_IDLE_GENPD=y
533
534 #
535 # ARM CPU Idle Drivers
536 #
537 CONFIG_ARM_PSCI_CPUIDLE=y
538 CONFIG_ARM_PSCI_CPUIDLE_DOMAIN=y
539 # end of ARM CPU Idle Drivers
540 # end of CPU Idle

There is no sysfs tree /sys/devices/system/cpu/cpu/cpuidle/...

and the current_driver for cpuidle is shownas none:

pine64-pinephone:~$ cat /sys/devices/system/cpu/cpuidle/current_driver 
none

How to reproduce your issue?

Install PMOS Edge image to emmc, or install a new image to Sdcard with pmbootstrap

(sudo apk add cpupower)

pine64-pinephone:~$ cpupower idle-info
CPUidle driver: none
CPUidle governor: menu
analyzing CPU 0:

CPU 0: No idle states

What device are you using?

pine64-pinephone

On what postmarketOS version did you encounter the issue?

  • edge (master branch)

  • v22.06 (supported until 2023-01-18)

  • v22.12

  • 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?

What's the build date of the image? (in yyyy-mm-dd format)

2023-01-11 (pmbootstrap)

Additional information

Is cpuidle functional on Allwinner A64? I can't find anything to suggest it's not implemented.