bianbu-linux-6.6/drivers/gpu/drm/amd/display/dc/clk_mgr
Noah Abradjian 1ea8751bd2 drm/amd/display: Make clk mgr the only dto update point
[Why]

* Clk Mgr DTO update point did not cover all needed updates, as it included a
  check for plane_state which does not exist yet when the updater is called on
  driver startup
* This resulted in another update path in the pipe programming sequence, based
  on a dppclk update flag
* However, this alternate path allowed for stray DTO updates, some of which would
  occur in the wrong order during dppclk lowering and cause underflow

[How]

* Remove plane_state check and use of plane_res.dpp->inst, getting rid
  of sequence dependencies (this results in extra dto programming for unused
  pipes but that doesn't cause issues and is a small cost)
* Allow DTOs to be updated even if global clock is equal, to account for
  edge case exposed by diags tests
* Remove update_dpp_dto call in pipe programming sequence (leave update to
  dppclk_control there, as that update is necessary and shouldn't occur in clk
  mgr)
* Remove call to optimize_bandwidth when committing state, as it is not needed
  and resulted in sporadic underflows even with other fixes in place

Signed-off-by: Noah Abradjian <noah.abradjian@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-10-25 16:50:09 -04:00
..
dce100 drm/amd/display: move dispclk vco freq to clk mgr base 2019-10-25 16:50:08 -04:00
dce110 drm/amdgpu/display: fix 64 bit divide 2019-10-03 09:11:00 -05:00
dce112 drm/amd/display: move dispclk vco freq to clk mgr base 2019-10-25 16:50:08 -04:00
dce120 drm/amd/display: Copy max_clks_by_state after dce_clk_mgr_construct 2019-07-18 14:18:09 -05:00
dcn10 drm/amd/display: move dispclk vco freq to clk mgr base 2019-10-25 16:50:08 -04:00
dcn20 drm/amd/display: Make clk mgr the only dto update point 2019-10-25 16:50:09 -04:00
dcn21 drm/amd/display: Make clk mgr the only dto update point 2019-10-25 16:50:09 -04:00
clk_mgr.c drm/amd/display: exit PSR during detection 2019-10-10 19:33:07 -05:00
Makefile drm/amd/display: Add Renoir clock manager 2019-08-29 15:52:33 -05:00