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:34:53 +0000 (08:34 +0100)
commit70e1e529159b93cfc9aa866e9412fac1a945f26f
tree219f2804761245a0da961687baf15460b349cd3c
parent8ed1f476e7097b0a81f55f380bc294dcd17b3a19
drm/amdgpu/smu10: fix smu10_get_clock_by_type_with_latency

[ Upstream commit 4d0a72b66065dd7e274bad6aa450196d42fd8f84 ]

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