Bug#1063161: Processed: Re: Bug#1063161: Add amd_pmf module

2024-02-07 Thread Mario Limonciello
Yes, please set CONFIG_AMDTEE and CONFIG_AMD_PMF both.  The firmware is 
optional, certain functions for amd-pmf will be non-functional without it.




Processed: Re: Bug#1063161: Add amd_pmf module

2024-02-07 Thread Debian Bug Tracking System
Processing control commands:

> tag -1 moreinfo
Bug #1063161 [src:linux] Add amd_pmf module
Added tag(s) moreinfo.

-- 
1063161: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1063161
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#1063161: Add amd_pmf module

2024-02-07 Thread Diederik de Haas
Control: tag -1 moreinfo

On Monday, 5 February 2024 15:47:08 CET Nate wrote:
> Would be possible to compile it as a module in the kernel ?
> There may be technical limitations that I am not aware of.

The kernel module depends on AMDTEE (Trusted Execution Environment) and I'm 
not sure if you'd need amdtee firmware for that.
In https://bugs.debian.org/1062678 I requested that, but that is about AMD PMF 
TA (Trusted Application) and that *could* be something else.



signature.asc
Description: This is a digitally signed message part.


Bug#1063161: Add amd_pmf module

2024-02-05 Thread Nate
Package: linux-image-amd64
Version: 6.5.10-1~bpo12+1
Severity: normal
X-Debbugs-Cc: nathan.m...@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