public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: "Lisovskiy, Stanislav" <stanislav.lisovskiy@intel.com>
To: "Latvala, Petri" <petri.latvala@intel.com>
Cc: "igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>,
	"Syrjala, Ville" <ville.syrjala@intel.com>,
	"Peres, Martin" <martin.peres@intel.com>
Subject: Re: [igt-dev] [PATCH i-g-t v4] igt/tests: kms_plane_stress: Add plane stress test
Date: Tue, 26 Mar 2019 12:48:25 +0000	[thread overview]
Message-ID: <5f41f6b611ac14106140b38bface2a743bc9c1f8.camel@intel.com> (raw)
In-Reply-To: <20190326122257.GA4038@platvala-desk.ger.corp.intel.com>

On Tue, 2019-03-26 at 14:22 +0200, Petri Latvala wrote:
> On Tue, Mar 26, 2019 at 02:00:46PM +0200, Lisovskiy, Stanislav wrote:
> > On Tue, 2019-03-26 at 11:11 +0200, Petri Latvala wrote:
> > > On Mon, Mar 25, 2019 at 05:54:40PM +0200, Stanislav Lisovskiy
> > > wrote:
> > > > This test attempts to utilize all connected
> > > > outputs at the same time, using maximum possible
> > > > resolution and amount of planes, to check whether
> > > > we are hiting any kind of bandwidth, watermark or
> > > > other limitations.
> > > > 
> > > > v2: Added cpu and gpu load threads, which consume
> > > >     additional bandwidth.
> > > > 
> > > > v3: Removed binary picture file, using pattern fb
> > > >     instead.
> > > > 
> > > > v4: Moved FB creation/removal to better place.
> > > > 
> > > > Signed-off-by: Stanislav Lisovskiy <
> > > > stanislav.lisovskiy@intel.com>
> > > > ---
> > > >  lib/igt_kms.h            |   7 +
> > > >  tests/Makefile.sources   |   1 +
> > > >  tests/kms_plane_stress.c | 546
> > > > +++++++++++++++++++++++++++++++++++++++
> > > >  tests/meson.build        |   1 +
> > > >  4 files changed, 555 insertions(+)
> > > >  create mode 100644 tests/kms_plane_stress.c
> > > > 
> > > > diff --git a/lib/igt_kms.h b/lib/igt_kms.h
> > > > index 407f3d64..0e6784ca 100644
> > > > --- a/lib/igt_kms.h
> > > > +++ b/lib/igt_kms.h
> > > > @@ -519,6 +519,13 @@ static inline bool
> > > > igt_output_is_connected(igt_output_t *output)
> > > >  		for_each_if ((((output) = &(display)-
> > > > >outputs[con__]),
> > > > \
> > > >  			     igt_pipe_connector_valid((pipe),
> > > > (output))))
> > > >  
> > > > +#define for_each_pipe_with_new_output(display, pipe, output) \
> > > > +			for (int con = 0, (pipe) = 0; con <
> > > > (display)-
> > > > > n_outputs; con++) \
> > > > 
> > > > +				for_each_if((output) =
> > > > &(display)-
> > > > > outputs[con]) \
> > > > 
> > > > +					for_each_if((pipe) <
> > > > IGT_MAX_PIPES) \
> > > > +						for_each_if(igt
> > > > _pipe_co
> > > > nnector_valid((pipe), (output)))
> > > 
> > > 
> > > Docs for this. And a very good explanation what is different from
> > > for_each_pipe_with_valid_output().
> > 
> > Sure, will add those. The reasoning is that
> > for_each_pipe_with_valid_output will try to test every possible
> > combination of pipe and output, while in this case it is not
> > needed.
> 
> 
> Gah, I should have asked for comparison to
> for_each_pipe_with_single_output.
> 
> Although I don't understand your loop anyway still. It doesn't update
> pipe, making the "for_each_pipe" part of the name misleading.

In fact, I didn't want to invent a new macro here, so I tried
for_each_pipe_with_single_output also - problem is that, when I'm using
pipes simultaneously, it tries to find a first suitable correct output 
and then we get a failure as the same output is already used on other
pipe.

Regarding pipe variable incrementing - totally true, don't like it
either, I will need to figure out something better.

> 
> 
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

      reply	other threads:[~2019-03-26 12:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-25 15:54 [igt-dev] [PATCH i-g-t v4] igt/tests: kms_plane_stress: Add plane stress test Stanislav Lisovskiy
2019-03-25 16:06 ` [igt-dev] ✗ Fi.CI.BAT: failure for igt/tests: kms_plane_stress: Add plane stress test (rev4) Patchwork
2019-03-26  9:11 ` [igt-dev] [PATCH i-g-t v4] igt/tests: kms_plane_stress: Add plane stress test Petri Latvala
2019-03-26 12:00   ` Lisovskiy, Stanislav
2019-03-26 12:22     ` Petri Latvala
2019-03-26 12:48       ` Lisovskiy, Stanislav [this message]

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=5f41f6b611ac14106140b38bface2a743bc9c1f8.camel@intel.com \
    --to=stanislav.lisovskiy@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=martin.peres@intel.com \
    --cc=petri.latvala@intel.com \
    --cc=ville.syrjala@intel.com \
    /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