]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: treat memory as a single-channel for asymmetric memory v2
authorHugo Hu <hugo.hu@amd.com>
Wed, 20 Jan 2021 07:54:11 +0000 (15:54 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Apr 2021 01:38:40 +0000 (21:38 -0400)
commit70d4d370f1d5b1e8f5923f3247e8d39d436f2348
tree1b5b5904b9ad057cc82d170875b152dd5ea2c179
parentda9316a369d8bf62f5c97b61afc7cbc191f44624
drm/amd/display: treat memory as a single-channel for asymmetric memory v2

Previous change had been reverted since it caused hang.
Remake change to avoid defect.

[Why]
1. Driver use umachannelnumber to calculate watermarks for stutter.
In asymmetric memory config, the actual bandwidth is less than
dual-channel. The bandwidth should be the same as single-channel.
2. We found single rank dimm need additional delay time for stutter.

[How]
Get information from each DIMM. Treat memory config as a single-channel
for asymmetric memory in bandwidth calculating.
Add additional delay time for single rank dimm.

Fixes: bef4de8a211e0f ("drm/amd/display: System black screen hangs on driver load")
Signed-off-by: Hugo Hu <hugo.hu@amd.com>
Reviewed-by: Sung Lee <Sung.Lee@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c
drivers/gpu/drm/amd/display/dc/dc.h