]> 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 21:19:45 +0000 (17:19 -0400)
commit935abb86a95def8c20dbb184ce30051db168e541
tree875d4b9685dc92e4f773ffd6726d9a5a87a95a25
parent4aa923a6e6406b43566ef6ac35a3d9a3197fa3e8
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>
(cherry picked from commit ecfe9b237687a55d596fff0650ccc8cc455edd3f)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c