[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1063161: Add amd_pmf module



Package: linux-image-amd64
Version: 6.5.10-1~bpo12+1
Severity: normal
X-Debbugs-Cc: nathan.malo@gmail.com

Hi,

AMD has introduced a feature called Power Management Framework.
See here for more info: https://www.phoronix.com/news/AMD-PMF-Linux-Driver

It seems that this module is not included in the Debian Linux Kernel.
I have found '# CONFIG_AMD_PMF is not set' for the following versions :
- linux-image-6.1.0-11-amd64_6.1.38-4
- linux-image-6.5.0-0.deb12.4-amd64_6.5.10-1~bpo12+1
- linux-image-6.6.13-amd64_6.6.13-1

Enabling this would offer better battery life for AMD Laptops (like my
Framework 13).

A bit of context:
The power-profiles-daemon software gained recently support for amd-pstate
driver, and also gained support to handle simultaneously cpu driver
(amd-pstate) and platform driver (amd-pmf).
(https://gitlab.freedesktop.org/upower/power-profiles-daemon/-/merge_requests/127).
It seems that the power-profiles-daemon in unstable do not include the
commit that allows to handle both drivers at the same time.
So I've installed the power-profile-daemons for jammy from this Ubuntu PPA (https://launchpad.net/~superm1/+archive/ubuntu/ppd/+packages).
And when I list the existing power-profiles I get the following:

user@machine:> sudo powerprofilesctl
  performance:
    CpuDriver:	amd_pstate
    Degraded:   no

* balanced:
    CpuDriver:	amd_pstate
    PlatformDriver:	placeholder

  power-saver:
    CpuDriver:	amd_pstate
    PlatformDriver:	placeholder

This (PlatformDriver: placeholder) indicates that the AMD_PMF module is not included in the kernel.


Would be possible to compile it as a module in the kernel ?
There may be technical limitations that I am not aware of.

Thank your for your time,
Best regards,

Nate
-- System Information:
Debian Release: 12.4
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-0.deb12.4-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages linux-image-amd64 depends on:
ii  linux-image-6.5.0-0.deb12.4-amd64  6.5.10-1~bpo12+1

linux-image-amd64 recommends no packages.

linux-image-amd64 suggests no packages.

-- no debconf information


Reply to: