Add support for AMD PMF Cool and Quiet Framework (CnQF)

Bug #1991609 reported by You-Sheng Yang
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HWE Next
New
Undecided
Unassigned
linux-oem-6.0 (Ubuntu)
Invalid
Undecided
Unassigned
Jammy
Fix Released
High
You-Sheng Yang
Kinetic
Invalid
Undecided
Unassigned

Bug Description

[SRU Justification]

[Impact]

Missing AMD CnQF that will dynamically adjust performance and power
consumption based upon OEM specified metrics on supported systems.

[Fix]

Three commits from linux-next to be backported to oem-6.0 and above.

[Test Case]

To enable this in AMD Phoenix CRB:

  BIOS: AMD PBS > AMD PMF Settings, enable function 11/12 & flag=1

And feature enabled message should appear in dmesg:

  [ 3.203628] amd-pmf AMDI0102:00: registered PMF device successfully

Access via sysfs:

  root@test:/sys/devices/platform/AMDI0102:00# cat cnqf_enable
  on

[Where problems could occur]

This is a new feature and will probably receive some more fixes in the
future. So far we have little, in both kernel and userspace, runtime and
testing, involved.

[Other Info]

This series depends on AMD PMF support in bug 1987670. And since these
patches targets v6.1 and AMD phoenix target oem-6.0, only oem-6.0 and
unstable is nominated for fix.

========== original bug description ==========

CnQF is a feature that will dynamically adjust performance and power consumption based upon OEM specified metrics on supported systems.

This is targeted for 6.1.

platform/x86/amd/pmf: Add support for CnQF
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/commit/?h=for-next&id=1738061c9ec854db2db76be8bb968f550d9bdddc

platform/x86/amd/pmf: Add sysfs to toggle CnQF
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/commit/?h=for-next&id=3dae5825295d7b3284fc349cd6bfa641f4033e16

Documentation/ABI/testing/sysfs-amd-pmf: Add ABI doc for AMD PMF
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/commit/?h=for-next&id=1590ac2c6615329d30e25753e03c295cdaf2ae44

You-Sheng Yang (vicamo)
Changed in linux-oem-6.0 (Ubuntu Kinetic):
status: New → Invalid
Changed in linux-oem-6.0 (Ubuntu Jammy):
status: New → In Progress
tags: added: amd oem-priority originate-from-1990548
Revision history for this message
You-Sheng Yang (vicamo) wrote :

Included in linux-oem-6.0/jammy version 6.0.0-9004.4+exp.10 in https://launchpad.net/~canonical-hwe-team/+archive/ubuntu/intermediate-kernel.

Revision history for this message
You-Sheng Yang (vicamo) wrote :

This depends on patches from https://bugs.launchpad.net/bugs/1987670, AMD PMF support.

Revision history for this message
You-Sheng Yang (vicamo) wrote :
description: updated
Changed in linux-oem-6.0 (Ubuntu Jammy):
importance: Undecided → High
assignee: nobody → You-Sheng Yang (vicamo)
Timo Aaltonen (tjaalton)
Changed in linux-oem-6.0 (Ubuntu Jammy):
status: In Progress → Fix Committed
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote :

This bug is awaiting verification that the linux-oem-6.0/6.0.0-1007.7 kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-jammy' to 'verification-done-jammy'. If the problem still exists, change the tag 'verification-needed-jammy' to 'verification-failed-jammy'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

Revision history for this message
You-Sheng Yang (vicamo) wrote :

Verified linux-oem-6.0/jammy version 6.0.0-1007.7.

tags: added: verification-done-jammy
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (58.3 KiB)

This bug was fixed in the package linux-oem-6.0 - 6.0.0-1007.7

---------------
linux-oem-6.0 (6.0.0-1007.7) jammy; urgency=medium

  * jammy/linux-oem-6.0: 6.0.0-1007.7 -proposed tracker (LP: #1992023)

  * Packaging resync (LP: #1786013)
    - debian/dkms-versions -- update from kernel-versions (main/2022.10.10)

  * AMD Cezanne takes 5 minutes to wake up from suspend (LP: #1993715)
    - SAUCE: platform/x86/amd: pmc: Read SMU version during suspend on Cezanne
      systems

  * Add iommu passthrough quirk for Intel IPU6 on RaptorLake (LP: #1989041)
    - SAUCE: iommu: intel-ipu: use IOMMU passthrough mode for Intel IPUs on Raptor
      Lake

  * RaptorLake: Fix the Screen is shaking by onboard HDMI port in mirror mode
    (LP: #1993561)
    - SAUCE: drm/i915/display: Drop check for doublescan mode in modevalid
    - SAUCE: drm/i915/display: Prune Interlace modes for Display >=12

  * [SRU] SoF for RPL platform support (LP: #1992714)
    - ASoC: Intel: common: add ACPI matching tables for Raptor Lake
    - ASoC: SOF: Intel: pci-tgl: use RPL specific firmware definitions

  * Can only reach PC3 when ethernet is plugged r8169 (LP: #1946433)
    - SAUCE: r8169: Enable chip-specific ASPM regardless of PCIe ASPM status
    - SAUCE: r8169: Use mutex to guard config register locking
    - SAUCE: r8169: Implement dynamic ASPM mechanism

  * [SRU][J/OEM-5.17][PATCH 0/1] Fix oled brightness set above frame-average
    luminance (LP: #1978986)
    - drm: New function to get luminance range based on static hdr metadata
    - drm/amdgpu_dm: Rely on split out luminance calculation function
    - drm/i915: Use luminance range calculated during edid parsing

  * Add support for AMD PMF Cool and Quiet Framework (CnQF) (LP: #1991609)
    - platform/x86/amd/pmf: Add support for CnQF
    - platform/x86/amd/pmf: Add sysfs to toggle CnQF
    - Documentation/ABI/testing/sysfs-amd-pmf: Add ABI doc for AMD PMF

  * TEE Support for CCP driver (LP: #1991608)
    - SAUCE: crypto: ccp: Add support for TEE for PCI ID 0x14CA

  * Jammy update: v6.0.3 upstream stable release (LP: #1994038)
    - ALSA: oss: Fix potential deadlock at unregistration
    - ALSA: rawmidi: Drop register_mutex in snd_rawmidi_free()
    - ALSA: usb-audio: Fix potential memory leaks
    - ALSA: usb-audio: Fix NULL dererence at error path
    - ALSA: hda/realtek: remove ALC289_FIXUP_DUAL_SPK for Dell 5530
    - ALSA: hda/realtek: Correct pin configs for ASUS G533Z
    - ALSA: hda/realtek: Add quirk for ASUS GV601R laptop
    - ALSA: hda/realtek: Add Intel Reference SSID to support headset keys
    - mtd: rawnand: atmel: Unmap streaming DMA mappings
    - io_uring: add custom opcode hooks on fail
    - io_uring/rw: don't lose partial IO result on fail
    - io_uring/net: don't lose partial send/recv on fail
    - io_uring/rw: fix unexpected link breakage
    - io_uring/rw: don't lose short results on io_setup_async_rw()
    - io_uring/net: fix fast_iov assignment in io_setup_async_msg()
    - io_uring/net: don't update msg_name if not provided
    - io_uring: limit registration w/ SINGLE_ISSUER
    - io_uring/net: handle -EINPROGRESS correct for IORING_OP_CONNECT
    - io_uring: correct pinned_vm ac...

Changed in linux-oem-6.0 (Ubuntu Jammy):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.