]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: use proper formula to calculate bandwidth from timing
authorWenjing Liu <Wenjing.Liu@amd.com>
Thu, 21 Mar 2019 17:05:36 +0000 (13:05 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 May 2019 13:43:35 +0000 (06:43 -0700)
commitccbab981dee6089f0e2eff8516b0619fb2e5614c
treec1f14016a77a9868e2eb9d89aa1310e03790a431
parentbb7401e75582b2028541b6ba97895c2549ba849a
drm/amd/display: use proper formula to calculate bandwidth from timing

[ Upstream commit e49f69363adf8920883fff7e8ffecb802d897c6b ]

[why]
The existing calculation uses a wrong formula to
calculate bandwidth from timing.

[how]
Expose the existing proper function that calculates the bandwidth,
so dc_link can use it to calculate timing bandwidth correctly.

Signed-off-by: Wenjing Liu <Wenjing.Liu@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Leo Li <sunpeng.li@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/core/dc_link.c
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
drivers/gpu/drm/amd/display/dc/dc_link.h