From: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
To: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>,
linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org
Cc: linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH 1/9] v4l: vsp1: Fix display stalls when requesting too many inputs
Date: Fri, 15 Dec 2017 10:11:25 +0000 [thread overview]
Message-ID: <d8d9d2d7-eee7-3951-3e75-2c3e7b175f63@ideasonboard.com> (raw)
In-Reply-To: <20171203105735.10529-2-laurent.pinchart+renesas@ideasonboard.com>
Hi Laurent,
As this is a prevents hardware hangs, and is a distinct patch on it's own - I
feel it should be on an accelerated path to integration, and should be merged
separately from the rest of the CRC feature series.
On 03/12/17 10:57, Laurent Pinchart wrote:
> 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>
> ---
> drivers/media/platform/vsp1/vsp1_drm.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/drivers/media/platform/vsp1/vsp1_drm.c b/drivers/media/platform/vsp1/vsp1_drm.c
> index 7ce69f23f50a..ac85942162c1 100644
> --- a/drivers/media/platform/vsp1/vsp1_drm.c
> +++ b/drivers/media/platform/vsp1/vsp1_drm.c
> @@ -530,6 +530,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;
>
>
next prev parent reply other threads:[~2017-12-15 10:11 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-03 10:57 [PATCH 0/9] R-Car DU: Support CRC calculation Laurent Pinchart
2017-12-03 10:57 ` [PATCH 1/9] v4l: vsp1: Fix display stalls when requesting too many inputs Laurent Pinchart
2017-12-15 10:11 ` Kieran Bingham [this message]
2017-12-03 10:57 ` [PATCH 2/9] v4l: vsp1: Print the correct blending unit name in debug messages Laurent Pinchart
2017-12-15 10:13 ` Kieran Bingham
2017-12-03 10:57 ` [PATCH 3/9] v4l: vsp1: Share the CLU, LIF and LUT set_fmt pad operation code Laurent Pinchart
2017-12-03 10:57 ` [PATCH 4/9] v4l: vsp1: Reset the crop and compose rectangles in the set_fmt helper Laurent Pinchart
2017-12-03 10:57 ` [PATCH 5/9] v4l: vsp1: Document the vsp1_du_atomic_config structure Laurent Pinchart
2017-12-04 9:31 ` Sergei Shtylyov
2017-12-04 11:14 ` Laurent Pinchart
2017-12-03 10:57 ` [PATCH 6/9] v4l: vsp1: Extend the DU API to support CRC computation Laurent Pinchart
2017-12-03 10:57 ` [PATCH 7/9] v4l: vsp1: Add support for the DISCOM entity Laurent Pinchart
2017-12-03 10:57 ` [PATCH 8/9] v4l: vsp1: Integrate DISCOM in display pipeline Laurent Pinchart
2017-12-03 10:57 ` [PATCH 9/9] drm: rcar-du: Add support for CRC computation Laurent Pinchart
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d8d9d2d7-eee7-3951-3e75-2c3e7b175f63@ideasonboard.com \
--to=kieran.bingham+renesas@ideasonboard.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=kieran.bingham@ideasonboard.com \
--cc=laurent.pinchart+renesas@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox