drm/amd/display: Set meta_chunk_value to 0 in DML if DCC disabled in DCN2.1
authorSung Lee <sung.lee@amd.com>
Mon, 30 Mar 2020 21:19:01 +0000 (17:19 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 22 Apr 2020 22:11:47 +0000 (18:11 -0400)
commitf2cd2e5d861245dbf40e9b919e4734123164d8f4
treebc208ee153eee113cc64931bdc39798103f8f9b6
parenta8665946f39aff519f363ebd7c1013c673cb31a1
drm/amd/display: Set meta_chunk_value to 0 in DML if DCC disabled in DCN2.1

[WHY]:
Calculating refcyc_per_meta_chunk_vblank_l when DCC is disabled may lead
to a large number causing an assert to get hit. In VBA, this value is 0
when DCC is disabled.

[HOW]:
Set value to 0 to avoid hitting the assert.

Signed-off-by: Sung Lee <sung.lee@amd.com>
Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c