disp: msm: dsi: publish RFI porch values for rate matching calculation

Currently when RFI is used on a video mode panel the horizontal or
vertical front porch values can be adjusted to maintain a constant FPS.
When this feature is enabled, driver is not propagating the new
htotal or vtotal values to usermode for accurate BW and MDP clock
calculation, which may lead to underrun in some usecase.

This change publishes beforehand all the RFI related timing
such as compensation type, hfp or vfp and clock values for
each mode for accurate BW and clock calculation.

Change-Id: Ib89c5e318fe978b0ae2215dedc430e057a9a81b9
Signed-off-by: Amine Najahi <anajahi@codeaurora.org>
This commit is contained in:
Amine Najahi
2021-06-22 00:12:19 -04:00
parent b04d8af8da
commit 1881acdb2b
5 changed files with 140 additions and 60 deletions

View File

@@ -598,16 +598,6 @@ struct dsi_host_config {
struct dsi_lane_map lane_map;
};
/**
* struct dyn_clk_list - list of dynamic clock rates.
* @rates: list of supported clock rates
* @count: number of supported clock rates
*/
struct dyn_clk_list {
u32 *rates;
u32 count;
};
/**
* struct dsi_display_mode_priv_info - private mode info that will be attached
* with each drm mode
@@ -646,7 +636,7 @@ struct dsi_display_mode_priv_info {
u32 dsi_transfer_time_us;
u64 clk_rate_hz;
u64 min_dsi_clk_hz;
struct dyn_clk_list bit_clk_list;
struct msm_dyn_clk_list bit_clk_list;
struct msm_display_topology topology;
struct msm_display_dsc_info dsc;