drm/amd/display: Add missing HBM support and raise Vega20's uclk.
authorZhan Liu <zhan.liu@amd.com>
Thu, 22 Aug 2019 18:54:18 +0000 (14:54 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Sep 2019 19:36:33 +0000 (14:36 -0500)
commitc02d6a161395dfc0c2fdabb9e976a229017288d8
tree0ddf0d6146ab52120df6868afe2a26b6e39fcd84
parentc46e5df4ac898108da66a880c4e18f69c74f6c1b
drm/amd/display: Add missing HBM support and raise Vega20's uclk.

[Why]
When more than 2 displays are connected to the graphics card,
only the minimum memory clock is needed. However, when more
displays are connected, the minimum memory clock is not
sufficient enough to support the overwhelming bandwidth.
System will hang under this circumstance.

Also, the old code didn't address HBM cards, which has 2
pseudo channels. We need to add the HBM part here.

[How]
When graphics card connects to 2 or more displays,
switch to high memory clock. Also, choose memory
multiplier based on whether its regular DRAM or HBM.

Signed-off-by: Zhan Liu <zhan.liu@amd.com>
Reviewed-by: Roman Li <Roman.Li@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c