summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2018-09-11 16:03:16 +0200
committerPhilipp Zabel <p.zabel@pengutronix.de>2019-01-24 13:49:49 +0100
commit1127af0c1adc8801aa0754f478536c293e5a5394 (patch)
tree4fffd02adcf7c5a7c597cabd25847e5b2ca08638 /Documentation
parent7be38774919f117783f39ebc22d66a99cb9c5e04 (diff)
downloadlinux-0-day-pza/imx-drm/next.tar.gz
linux-0-day-pza/imx-drm/next.tar.xz
drm/imx: only send commit done event when all state has been appliedpza/imx-drm/next
Currently there is a small race window where we could manage to arm the vblank event from atomic flush, but programming the hardware was too close to the frame end, so the hardware will only apply the current state on the next vblank. In this case we will send out the commit done event too early causing userspace to reuse framebuffes that are still in use. Instead of using the event arming mechnism, just remember the pending event and send it from the vblank IRQ handler, once we are sure that all state has been applied sucessfully. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> [p.zabel@pengutronix.de: inverted logic: done -> pending, added back spinlock in atomic_flush] Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions