[media] v4l: vsp1: dl: Don't free fragments with interrupts disabled
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Fri, 13 May 2016 22:17:02 +0000 (19:17 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 28 Jun 2016 15:13:45 +0000 (12:13 -0300)
commit9489a8ff0a13fc0f62e556a31341d3bbaef9da6b
tree0d9ce013d2fe217f3ebcf9d355ef32f85fe93b18
parent6a8e07b215a91be310dac358fdccd7709dd2458f
[media] v4l: vsp1: dl: Don't free fragments with interrupts disabled

Freeing a fragment requires freeing DMA coherent memory, which can be
performed with interrupts disabled as per the DMA mapping API contract.
The fragments can't thus be freed synchronously when a display list is
recycled. Instead, move the fragments to a garbage list and use a work
queue to run the garbage collection.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/vsp1/vsp1_dl.c
This page took 0.072161 seconds and 5 git commands to generate.