msm: mdss: fix dma fifo read watermark to 15/16 full

Previously the dma fifo read watermark was set to default value
which is 1/2 full. The full FIFO size is 512B, and this means the
read would be blocked for the first 256B and as soon as it is
consumed, it might expect the next 256B immediately. This may
result in underflow if sufficient data is not produced. To avoid
such cases, set read watermark to 15/16, so it is blocked until
full FIFO size data is generated.

Change-Id: I39bd10ccb7db3c4fe37ea609babdd6305fc19a7d
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
This commit is contained in:
Veera Sundaram Sankaran 2016-05-25 18:38:43 -07:00
parent ac026c4902
commit ffa14738c0

View file

@ -459,6 +459,9 @@ void mdss_dsi_host_init(struct mdss_panel_data *pdata)
/* enable contention detection for receiving */ /* enable contention detection for receiving */
mdss_dsi_lp_cd_rx(ctrl_pdata); mdss_dsi_lp_cd_rx(ctrl_pdata);
/* set DMA FIFO read watermark to 15/16 full */
MIPI_OUTP((ctrl_pdata->ctrl_base) + 0x50, 0x30);
wmb(); wmb();
} }