* [PATCH] v4l: vsp1: Fix continuous mode for dual pipelines
@ 2018-02-09 13:18 Kieran Bingham
2018-02-09 13:27 ` Laurent Pinchart
0 siblings, 1 reply; 3+ messages in thread
From: Kieran Bingham @ 2018-02-09 13:18 UTC (permalink / raw)
To: Laurent Pinchart, mchehab, linux-media, linux-renesas-soc,
linux-kernel, Kieran Bingham
Cc: Kieran Bingham, Stable v4.14+
From: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
To allow dual pipelines utilising two WPF entities when available, the
VSP was updated to support header-mode display list in continuous
pipelines.
A small bug in the status check of the command register causes the
second pipeline to be directly afflicted by the running of the first;
appearing as a perceived performance issue with stuttering display.
Fix the vsp1_dl_list_hw_update_pending() call to ensure that the read
comparison corresponds to the correct pipeline.
Fixes: eaf4bfad6ad8 ("v4l: vsp1: Add support for header display
lists in continuous mode")
Cc: "Stable v4.14+" <stable@vger.kernel.org>
Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
---
drivers/media/platform/vsp1/vsp1_dl.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/media/platform/vsp1/vsp1_dl.c b/drivers/media/platform/vsp1/vsp1_dl.c
index 8cd03ee45f79..34b5ed2592f8 100644
--- a/drivers/media/platform/vsp1/vsp1_dl.c
+++ b/drivers/media/platform/vsp1/vsp1_dl.c
@@ -509,7 +509,8 @@ static bool vsp1_dl_list_hw_update_pending(struct vsp1_dl_manager *dlm)
return !!(vsp1_read(vsp1, VI6_DL_BODY_SIZE)
& VI6_DL_BODY_SIZE_UPD);
else
- return !!(vsp1_read(vsp1, VI6_CMD(dlm->index) & VI6_CMD_UPDHDR));
+ return !!(vsp1_read(vsp1, VI6_CMD(dlm->index))
+ & VI6_CMD_UPDHDR);
}
static bool vsp1_dl_hw_active(struct vsp1_dl_manager *dlm)
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] v4l: vsp1: Fix continuous mode for dual pipelines
2018-02-09 13:18 [PATCH] v4l: vsp1: Fix continuous mode for dual pipelines Kieran Bingham
@ 2018-02-09 13:27 ` Laurent Pinchart
2018-02-09 14:53 ` Kieran Bingham
0 siblings, 1 reply; 3+ messages in thread
From: Laurent Pinchart @ 2018-02-09 13:27 UTC (permalink / raw)
To: Kieran Bingham
Cc: mchehab, linux-media, linux-renesas-soc, linux-kernel,
Kieran Bingham, Kieran Bingham, Stable v4.14+
Hi Kieran,
Thank you for the patch.
On Friday, 9 February 2018 15:18:25 EET Kieran Bingham wrote:
> From: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
>
> To allow dual pipelines utilising two WPF entities when available, the
> VSP was updated to support header-mode display list in continuous
> pipelines.
>
> A small bug in the status check of the command register causes the
> second pipeline to be directly afflicted by the running of the first;
> appearing as a perceived performance issue with stuttering display.
>
> Fix the vsp1_dl_list_hw_update_pending() call to ensure that the read
> comparison corresponds to the correct pipeline.
>
> Fixes: eaf4bfad6ad8 ("v4l: vsp1: Add support for header display
> lists in continuous mode")
> Cc: "Stable v4.14+" <stable@vger.kernel.org>
>
> Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Good catch !
The patch looks good to me, but I wonder if we shouldn't write the subject
line as "v4l: vsp1: Fix header display list status check in continuous mode".
Sure, we're fixing continuous mode for dual pipelines, but that's more of a
side effect, it's header display lists that are broken as a whole in
continuous mode, even if we only use that for dual pipelines right now.
Apart from that,
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Please let me know if you'd like to rewrite the commit message.
> ---
> drivers/media/platform/vsp1/vsp1_dl.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/media/platform/vsp1/vsp1_dl.c
> b/drivers/media/platform/vsp1/vsp1_dl.c index 8cd03ee45f79..34b5ed2592f8
> 100644
> --- a/drivers/media/platform/vsp1/vsp1_dl.c
> +++ b/drivers/media/platform/vsp1/vsp1_dl.c
> @@ -509,7 +509,8 @@ static bool vsp1_dl_list_hw_update_pending(struct
> vsp1_dl_manager *dlm) return !!(vsp1_read(vsp1, VI6_DL_BODY_SIZE)
> & VI6_DL_BODY_SIZE_UPD);
> else
> - return !!(vsp1_read(vsp1, VI6_CMD(dlm->index) & VI6_CMD_UPDHDR));
> + return !!(vsp1_read(vsp1, VI6_CMD(dlm->index))
> + & VI6_CMD_UPDHDR);
/me feels so ashamed.
> }
>
> static bool vsp1_dl_hw_active(struct vsp1_dl_manager *dlm)
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] v4l: vsp1: Fix continuous mode for dual pipelines
2018-02-09 13:27 ` Laurent Pinchart
@ 2018-02-09 14:53 ` Kieran Bingham
0 siblings, 0 replies; 3+ messages in thread
From: Kieran Bingham @ 2018-02-09 14:53 UTC (permalink / raw)
To: Laurent Pinchart
Cc: mchehab, linux-media, linux-renesas-soc, linux-kernel,
Kieran Bingham, Kieran Bingham, Stable v4.14+
Hi Laurent,
On 09/02/18 13:27, Laurent Pinchart wrote:
> Hi Kieran,
>
> Thank you for the patch.
>
> On Friday, 9 February 2018 15:18:25 EET Kieran Bingham wrote:
>> From: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
>>
>> To allow dual pipelines utilising two WPF entities when available, the
>> VSP was updated to support header-mode display list in continuous
>> pipelines.
>>
>> A small bug in the status check of the command register causes the
>> second pipeline to be directly afflicted by the running of the first;
>> appearing as a perceived performance issue with stuttering display.
>>
>> Fix the vsp1_dl_list_hw_update_pending() call to ensure that the read
>> comparison corresponds to the correct pipeline.
>>
>> Fixes: eaf4bfad6ad8 ("v4l: vsp1: Add support for header display
>> lists in continuous mode")
>> Cc: "Stable v4.14+" <stable@vger.kernel.org>
>>
>> Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
>
> Good catch !
>
> The patch looks good to me, but I wonder if we shouldn't write the subject
> line as "v4l: vsp1: Fix header display list status check in continuous mode".
I'm fine with that,
Will resend with your RB tag.
> Sure, we're fixing continuous mode for dual pipelines, but that's more of a
> side effect, it's header display lists that are broken as a whole in
> continuous mode, even if we only use that for dual pipelines right now.
>
> Apart from that,
>
> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
>
> Please let me know if you'd like to rewrite the commit message.
>
>> ---
>> drivers/media/platform/vsp1/vsp1_dl.c | 3 ++-
>> 1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/media/platform/vsp1/vsp1_dl.c
>> b/drivers/media/platform/vsp1/vsp1_dl.c index 8cd03ee45f79..34b5ed2592f8
>> 100644
>> --- a/drivers/media/platform/vsp1/vsp1_dl.c
>> +++ b/drivers/media/platform/vsp1/vsp1_dl.c
>> @@ -509,7 +509,8 @@ static bool vsp1_dl_list_hw_update_pending(struct
>> vsp1_dl_manager *dlm) return !!(vsp1_read(vsp1, VI6_DL_BODY_SIZE)
>> & VI6_DL_BODY_SIZE_UPD);
>> else
>> - return !!(vsp1_read(vsp1, VI6_CMD(dlm->index) & VI6_CMD_UPDHDR));
>> + return !!(vsp1_read(vsp1, VI6_CMD(dlm->index))
>> + & VI6_CMD_UPDHDR);
>
> /me feels so ashamed.
Bah, it's only a brace out of place. I mean, what harm could it do ... hehe :-)
Personally I still blame the compiler for not picking up on the fact that we
told it to do something we didn't want it to do.
/me ducks to avoid all the items thrown by the compiler guys...
>> }
>>
>> static bool vsp1_dl_hw_active(struct vsp1_dl_manager *dlm)
--
Kieran
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-02-09 14:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-09 13:18 [PATCH] v4l: vsp1: Fix continuous mode for dual pipelines Kieran Bingham
2018-02-09 13:27 ` Laurent Pinchart
2018-02-09 14:53 ` Kieran Bingham
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).