APPLIED Re: [PATCH 0/3][SRU][OEM-6.0] Fix a race condition with AMD PMF and Thinkpad-ACPI

Timo Aaltonen tjaalton at ubuntu.com
Wed Nov 16 16:20:19 UTC 2022


You-Sheng Yang kirjoitti 15.11.2022 klo 9.53:
> From: "You-Sheng Yang (vicamo)" <vicamo.yang at canonical.com>
> 
> BugLink: https://bugs.launchpad.net/bugs/1993242
> 
> [Impact]
> 
> Depending on module load order there is a possibility that the AMT mode
> selected initially by PMF will be incorrect if thinkpad_acpi has loaded
> first.
> 
> [Fix]
> 
> To avoid this issue adjust the initialization order in the PMF driver.
> Commit 22ee98cb696e ("platform/x86/amd/pmf: install notify handler after
> acpi init") takes the work, but it depends on two more commits that were
> tagged as fixes for commits landed in bug 1987670.
> 
> [Test Case]
> 
> 1. blacklist both amd-pmf and thinkpad-acpi
> 2. load thinkpad-acpi first
> 3. Load amd-pmf with dynamic debugging enabled
> 
> [Where problems could occur]
> 
> The first two parts are trivial, and the third one may have to receive
> tests to find out if it has some other interference due to the load
> order.
> 
> [Other Info]
> 
> AMD PMF targets oem-6.0 or above and has included in v6.1-rc1.
> 
> Shyam Sundar S K (3):
>    platform/x86/amd/pmf: Fix undefined reference to platform_profile
>    platform/x86/amd/pmf: Fix clang unused variable warning
>    platform/x86/amd/pmf: install notify handler after acpi init
> 
>   drivers/platform/x86/amd/pmf/Kconfig     |  1 +
>   drivers/platform/x86/amd/pmf/acpi.c      | 38 ++++++++++++++----------
>   drivers/platform/x86/amd/pmf/auto-mode.c |  8 +++--
>   drivers/platform/x86/amd/pmf/core.c      |  4 +++
>   drivers/platform/x86/amd/pmf/pmf.h       |  5 ++--
>   drivers/platform/x86/amd/pmf/sps.c       | 11 ++++---
>   6 files changed, 43 insertions(+), 24 deletions(-)
> 

applied, thanks

-- 
t




More information about the kernel-team mailing list