MLK-15110-19 gpu: imx: dpu: fetchdecode: Fixup stride when we use prefetch
authorLiu Ying <victor.liu@nxp.com>
Wed, 28 Jun 2017 07:55:24 +0000 (15:55 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:50:52 +0000 (14:50 -0500)
commit959fd70db3a694eac0c193ae6acd6b40a5ed6bcd
treee02ef55eb488662528c038d8a14dc44c1a6be997
parent937f8828eff6124cd593e54a567ba662620c9311
MLK-15110-19 gpu: imx: dpu: fetchdecode: Fixup stride when we use prefetch

When we use prefetch, we use DPR and PRG to do frame input cropping.  Thus,
the stride of fetchdecode is the stride of cropped frame, which means the
value of the stride is cropped_width * bytes_per_pixel.  Also, to address
TKT339017, when we use prefetch engine for fetchdecode, we need to round
the frame stride up to the fetchdecode burst size, i.e., burst length
multiplies 8 bytes.  According to TKT343664, the buffer base address has
to align to burst size, so we'll pick an appropriate burst size value in
fetchdecode_source_stride().

Signed-off-by: Liu Ying <victor.liu@nxp.com>
drivers/gpu/drm/imx/dpu/dpu-plane.c
drivers/gpu/imx/dpu/dpu-fetchdecode.c
include/video/dpu.h