drm/amd/pm: disable GetPptLimit message in sriov mode
Subsystems (3)
PATCH 1/1 drm/amd/pm: disable GetPptLimit message in sriov mode
the pmfw is not allowed GetPptLimit message in virtualzation mode.
Fixes 3e4a01689daa ("drm/amd/pm: Enable sysfs required by rocm-smi toolfor One VF mode")
Signed-off-by Yang Wang <[email protected]>
--- drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c +1 -1
@@ -140,7 +140,7 @@ static struct cmn2asic_msg_mapping sienna_cichlid_message_map[SMU_MSG_MAX_COUNT]MSG_MAP (PrepareMp1ForUnload, PPSMC_MSG_PrepareMp1ForUnload,1 ),MSG_MAP (AllowGfxOff, PPSMC_MSG_AllowGfxOff,0 ),MSG_MAP (DisallowGfxOff, PPSMC_MSG_DisallowGfxOff,0 ), -MSG_MAP (GetPptLimit, PPSMC_MSG_GetPptLimit,1 ), +MSG_MAP (GetPptLimit, PPSMC_MSG_GetPptLimit,0 ),MSG_MAP (GetDcModeMaxDpmFreq, PPSMC_MSG_GetDcModeMaxDpmFreq,1 ),MSG_MAP (ExitBaco, PPSMC_MSG_ExitBaco,0 ), MSG_MAP(PowerUpVcn, PPSMC_MSG_PowerUpVcn, 0),
Signature · 1 line
2.25.1
Quoted 2 lines · Yang Wang
the pmfw is not allowed GetPptLimit message in virtualzation mode.
Maybe rephrase as - "PPT limit cannot be queried from VF".
Reviewed-by Lijo Lazar <[email protected]>
Thanks,
Lijo
Quoted 21 lines
Fixes 3e4a01689daa ("drm/amd/pm: Enable sysfs required by rocm-smi toolfor One VF mode")Signed-off-by Yang Wang <[email protected]>--- drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c +1
-1@@ -140,7 +140,7 @@ static struct cmn2asic_msg_mapping sienna_cichlid_message_map[SMU_MSG_MAX_COUNT]MSG_MAP (PrepareMp1ForUnload, PPSMC_MSG_PrepareMp1ForUnload,1 ),MSG_MAP (AllowGfxOff, PPSMC_MSG_AllowGfxOff,0 ),MSG_MAP (DisallowGfxOff, PPSMC_MSG_DisallowGfxOff,0 ), -MSG_MAP (GetPptLimit, PPSMC_MSG_GetPptLimit,1 ), +MSG_MAP (GetPptLimit, PPSMC_MSG_GetPptLimit,0 ),MSG_MAP (GetDcModeMaxDpmFreq, PPSMC_MSG_GetDcModeMaxDpmFreq,1 ),MSG_MAP (ExitBaco, PPSMC_MSG_ExitBaco,0 ), MSG_MAP(PowerUpVcn, PPSMC_MSG_PowerUpVcn, 0),
Reviewed-by Kenneth Feng <[email protected]>
-----Original Message-----
From: Wang, Yang(Kevin) <[email protected]>
Sent: Tuesday, February 8, 2022 12:30 PM
To: [email protected]
Cc: Feng, Kenneth <[email protected]>; Lazar, Lijo <[email protected]>; Nikolic, Marina <[email protected]>; Wang, Yang(Kevin) <[email protected]>
Subject: [PATCH] drm/amd/pm: disable GetPptLimit message in sriov mode
the pmfw is not allowed GetPptLimit message in virtualzation mode.
Fixes 3e4a01689daa ("drm/amd/pm: Enable sysfs required by rocm-smi toolfor One VF mode")
Signed-off-by Yang Wang <[email protected]>
--- drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c +1 -1
@@ -140,7 +140,7 @@ static struct cmn2asic_msg_mapping sienna_cichlid_message_map[SMU_MSG_MAX_COUNT]MSG_MAP (PrepareMp1ForUnload, PPSMC_MSG_PrepareMp1ForUnload,1 ),MSG_MAP (AllowGfxOff, PPSMC_MSG_AllowGfxOff,0 ),MSG_MAP (DisallowGfxOff, PPSMC_MSG_DisallowGfxOff,0 ), -MSG_MAP (GetPptLimit, PPSMC_MSG_GetPptLimit,1 ), +MSG_MAP (GetPptLimit, PPSMC_MSG_GetPptLimit,0 ),MSG_MAP (GetDcModeMaxDpmFreq, PPSMC_MSG_GetDcModeMaxDpmFreq,1 ),MSG_MAP (ExitBaco, PPSMC_MSG_ExitBaco,0 ), MSG_MAP(PowerUpVcn, PPSMC_MSG_PowerUpVcn, 0),
Signature · 1 line
2.25.1