diff options
author | Mario Limonciello <mario.limonciello@amd.com> | 2023-05-13 04:14:08 +0300 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2023-05-15 15:56:13 +0300 |
commit | b54147fa374dbeadcb01b1762db1a793e06e37de (patch) | |
tree | 32e45d2ebf1512f5fad55f2aaf9920baced434da /drivers/platform/surface/aggregator/controller.c | |
parent | 362c1f2ec82cb65940e1c73e15a395a7a891fc6f (diff) | |
download | linux-b54147fa374dbeadcb01b1762db1a793e06e37de.tar.xz |
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: 1a409b35c995 ("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>
Diffstat (limited to 'drivers/platform/surface/aggregator/controller.c')
0 files changed, 0 insertions, 0 deletions