]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amdgpu/smu13: fix profile reporting
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 23 Oct 2024 13:13:21 +0000 (09:13 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 28 Oct 2024 20:41:43 +0000 (16:41 -0400)
commitecfe9b237687a55d596fff0650ccc8cc455edd3f
treea9369997477e07974c5c415f2df99315f609603f
parentcb67ff6272eceb5fcb2fe3b74f0293fa0706841a
drm/amdgpu/smu13: fix profile reporting

The following 3 commits landed in parallel:
commit d7d2688bf4ea ("drm/amd/pm: update workload mask after the setting")
commit 7a1613e47e65 ("drm/amdgpu/smu13: always apply the powersave optimization")
commit 7c210ca5a2d7 ("drm/amdgpu: handle default profile on on devices without fullscreen 3D")
While everything is set correctly, this caused the profile to be
reported incorrectly because both the powersave and fullscreen3d bits
were set in the mask and when the driver prints the profile, it looks
for the first bit set.

Fixes: d7d2688bf4ea ("drm/amd/pm: update workload mask after the setting")
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c