linux-stable/drivers/gpu
Lucas Stach 189f921470 gpu: ipu-v3: pre: don't trigger update if buffer address doesn't change
[ Upstream commit eb0200a435 ]

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 15:37:56 +01:00
..
drm drm/i915/userptr: Try to acquire the page lock around set_page_dirty() 2019-12-01 09:13:15 +01:00
host1x gpu: host1x: Check whether size of unpin isn't 0 2018-08-24 13:09:14 +02:00
ipu-v3 gpu: ipu-v3: pre: don't trigger update if buffer address doesn't change 2019-12-05 15:37:56 +01:00
vga
Makefile