drm/amdgpu/display: handle multiple numbers of fclks in dcn_calcs.c (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Jan 2020 19:39:45 +0000 (14:39 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Feb 2020 07:34:54 +0000 (08:34 +0100)
commitb75aaa6449b33c21b9b00c743fa90a012acf09da
tree76a71e103578fbe4520f5ef99d535d5b3a697580
parent22fa9aa084f041c8036b5d9eee725e43ea63b6e1
drm/amdgpu/display: handle multiple numbers of fclks in dcn_calcs.c (v2)

[ Upstream commit c37243579d6c881c575dcfb54cf31c9ded88f946 ]

We might get different numbers of clocks from powerplay depending
on what the OEM has populated.

v2: add assert for at least one level

Bug: https://gitlab.freedesktop.org/drm/amd/issues/963
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c