From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Kieran Bingham <kieran.bingham@ideasonboard.com>
Cc: linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH 2/2] tests: suspend/resume: Increase number of processed frames
Date: Mon, 21 May 2018 12:09:02 +0300 [thread overview]
Message-ID: <4976984.1bKa5JtaEO@avalon> (raw)
In-Reply-To: <fbfea959-69a9-b497-ede7-7ab0287eb957@ideasonboard.com>
Hi Kieran,
On Monday, 21 May 2018 11:58:44 EEST Kieran Bingham wrote:
> On 21/05/18 09:51, Laurent Pinchart wrote:
> > On Monday, 21 May 2018 11:16:05 EEST Kieran Bingham wrote:
> >> On 19/05/18 21:34, Laurent Pinchart wrote:
> >>> The suspend/resume test starts a run of 300 frames and suspends the
> >>> system one second later. On some SoCs (namely H3 ES2.0) the VSP
> >>> bandwidth is high enough to complete processing of 300 frames in less
> >>> than a second. The test thus suspends and resumes the system with the
> >>> VSP idle instead of running, defeating the purpose of the test.
> >>>
> >>> Fix this by increasing the number of frames to process to 1000. The
> >>> frame count is now passed as an argument to the
> >>> test_extended_wpf_packing function to ease future changes.
> >>
> >> Great idea, to make it easy to update and re-use.
> >>
> >>> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> >>
> >> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
> >>
> >>> ---
> >>>
> >>> tests/vsp-unit-test-0020.sh | 15 ++++++++-------
> >>> 1 file changed, 8 insertions(+), 7 deletions(-)
> >>>
> >>> diff --git a/tests/vsp-unit-test-0020.sh b/tests/vsp-unit-test-0020.sh
> >>> index 91f6b167f22e..950c1bebbf2f 100755
> >>> --- a/tests/vsp-unit-test-0020.sh
> >>> +++ b/tests/vsp-unit-test-0020.sh
[snip]
> >>> test_hw_pipe() {
> >>> - test_extended_wpf_packing RGB24
> >>> + # Run the pipeline for 1000 frames. The suspend action occurs
> >>> between
> >>> + # frame #500~#600
> >>
> >> I'm not sure it's worth stating when the suspend action occurs, as it's
> >> variable depending upon the performance of the SoC ... but I'll not
> >> object to this.
> >
> > I agree with you, I'll remove that.
> >
> > I think it would make sense to run the pipeline without a limit in the
> > frame count, and stop streaming after resume. Feel free to give it a try
> > if you want :-)
>
> The question here will be how to we get the frame verification to occur on
> the 'last N frames'
>
> For this, wouldn't we need to extend yavta to support some kind of signal to
> perform a stream validation at an earlier point and shutdown the stream
> (probably leaving the count/skip, as maximum durations to run...) And then
> making sure we knew which frames were actually written out ...
>
> I'll leave this ticking in the back of my mind for now :D
Maybe it will be easier to address when we'll rewrite the tests in Python ?
:-)
> >>> + test_extended_wpf_packing RGB24 1000
> >>> }
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2018-05-21 9:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-19 20:34 [PATCH 0/2] vsp-tests: Fix suspend/resume test Laurent Pinchart
2018-05-19 20:34 ` [PATCH 1/2] vsp-lib: Capture the kernel log messages in test log files Laurent Pinchart
2018-05-20 10:47 ` Niklas Söderlund
2018-05-21 8:59 ` Laurent Pinchart
2018-05-19 20:34 ` [PATCH 2/2] tests: suspend/resume: Increase number of processed frames Laurent Pinchart
2018-05-21 8:16 ` Kieran Bingham
2018-05-21 8:51 ` Laurent Pinchart
2018-05-21 8:58 ` Kieran Bingham
2018-05-21 9:09 ` Laurent Pinchart [this message]
2018-05-21 9:12 ` Kieran Bingham
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=4976984.1bKa5JtaEO@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=kieran.bingham@ideasonboard.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.