drm/amd/display: Refactor program watermark.
authorYongqiang Sun <yongqiang.sun@amd.com>
Thu, 11 Apr 2019 18:11:47 +0000 (14:11 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 22 Jun 2019 14:34:10 +0000 (09:34 -0500)
Refactor programming watermark function:
Divided into urgent watermark, stutter watermark and pstate watermark.

Signed-off-by: Yongqiang Sun <yongqiang.sun@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_hubbub.c
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubbub.h

index b3a99b10cfbd760b5d9fda7ebafb1f7354166ee6..d6705b40a57cc6254ccb65b975307b4a447b9a33 100644 (file)
@@ -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)
 {
index cdd19f5887d7a2ef9325f0b39bfba47336ce99b5..6ca4a5a9f8c73e6167212f7833637104044e925a 100644 (file)
@@ -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