drm/amd/pm: validate SMU feature enable message for getting feature enabled mask
authorPrike Liang <Prike.Liang@amd.com>
Fri, 11 Feb 2022 03:28:47 +0000 (11:28 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 22 Feb 2022 19:44:36 +0000 (14:44 -0500)
commitf141e251474d673f75e8c16dbdabeb4da3939d7e
treefc2ccd5cc28c91df6a836ac6a953b4769ec56fe3
parent7342bf6530a78ae80b27d9a13bb10a409fdc20ad
drm/amd/pm: validate SMU feature enable message for getting feature enabled mask

There's always miss the SMU feature enabled checked in the NPI phase,
so let validate the SMU feature enable message directly rather than
add more and more MP1 version check.

Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Signed-off-by: Lijo Lazar <Lijo.Lazar@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu11/cyan_skillfish_ppt.c
drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c