diff options
author | Shyam Sundar S K <[email protected]> | 2022-09-23 18:47:24 +0530 |
---|---|---|
committer | Hans de Goede <[email protected]> | 2022-09-27 14:45:21 +0200 |
commit | 22ee98cb696e95b05a188756d479d382d93559ef (patch) | |
tree | 4332713b4e6ea7a3afac16dd19d84a89cbdc0811 /scripts/generate_rust_analyzer.py | |
parent | ea522b806162ca947427f8305310d3c8a3d42d7a (diff) |
platform/x86/amd/pmf: install notify handler after acpi init
It is observed that when thinkpad_acpi driver loads before amd-pmf
driver, thinkpad_acpi driver sends the AMT "on" event and the request
immediately will be part of the PMF BIOS "pending requests".
With the current amd-pmf code, as soon as the amd-pmf driver gets
probed, it calls apmf_acpi_init() where the notify handler will be
installed. Handler callback would call amd_pmf_handle_amt() where the
amd_pmf_set_automode() shall update the auto-mode thermals.
In this case, the auto-mode config_store shall have "zeros", as the
auto mode init gets called during the later stage.
To fix this, change the order of the acpi notifer install and call it
after the auto mode initialization is done.
Fixes: 7d77dcc83ada ("platform/x86/amd/pmf: Handle AMT and CQL events for Auto mode")
Cc: Mario Limonciello <[email protected]>
Cc: Mark Pearson <[email protected]>
Cc: Patil Rajesh Reddy <[email protected]>
Signed-off-by: Shyam Sundar S K <[email protected]>
Reviewed-by: Mario Limonciello <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Hans de Goede <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions