]> git.baikalelectronics.ru Git - kernel.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)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 20 Jul 2020 13:16:05 +0000 (15:16 +0200)
commit2d517439b4bc8c9a9bdca1b8e5c7679fb3a6c908
tree068b22d45e7726f8dfefe2221b095c59ae5cfd8b
parent4fc5487398fca2b282807bca1d7843c03e719c6c
gpu: ipu-v3: image-convert: Wait for all EOFs before completing a tile

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: 0696b42e8c5ef ("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>
drivers/gpu/ipu-v3/ipu-image-convert.c