drm/amd/display: add detile buffer size for renoir
authorBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Thu, 3 Oct 2019 17:35:36 +0000 (13:35 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 17 Oct 2019 20:28:45 +0000 (16:28 -0400)
Detile buffer size affects dcc caps, it was already added for
dcn2. Now add it for dcn21

Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Reviewed-by: Roman Li <Roman.Li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hubbub.c

index aeb5de6..f546260 100644 (file)
@@ -653,4 +653,5 @@ void hubbub21_construct(struct dcn20_hubbub *hubbub,
        hubbub->masks = hubbub_mask;
 
        hubbub->debug_test_index_pstate = 0xB;
+       hubbub->detile_buf_size = 164 * 1024; /* 164KB for DCN2.0 */
 }