Re: [igt-dev] [PATCH i-g-t v1 3/3] igt/tests: Tolerate if kernel can't have all planes

Daniel Vetter
2019-04-01T07:30:43Z

On Mon, Apr 01, 2019 at 09:28:47AM +0200, Daniel Vetter wrote:
> On Fri, Mar 29, 2019 at 01:29:01PM +0200, Stanislav Lisovskiy wrote:
> > With some upcoming changes i915 might not allow
> > all sprite planes enabled, depending on available
> > bandwidth limitation. Thus the test need to decrement
> > amount of planes and try again, instead of panicking.
> >
> > Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
>
> I'm looking at a similar problem in kms_concurrent, and I think we now
> also need to randomize the planes we pick. With bw limits (and other stuff
> really, this is just the one we're hitting now) we'd otherwise have a good
> chance of not testing the last few planes. By randomizing which planes
> we're picking we should be able to make things a lot more interesting for
> the kernel.

igt_permute_array (for an array of plane indices probably) should help
with that.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation