drm/amd/powerplay: drop unnecessary warning prompt
Subsystems (2)
PATCH 1/1 drm/amd/powerplay: drop unnecessary warning prompt
As the check may be done with purpose and the warning output will be confusing.
Change-Id Ie0928c324a8161d44068f8ce648d56f6d9e8cd3d
Signed-off-by Evan Quan <[email protected]>
--- drivers/gpu/drm/amd/powerplay/arcturus_ppt.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/gpu/drm/amd/powerplay/arcturus_ppt.c +1 -3
@@ -280,10 +280,8 @@ static int arcturus_get_workload_type(struct smu_context *smu, enum PP_SMC_POWERreturn -EINVAL ; mapping = arcturus_workload_map[profile]; -if (!(mapping.valid_mapping)) { -pr_warn ("Unsupported SMU power source: %d\n" , profile); +if (!(mapping.valid_mapping))return -EINVAL ; - }return mapping.map_to; }
Signature · 6 lines
2.24.0 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 6 lines · Evan Quan
As the check may be done with purpose and the warning output will be confusing.
Change-Id Ie0928c324a8161d44068f8ce648d56f6d9e8cd3dSigned-off-by Evan Quan <[email protected]>
Acked-by Alex Deucher <[email protected]>
Quoted 23 lines
--- drivers/gpu/drm/amd/powerplay/arcturus_ppt.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)drivers/gpu/drm/amd/powerplay/arcturus_ppt.c +1
-4@@ -280,10 +280,8 @@ static int arcturus_get_workload_type(struct smu_context *smu, enum PP_SMC_POWERreturn -EINVAL ; mapping = arcturus_workload_map[profile]; -if (!(mapping.valid_mapping)) { -pr_warn ("Unsupported SMU power source: %d\n" , profile); +if (!(mapping.valid_mapping))return -EINVAL ; - }return mapping.map_to; } --2.24.0
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx