]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: use %u rather than %d for sclk/mclk
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2020 16:00:08 +0000 (12:00 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2020 18:20:23 +0000 (14:20 -0400)
commit22cc7452ac22127943d51a7a46d9684561be38af
tree66c1484de4dfe258dde1ceea86c900ccc672fc62
parentd68b2391822b9ee5ac64aa54e900ffbf8573068e
drm/amdgpu: use %u rather than %d for sclk/mclk

Large clock values may overflow and show up as negative.

Reported by prOMiNd on IRC.

Acked-by: Nirmoy Das <nirmoy.das@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c