mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 02:02:28 +09:00
media: v4l: vsp1: Fix display stalls when requesting too many inputs
[ Upstream commit 5e3e4cb5e2 ]
Make sure we don't accept more inputs than the hardware can handle. This
is a temporary fix to avoid display stall, we need to instead allocate
the BRU or BRS to display pipelines dynamically based on the number of
planes they each use.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
d600eadf7d
commit
93c72937a2
@@ -504,6 +504,15 @@ void vsp1_du_atomic_flush(struct device *dev, unsigned int pipe_index)
|
||||
struct vsp1_rwpf *rpf = vsp1->rpf[i];
|
||||
unsigned int j;
|
||||
|
||||
/*
|
||||
* Make sure we don't accept more inputs than the hardware can
|
||||
* handle. This is a temporary fix to avoid display stall, we
|
||||
* need to instead allocate the BRU or BRS to display pipelines
|
||||
* dynamically based on the number of planes they each use.
|
||||
*/
|
||||
if (pipe->num_inputs >= pipe->bru->source_pad)
|
||||
pipe->inputs[i] = NULL;
|
||||
|
||||
if (!pipe->inputs[i])
|
||||
continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user