aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNicolas Dufresne <[email protected]>2022-08-18 22:33:06 +0200
committerMauro Carvalho Chehab <[email protected]>2022-08-30 14:45:10 +0200
commitfe8b81fde69acfcbb5af9e85328e5b9549999fdb (patch)
treeecffc3e9bc8298933aab897dadd909a908a6c712 /tools
parent2801f6f30f11dfe790a7f2cd63e004e10057a952 (diff)
media: cedrus: Fix watchdog race condition
The watchdog needs to be scheduled before we trigger the decode operation, otherwise there is a risk that the decoder IRQ will be called before we have schedule the watchdog. As a side effect, the watchdog would never be cancelled and its function would be called at an inappropriate time. This was observed while running Fluster with GStreamer as a backend. Some programming error would cause the decoder IRQ to be call very quickly after the trigger. Later calls into the driver would deadlock due to the unbalanced state. Cc: [email protected] Fixes: 7c38a551bda1 ("media: cedrus: Add watchdog for job completion") Signed-off-by: Nicolas Dufresne <[email protected]> Reviewed-by: Paul Kocialkowski <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions