Activity log for bug #1956509

Date Who What changed Old value New value Message
2022-01-05 16:39:40 You-Sheng Yang bug added bug
2022-01-05 16:40:56 You-Sheng Yang bug added subscriber Canonical Hardware Enablement
2022-01-05 16:41:00 You-Sheng Yang tags ihv-amd amd ihv-amd oem-priority originate-from-1956507
2022-01-05 17:00:15 Ubuntu Kernel Bot linux (Ubuntu): status New Incomplete
2022-01-05 17:11:54 You-Sheng Yang linux (Ubuntu): status Incomplete Confirmed
2022-04-01 16:16:33 You-Sheng Yang bug task added linux-oem-5.14 (Ubuntu)
2022-04-01 16:16:46 You-Sheng Yang bug task added linux-oem-5.17 (Ubuntu)
2022-04-01 16:16:57 You-Sheng Yang nominated for series Ubuntu Jammy
2022-04-01 16:16:57 You-Sheng Yang bug task added linux (Ubuntu Jammy)
2022-04-01 16:16:57 You-Sheng Yang bug task added linux-oem-5.14 (Ubuntu Jammy)
2022-04-01 16:16:57 You-Sheng Yang bug task added linux-oem-5.17 (Ubuntu Jammy)
2022-04-01 16:16:57 You-Sheng Yang nominated for series Ubuntu Focal
2022-04-01 16:16:57 You-Sheng Yang bug task added linux (Ubuntu Focal)
2022-04-01 16:16:57 You-Sheng Yang bug task added linux-oem-5.14 (Ubuntu Focal)
2022-04-01 16:16:57 You-Sheng Yang bug task added linux-oem-5.17 (Ubuntu Focal)
2022-04-01 16:17:14 You-Sheng Yang linux (Ubuntu Focal): status New Invalid
2022-04-01 16:17:35 You-Sheng Yang linux (Ubuntu Jammy): importance Undecided High
2022-04-01 16:17:35 You-Sheng Yang linux (Ubuntu Jammy): status Confirmed In Progress
2022-04-01 16:17:35 You-Sheng Yang linux (Ubuntu Jammy): assignee You-Sheng Yang (vicamo)
2022-04-01 16:17:49 You-Sheng Yang linux-oem-5.14 (Ubuntu Focal): importance Undecided High
2022-04-01 16:17:49 You-Sheng Yang linux-oem-5.14 (Ubuntu Focal): status New In Progress
2022-04-01 16:17:49 You-Sheng Yang linux-oem-5.14 (Ubuntu Focal): assignee You-Sheng Yang (vicamo)
2022-04-01 16:18:02 You-Sheng Yang linux-oem-5.14 (Ubuntu Jammy): status New Invalid
2022-04-01 16:18:16 You-Sheng Yang linux-oem-5.17 (Ubuntu Focal): status New Invalid
2022-04-01 16:18:31 You-Sheng Yang linux-oem-5.17 (Ubuntu Jammy): importance Undecided High
2022-04-01 16:18:31 You-Sheng Yang linux-oem-5.17 (Ubuntu Jammy): status New In Progress
2022-04-01 16:18:31 You-Sheng Yang linux-oem-5.17 (Ubuntu Jammy): assignee You-Sheng Yang (vicamo)
2022-04-08 02:41:04 You-Sheng Yang description https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/commit/?h=linux-next&id=40181d67f1e9f1ac87af9c0c194e40ab2a081974 $ sudo cpupower frequency-info analyzing CPU 0: driver: amd-pstate CPUs which run at the same hardware frequency: 0 CPUs which need to have their frequency coordinated by software: 0 maximum transition latency: 131 us hardware limits: 400 MHz - 3.10 GHz available cpufreq governors: conservative ondemand userspace powersave performance schedutil current policy: frequency should be within 1.60 GHz and 3.10 GHz. The governor "ondemand" may decide which speed to use within this range. current CPU frequency: Unable to call hardware current CPU frequency: 1.59 GHz (asserted by call to kernel) boost state support: Supported: yes Active: yes Boost States: 0 Total States: 3 Pstate-P0: 3100MHz Pstate-P1: 1800MHz Pstate-P2: 1600MHz [SRU Justification] [Impact] AMD P-State CPU performance scaling driver not yet supported on AMD Zen based CPU series. [Fix] Mainline commits starting at commit d341db8f48ea ("x86/cpufeatures: Add AMD Collaborative Processor Performance Control feature flag") from v5.17. Even this committed, the defconfig will build it as module, and that prevents AMD P-State driver from actually taking effect. Therefore an additional fix to the kernel configs is necessary. [Test Case] $ sudo cpupower frequency-info analyzing CPU 0: driver: amd-pstate CPUs which run at the same hardware frequency: 0 CPUs which need to have their frequency coordinated by software: 0 maximum transition latency: 131 us hardware limits: 400 MHz - 3.10 GHz available cpufreq governors: conservative ondemand userspace powersave performance schedutil current policy: frequency should be within 1.60 GHz and 3.10 GHz. The governor "ondemand" may decide which speed to use within this range. current CPU frequency: Unable to call hardware current CPU frequency: 1.59 GHz (asserted by call to kernel) boost state support: Supported: yes Active: yes Boost States: 0 Total States: 3 Pstate-P0: 3100MHz Pstate-P1: 1800MHz Pstate-P2: 1600MHz [Where problems could occur] The CPPC feature is implemented in two ways depending on underlying HW details for the APU/CPU: * Dedicated MSR * Shared memory The metrics used to measure power/performance efficiency don't show any improvement on the designs that use shared memory. They do show improvements in the MSR designs. So the code will only enable it by default on the MSR implementation. [Other Info] Althought the v5.17 kernel and newer should have already this committed, an additional fix to the kernel configs is necessary, and unstable/oem-5.17 are also nominated (in a separate thread for they don't need other parts but the config). ========== original bug report ========== https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/commit/?h=linux-next&id=40181d67f1e9f1ac87af9c0c194e40ab2a081974 $ sudo cpupower frequency-info analyzing CPU 0:   driver: amd-pstate   CPUs which run at the same hardware frequency: 0   CPUs which need to have their frequency coordinated by software: 0   maximum transition latency: 131 us   hardware limits: 400 MHz - 3.10 GHz   available cpufreq governors: conservative ondemand userspace powersave performance schedutil   current policy: frequency should be within 1.60 GHz and 3.10 GHz.                   The governor "ondemand" may decide which speed to use                   within this range.   current CPU frequency: Unable to call hardware   current CPU frequency: 1.59 GHz (asserted by call to kernel)   boost state support:     Supported: yes     Active: yes     Boost States: 0     Total States: 3     Pstate-P0: 3100MHz     Pstate-P1: 1800MHz     Pstate-P2: 1600MHz
2022-04-22 08:13:45 Timo Aaltonen linux-oem-5.14 (Ubuntu Focal): status In Progress Fix Committed
2022-04-22 08:18:57 Timo Aaltonen linux-oem-5.17 (Ubuntu Jammy): status In Progress Fix Committed
2022-04-28 11:14:42 Ubuntu Kernel Bot tags amd ihv-amd oem-priority originate-from-1956507 amd ihv-amd oem-priority originate-from-1956507 verification-needed-jammy
2022-05-04 07:46:19 Ubuntu Kernel Bot tags amd ihv-amd oem-priority originate-from-1956507 verification-needed-jammy amd ihv-amd oem-priority originate-from-1956507 verification-needed-focal verification-needed-jammy
2022-05-09 07:22:13 You-Sheng Yang tags amd ihv-amd oem-priority originate-from-1956507 verification-needed-focal verification-needed-jammy amd ihv-amd oem-priority originate-from-1956507 verification-done-focal verification-needed-jammy
2022-05-09 07:27:24 You-Sheng Yang tags amd ihv-amd oem-priority originate-from-1956507 verification-done-focal verification-needed-jammy amd ihv-amd oem-priority originate-from-1956507 verification-done-focal verification-done-jammy
2022-05-11 10:16:08 Launchpad Janitor linux-oem-5.14 (Ubuntu Focal): status Fix Committed Fix Released
2022-05-11 10:16:08 Launchpad Janitor cve linked 2022-28390
2022-05-16 10:40:33 Launchpad Janitor linux-oem-5.17 (Ubuntu Jammy): status Fix Committed Fix Released
2022-06-01 00:02:31 Mario Limonciello linux-oem-5.17 (Ubuntu): status Fix Committed Invalid
2022-06-03 07:50:01 Launchpad Janitor linux (Ubuntu Jammy): status In Progress Fix Released
2022-06-03 07:50:01 Launchpad Janitor cve linked 2022-21499
2022-07-29 03:43:17 You-Sheng Yang merge proposal linked https://code.launchpad.net/~vicamo/hwe-next/+git/intermediate-kernel/+merge/427591
2022-09-02 12:07:36 Timo Aaltonen linux (Ubuntu): status In Progress Fix Released
2022-09-02 12:07:46 Timo Aaltonen hwe-next: status New Fix Released
2023-01-17 10:24:08 Anthony Wong nominated for series Ubuntu Kinetic
2023-01-17 10:24:08 Anthony Wong bug task added linux (Ubuntu Kinetic)
2023-01-17 10:24:08 Anthony Wong bug task added linux-oem-5.14 (Ubuntu Kinetic)
2023-01-17 10:24:08 Anthony Wong bug task added linux-oem-5.17 (Ubuntu Kinetic)
2023-01-17 10:24:31 Anthony Wong linux (Ubuntu Kinetic): status New Fix Released
2023-01-17 10:24:50 Anthony Wong linux-oem-5.14 (Ubuntu Kinetic): status New Invalid
2023-01-17 10:25:00 Anthony Wong linux-oem-5.17 (Ubuntu Kinetic): status New Invalid