Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1bbefa38 authored by Nirmal Abraham's avatar Nirmal Abraham Committed by Gerrit - the friendly Code Review server
Browse files

fbdev: msm: disable cpu sync during dma_buf_map_attachment



In some usecases, the CPU_SYNC attribute is causing around
2 - 2.5ms execution time per call to dma_buf_map_attachment
while mapping the display buffers causing frame drops.
Disable CPU SYNC to resolve this.

Change-Id: I5bdf2049b265d7ed8b0a42ac92bea57296aca9f6
Signed-off-by: default avatarNirmal Abraham <nabrah@codeaurora.org>
parent 33a5e163
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1027,7 +1027,7 @@ static int mdss_mdp_get_img(struct msmfb_data *img,


			data->srcp_attachment->dma_map_attrs |=
					DMA_ATTR_DELAYED_UNMAP;
			(DMA_ATTR_DELAYED_UNMAP | DMA_ATTR_SKIP_CPU_SYNC);

			data->srcp_table =
				dma_buf_map_attachment(data->srcp_attachment,