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:37:03 +0000 (08:37 +0100)
commit7967c3299e3fb6d5b4ff6373723cf98c8b700593
treedbb9a58c312c48de5c92313b172a52299842181a
parent51c9c98a7bbe1867cecdc52954972593f05f2fd3
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