summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJoseph Gravenor <joseph.gravenor@amd.com>2019-10-24 13:55:10 -0400
committerAlex Deucher <alexander.deucher@amd.com>2019-11-19 10:12:51 -0500
commitdb8ff9d38c18bed7dad5bf757d6e141603922c2b (patch)
tree6a381fec7a49361f02a258c89e06509412815582 /drivers
parente6b268dde4cdc4d0b35eb7997520327183957294 (diff)
downloadlinux-db8ff9d38c18bed7dad5bf757d6e141603922c2b.tar.bz2
drm/amd/display: Renoir chroma viewport WA Read the correct register
[why] Before we were reading registers specific to luma size, which caused a black line to appear on the screen from time to time, as although the luma row height is generally the same as the chroma row height for the video case, it will sometimes be one more [how] Read the register specific for the chroma size Signed-off-by: Joseph Gravenor <joseph.gravenor@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hubp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hubp.c b/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hubp.c
index d86b6b6211bc..32e8b589aeb5 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hubp.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hubp.c
@@ -200,8 +200,8 @@ void hubp21_set_viewport(
int pte_row_height = 0;
int pte_rows = 0;
- REG_GET(DCHUBP_REQ_SIZE_CONFIG,
- PTE_ROW_HEIGHT_LINEAR, &pte_row_height);
+ REG_GET(DCHUBP_REQ_SIZE_CONFIG_C,
+ PTE_ROW_HEIGHT_LINEAR_C, &pte_row_height);
pte_row_height = 1 << (pte_row_height + 3);
pte_rows = (viewport_c->height / pte_row_height) + 1;