drm/amd/display: fix MPO HUBP underflow with Scatter Gather
authorZi Yu Liao <ziyu.liao@amd.com>
Tue, 30 Jul 2019 19:36:53 +0000 (15:36 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 23 Aug 2019 16:37:18 +0000 (11:37 -0500)
commit89cb5614736b9b5d3b833ca2237d10da6b4b0395
tree8ca6d826a2508d29ef201eee079804bbf590729e
parent574304041bb9508a4e73533e8d1702b0e713d321
drm/amd/display: fix MPO HUBP underflow with Scatter Gather

[why]
With Scatter Gather enabled, HUBP underflows during MPO enabled video
playback. hubp_init has a register write that fixes this problem, but
the register is cleared when HUBP gets power gated.

[how]
Make a call to hubp_init during enable_plane, so that the fix can
be applied after HUBP powers back on again.

Signed-off-by: Zi Yu Liao <ziyu.liao@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c