Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #81765

Bug#1063161: Add amd_pmf module

From Nate <nathan.malo@gmail.com>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#1063161: Add amd_pmf module
Date 2024-02-05 16:00 +0100
Message-ID <I48BY-84QW-13@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


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

Back to linux.debian.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Bug#1063161: Add amd_pmf module Nate <nathan.malo@gmail.com> - 2024-02-05 16:00 +0100
  Processed: Re: Bug#1063161: Add amd_pmf module "Debian Bug Tracking System" <owner@bugs.debian.org> - 2024-02-08 00:20 +0100
  Bug#1063161: Add amd_pmf module Diederik de Haas <didi.debian@cknow.org> - 2024-02-08 00:20 +0100
  Bug#1063161: marked as done (Add amd_pmf module) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2024-05-16 18:10 +0200
  Bug#1063161:  Diederik de Haas <didi.debian@cknow.org> - 2024-05-23 18:20 +0200
    Bug#1063161:  Daniele Gobbetti <daniele-deb@gobbetti.name> - 2024-06-06 11:10 +0200
  Bug#1063161:  Nathan MALO <nathan.malo@gmail.com> - 2024-05-23 17:20 +0200
    Bug#1063161:  Vincent Blut <vincent.debian@free.fr> - 2024-05-23 17:40 +0200
      Bug#1063161:  Diederik de Haas <didi.debian@cknow.org> - 2024-06-25 20:20 +0200
  Processed: Re: Bug#1063161: "Debian Bug Tracking System" <owner@bugs.debian.org> - 2024-06-25 20:20 +0200
  Bug#1063161: marked as done (Add amd_pmf module) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2024-06-28 00:20 +0200
  Bug#1063161: Add amd_pmf module Diederik de Haas <didi.debian@cknow.org> - 2024-06-28 17:50 +0200
  Bug#1063161: Add amd_pmf module Diederik de Haas <didi.debian@cknow.org> - 2024-06-28 18:30 +0200
  Bug#1063161: Add amd_pmf module Diederik de Haas <didi.debian@cknow.org> - 2024-06-28 19:10 +0200
  Bug#1063161: Add amd_pmf module Diederik de Haas <didi.debian@cknow.org> - 2024-06-28 19:50 +0200
  Bug#1063161: Add amd_pmf module Diederik de Haas <didi.debian@cknow.org> - 2024-06-28 20:00 +0200
    Bug#1063161: Add amd_pmf module Nathan MALO <nathan.malo@gmail.com> - 2024-07-01 17:30 +0200
      Bug#1063161: Add amd_pmf module Diederik de Haas <didi.debian@cknow.org> - 2024-07-01 17:40 +0200

csiph-web