mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
platform/x86/amd: pmc: Don't try to read SMU version on Picasso
[ Upstream commitb845772677] Picasso doesn't support the command in the uPEP mailbox to try to read the SMU version. Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2449 Fixes:f6045de1f5("platform/x86: amd-pmc: Export Idlemask values based on the APU") Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Link: https://lore.kernel.org/r/20230409185348.556161-2-Shyam-sundar.S-k@amd.com Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
1c1798c45b
commit
d1dbf5b7ea
@@ -373,6 +373,9 @@ static int amd_pmc_get_smu_version(struct amd_pmc_dev *dev)
|
|||||||
int rc;
|
int rc;
|
||||||
u32 val;
|
u32 val;
|
||||||
|
|
||||||
|
if (dev->cpu_id == AMD_CPU_ID_PCO)
|
||||||
|
return -ENODEV;
|
||||||
|
|
||||||
rc = amd_pmc_send_cmd(dev, 0, &val, SMU_MSG_GETSMUVERSION, 1);
|
rc = amd_pmc_send_cmd(dev, 0, &val, SMU_MSG_GETSMUVERSION, 1);
|
||||||
if (rc)
|
if (rc)
|
||||||
return rc;
|
return rc;
|
||||||
|
|||||||
Reference in New Issue
Block a user