OSDN Git Service

drm/amd/display: add option to disable DCC for DCC 128b request
authorTony Cheng <tony.cheng@amd.com>
Mon, 25 Sep 2017 22:06:11 +0000 (18:06 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 21 Oct 2017 20:43:36 +0000 (16:43 -0400)
commita32a7708ae8b01c191768d503c1af33b85b369d0
treed1b851ccbb0ab5c161813c76b799cc34e77be82a
parentdb64fbe73288f0b5f2a36ecdd48c9bae978406e0
drm/amd/display: add option to disable DCC for DCC 128b request

1. reverts commit e67f51012740 ("dc: temp disable DCC on high res.")
- default still DCC enabled

2. add debug options to decide how DCC is disabled
- disable DCC
- disable DCC if DCC requires 128b (aka. half) request
-- observed compressed data corruption result in screen corruption in
full (256b) request while half (128b) would cause DCN to hang, result in
DF hang

Signed-off-by: Tony Cheng <tony.cheng@amd.com>
Reviewed-by: Yongqiang Sun <yongqiang.sun@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc.h
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c