[AMD Official Use Only - General] Reviewed-by: Yifan Zhang <[email protected]>
Best Regards, Yifan -----Original Message----- From: amd-gfx <[email protected]> On Behalf Of Jesse Zhang Sent: Friday, May 10, 2024 10:51 AM To: [email protected] Cc: Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>; Huang, Tim <[email protected]>; Zhang, Jesse(Jie) <[email protected]> Subject: [PATCH 21/22] drm/amd/pm: fix get dpm level count for yello carp For invalid clk types, return -EINVAL to check the return. Signed-off-by: Jesse Zhang <[email protected]> --- drivers/gpu/drm/amd/pm/swsmu/smu13/yellow_carp_ppt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/yellow_carp_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/yellow_carp_ppt.c index 5917c88cc87d..260c339f89c5 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/smu13/yellow_carp_ppt.c +++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/yellow_carp_ppt.c @@ -777,7 +777,7 @@ static int yellow_carp_get_dpm_level_count(struct smu_context *smu, *count = clk_table->NumDfPstatesEnabled; break; default: - break; + return -EINVAL; } return 0; -- 2.25.1
