]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: fix workaround for incorrect double buffer register for DLG ADL...
authorTony Cheng <tony.cheng@amd.com>
Tue, 28 Jan 2020 08:00:22 +0000 (16:00 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Feb 2020 20:04:38 +0000 (15:04 -0500)
commit399a3950ddf2a5142fda9f2c0a20948678c31a3e
treead043b97f5a0786c9c6b357745b84c9644c92e31
parent10fd7d549c5a45c65c9e9365809cff4d74925717
drm/amd/display: fix workaround for incorrect double buffer register for DLG ADL and TTU

[Why]
these registers should have been double buffered. SW workaround we will have SW program the more aggressive (lower) values
whenever we are upating this register, so we will not have underflow at expense of less optimzal request pattern.

[How]
there is a driver bug where we don't check for 0, which is uninitialzed HW default.  since 0 is smaller than any value we need to program,
driver end up with not programming these registers

Signed-off-by: Tony Cheng <tony.cheng@amd.com>
Reviewed-by: Yongqiang Sun <yongqiang.sun@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/dcn21/dcn21_hubp.c