drm/amd/display: Force prefetch mode to 0
authorIsabel Zhang <isabel.zhang@amd.com>
Fri, 16 Oct 2020 14:55:54 +0000 (10:55 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 Nov 2020 20:29:59 +0000 (15:29 -0500)
commit685b4d8142dcbf11b817f74c2bc5b94eca7ee7f2
treec935b66c392d02b88a382e95d208f5b4b5784cc4
parent850d2fcf3e346a35e4e59e310b867e90e3ef8e5a
drm/amd/display: Force prefetch mode to 0

[Why]
On APU should be always using prefetch mode 0.
Currently, sometimes prefetch mode 1 is being
used causing system to hard hang due to
minTTUVBlank being too low.

[How]
Any ASIC running DCN21 will by default allow
self refresh and mclk switch. This sets both
min and max prefetch mode to 0 by default.

Signed-off-by: Isabel Zhang <isabel.zhang@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c