]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/smu10: fix smu10_get_clock_by_type_with_latency
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Jan 2020 18:19:51 +0000 (13:19 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Feb 2020 07:37:02 +0000 (08:37 +0100)
commitb332080f21d4224a1e0177535d5f33b27b37f8d9
tree5fea94df211d5dfbd1791e46a79b7b36c82bd3f0
parent514307d9c0c84dce898d51505aef5bf01b0376dc
drm/amdgpu/smu10: fix smu10_get_clock_by_type_with_latency

[ Upstream commit ae366219a12f9ba866a4058b1d91abe85c1b6b90 ]

Only send non-0 clocks to DC for validation.  This mirrors
what the windows driver does.

Bug: https://gitlab.freedesktop.org/drm/amd/issues/963
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c