1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/platform/x86/amd/pmf
Mario Limonciello b54147fa37 platform/x86/amd/pmf: Fix CnQF and auto-mode after resume
After suspend/resume cycle there is an error message and auto-mode
or CnQF stops working.

[ 5741.447511] amd-pmf AMDI0100:00: SMU cmd failed. err: 0xff
[ 5741.447523] amd-pmf AMDI0100:00: AMD_PMF_REGISTER_RESPONSE:ff
[ 5741.447527] amd-pmf AMDI0100:00: AMD_PMF_REGISTER_ARGUMENT:7
[ 5741.447531] amd-pmf AMDI0100:00: AMD_PMF_REGISTER_MESSAGE:16
[ 5741.447540] amd-pmf AMDI0100:00: [AUTO_MODE] avg power: 0 mW mode: QUIET

This is because the DRAM address used for accessing metrics table
needs to be refreshed after a suspend resume cycle. Add a resume
callback to reset this again.

Fixes: 1a409b35c9 ("platform/x86/amd/pmf: Get performance metrics from PMFW")
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20230513011408.958-1-mario.limonciello@amd.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2023-05-15 14:56:13 +02:00
..
acpi.c Merge branch 'platform-drivers-x86-amd-pmf' into review-hans 2022-09-27 14:57:38 +02:00
auto-mode.c platform/x86/amd/pmf: update to auto-mode limits only after AMT event 2023-01-30 14:30:57 +01:00
cnqf.c platform/x86/amd/pmf: Add helper routine to check pprof is balanced 2023-01-30 14:30:57 +01:00
core.c platform/x86/amd/pmf: Fix CnQF and auto-mode after resume 2023-05-15 14:56:13 +02:00
Kconfig platform/x86/amd/pmf: Move out of BIOS SMN pair for driver probe 2023-04-11 10:37:12 +02:00
Makefile platform/x86/amd/pmf: Add support for CnQF 2022-09-22 17:42:53 +02:00
pmf.h platform/x86/amd/pmf: Fix to update SPS thermals when power supply change 2023-01-30 14:30:57 +01:00
sps.c platform/x86/amd/pmf: Fix to update SPS default pprof thermals 2023-01-30 14:30:57 +01:00