From: Yongqiang Sun Date: Thu, 11 Apr 2019 18:11:47 +0000 (-0400) Subject: drm/amd/display: Refactor program watermark. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=78b674573a552f046322d70b943349c133241e04;p=openwrt%2Fstaging%2Fblogic.git drm/amd/display: Refactor program watermark. Refactor programming watermark function: Divided into urgent watermark, stutter watermark and pstate watermark. Signed-off-by: Yongqiang Sun Reviewed-by: Tony Cheng Acked-by: Bhawanpreet Lakha Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubbub.c b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubbub.c index b3a99b10cfbd..d6705b40a57c 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubbub.c +++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubbub.c @@ -294,7 +294,7 @@ bool hubbub2_get_dcc_compression_cap(struct hubbub *hubbub, return true; } -static void hubbub2_setup_vmid_ptb(struct hubbub *hubbub, +void hubbub2_setup_vmid_ptb(struct hubbub *hubbub, uint64_t ptb, uint8_t vmid) { diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubbub.h b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubbub.h index cdd19f5887d7..6ca4a5a9f8c7 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubbub.h +++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubbub.h @@ -102,4 +102,8 @@ void hubbub2_get_dchub_ref_freq(struct hubbub *hubbub, void hubbub2_wm_read_state(struct hubbub *hubbub, struct dcn_hubbub_wm *wm); +void hubbub2_setup_vmid_ptb(struct hubbub *hubbub, + uint64_t ptb, + uint8_t vmid); + #endif