]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gpu: ipu-v3: image-convert: Wait for all EOFs before completing a tile
authorSteve Longerbeam <slongerbeam@gmail.com>
Thu, 25 Jun 2020 18:13:37 +0000 (11:13 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Aug 2020 11:07:35 +0000 (13:07 +0200)
commit5d010d2fab4adc3ebc9abf9c582345dacbaf052f
tree8b52791d5a25c1dcf65f2bdebe9a0d9c1f2d2b6e
parent0399740536803d9ee2cdd681fe249a89f857fd05
gpu: ipu-v3: image-convert: Wait for all EOFs before completing a tile

[ Upstream commit dd81d821d0b3f77d949d0cac5c05c1f05b921d46 ]

Use a bit-mask of EOF irqs to determine when all required idmac
channel EOFs have been received for a tile conversion, and only do
tile completion processing after all EOFs have been received. Otherwise
it was found that a conversion would stall after the completion of a
tile and the start of the next tile, because the input/read idmac
channel had not completed and entered idle state, thus locking up the
channel when attempting to re-start it for the next tile.

Fixes: 0537db801bb01 ("gpu: ipu-v3: image-convert: reconfigure IC per tile")
Signed-off-by: Steve Longerbeam <slongerbeam@gmail.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/ipu-v3/ipu-image-convert.c