kernel-fxtec-pro1x/drivers/gpu/ipu-v3
Lucas Stach 7d9566fb14 gpu: ipu-v3: pre: don't trigger update if buffer address doesn't change
[ Upstream commit eb0200a4357da100064971689d3a0e9e3cf57f33 ]

On a NOP double buffer update where current buffer address is the same
as the next buffer address, the SDW_UPDATE bit clears too late. As we
are now using this bit to determine when it is safe to signal flip
completion to userspace this will delay completion of atomic commits
where one plane doesn't change the buffer by a whole frame period.

Fix this by remembering the last buffer address and just skip the
double buffer update if it would not change the buffer address.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
[p.zabel@pengutronix.de: initialize last_bufaddr in ipu_pre_configure]
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-05 09:21:07 +01:00
..
ipu-common.c gpu: ipu-v3: Fix CSI offsets for imx53 2019-03-23 20:09:41 +01:00
ipu-cpmem.c drm/imx: ipu-v3 plane offset and IPU id fixes 2018-08-10 11:37:35 +10:00
ipu-csi.c gpu: ipu-v3: csi: support RGB565 on parallel bus 2018-07-16 16:56:37 +02:00
ipu-dc.c gpu: ipu-v3: ipu-dc: Remove unused 'di' variable 2017-10-04 12:18:56 +02:00
ipu-di.c gpu: ipu-di: silence videomode logspam 2016-11-09 10:41:14 +01:00
ipu-dmfc.c gpu: ipu-v3: Do not wait for DMFC FIFO to clear when disabling DMFC channel 2016-08-29 12:45:05 +02:00
ipu-dp.c gpu: ipu-v3: dp: fix CSC handling 2019-05-16 19:41:24 +02:00
ipu-ic.c gpu: ipu-v3: ipu-ic: Fix saturation bit offset in TPMEM 2019-07-26 09:14:29 +02:00
ipu-image-convert.c gpu: ipu-v3: image-convert: Prevent race between run and unprepare 2019-02-12 19:46:57 +01:00
ipu-pre.c gpu: ipu-v3: pre: don't trigger update if buffer address doesn't change 2019-12-05 09:21:07 +01:00
ipu-prg.c driver core: Rename flag AUTOREMOVE to AUTOREMOVE_CONSUMER 2018-07-09 12:14:31 +02:00
ipu-prv.h gpu: ipu-v3: pre: add tiled prefetch support 2017-12-19 12:49:11 +01:00
ipu-smfc.c IPUv3 fixes for v3.18 2014-10-07 14:31:14 +10:00
ipu-vdi.c gpu: ipu-v3: vdic: include AUTO field order bit in ipu_vdi_set_field_order 2017-06-08 08:57:20 +02:00
Kconfig gpu: ipu-v3: allow to build with COMPILE_TEST 2017-12-19 12:49:11 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00