platform/x86/amd: pmc: Don't dump data after resume from s0i3 on picasso
authorMario Limonciello <mario.limonciello@amd.com>
Sun, 9 Apr 2023 18:53:43 +0000 (00:23 +0530)
committerHans de Goede <hdegoede@redhat.com>
Tue, 11 Apr 2023 08:37:21 +0000 (10:37 +0200)
commit7abc3618b65304d409d9489d77e4a8f047842fb7
treed9a2ab3b2d1567d3e68c98048558cbee7d3649d5
parent5ec9ee0d464750d72972d5685edf675824e259a1
platform/x86/amd: pmc: Don't dump data after resume from s0i3 on picasso

This command isn't supported on Picasso, so guard against running it
to avoid errors like `SMU cmd unknown. err: 0xfe` in the logs.

Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2449
Fixes: 766205674962 ("platform/x86: amd-pmc: Add support for logging SMU metrics")
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20230409185348.556161-4-Shyam-sundar.S-k@amd.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/amd/pmc.c