drm/amdgpu: skip the invalid workload type
authorPerry Yuan <perry.yuan@amd.com>
Thu, 23 Feb 2023 07:10:45 +0000 (15:10 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Mar 2023 19:22:39 +0000 (14:22 -0500)
commit2d51f3afbea4184487132eed85ae83a13cd6b1c2
treecb8d728642ab036acdcdc338f8739423f588d491
parentdc622367c56fa0b5a911be73e22584b3cc69f5c5
drm/amdgpu: skip the invalid workload type

If some invalid workload types exposed by the power profile sysfs node,
it will be failed to set the unsuported profiles.
So we can skip to show the invalid workload type in the profiles list to
avoid that failure happen.

Acked-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Perry Yuan <perry.yuan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c