public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>,
	Tvrtko Ursulin <tursulin@ursulin.net>,
	Intel-gfx@lists.freedesktop.org
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Subject: Re: [PATCH i-g-t] kms_rotation_crc: 90 degree flip test is not a stress test
Date: Thu, 3 Aug 2017 15:33:54 +0100	[thread overview]
Message-ID: <41748da7-bf52-45f4-9d01-e74f52372906@linux.intel.com> (raw)
In-Reply-To: <150176996129.20927.12593016130487830222@mail.alporthouse.com>


On 03/08/2017 15:19, Chris Wilson wrote:
> Quoting Tvrtko Ursulin (2017-08-03 14:41:34)
>>
>> On 03/08/2017 14:27, Chris Wilson wrote:
>>> Quoting Tvrtko Ursulin (2017-08-03 14:09:59)
>>>>
>>>> On 03/08/2017 13:53, Chris Wilson wrote:
>>>>> Quoting Tvrtko Ursulin (2017-08-03 13:42:50)
>>>>>> From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
>>>>>>
>>>>>> To the best of my recollection the page flipping test was added
>>>>>> simply to start exercising page flips with 90/270 rotation.
>>>>>>
>>>>>> There is no need to do 60 flips which can take quite some time
>>>>>> because we test each pipe and then each fb geometry. And
>>>>>> calling this a stress test is also not matching the original
>>>>>> idea of the test.
>>>>>>
>>>>>> So remove the stress from the name and reduce the number of
>>>>>> flips to three only.
>>>>>
>>>>> Considering this found a bug, do we have an explicit test that says a
>>>>> rotated page flip takes no longer than a vblank (given the right
>>>>> conditions, i.e subsequent flips)?
>>>>
>>>> That was just me misremembering how the test work, wasn't a bug. Once I
>>>> looked at the code in more detail I realized the test does much more
>>>> flipping than it initially seemed. Num_pipes * 4 fb geometries * 2
>>>> framebuffers * 60 flips. In total around 8 seconds of flipping per pipe.
>>>> So the 25 second runtime is in line with 3 pipes at 60Hz plus some test
>>>> setup time.
>>>
>>> Ah. But do we have a test that says we can hit vrefresh with rotated
>>> pipes? I know we check the timings for the ordinary case, but from a
>>> quick check of the likely suspects, I can't see such a test.
>>
>> Not in kms_rotation_crc, so one to pencil in on the TODO list.
>>
>>> PS please add the explanation for why it took longer than expected into
>>> the commit log.
>>
>> I mentioned in the commit why it takes long ("...60 flips which can take
>> quite some time because we test each pipe and then each fb
>> geometry..."), but I am not sure that is longer than expected.
> 
> Even on a second read, it is still 60 flips, not 60 flips per
> combination. :)

Ah ok, it isn't fully understandable. That's what happens with quick 
patches which only change one trivial thing.

>> better say I am not sure what is expected. One could even say, since the
>> test had stress in its name, that 25 seconds was not unexpected. :) Now
>> it is not a stress test any more and it finishes in five seconds so all
>> is good. I am not sure what exactly you think I should add? The formula
>> for exact number of flips test was doing?
> 
> Language. The test is a crc check, how many unique frames do we show?
> What changes between every flip that applies any stress to the driver,
> i.e. causes either the hw or driver to do something different? If we are
> looking for a race, can crc even spot it? Do we gain anything from this
> test by even displaying a second frame?

I don't think we gain much by doing more than one flip and there are no 
crc checks or anything. So from that pov it is not the best test. Should 
be probably changed so in flip mode it flips before the crc collection.

> Ultimately, is the path through the driver taken by each frame a good
> enough metric to decide if the test has achieved its maximal coverage?

There should be a ton more coverage that we should add before calling it 
maximal coverage. Like tiling changes between flips, which is currently 
tested only for unrotated fbs. some rotation changes might also be 
possible between flips?

Tvrtko
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2017-08-03 14:33 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-03 12:42 [PATCH i-g-t] kms_rotation_crc: 90 degree flip test is not a stress test Tvrtko Ursulin
2017-08-03 12:53 ` Chris Wilson
2017-08-03 13:09   ` Tvrtko Ursulin
2017-08-03 13:27     ` Chris Wilson
2017-08-03 13:41       ` Tvrtko Ursulin
2017-08-03 14:19         ` Chris Wilson
2017-08-03 14:33           ` Tvrtko Ursulin [this message]
2017-08-03 14:50             ` Chris Wilson
2017-08-03 15:23 ` Daniel Vetter
2017-08-04  8:43 ` [PATCH i-g-t v2] " Tvrtko Ursulin
2017-08-07 15:53   ` Daniel Vetter
2017-09-04 14:27     ` Tvrtko Ursulin
2017-09-04 14:36       ` Tvrtko Ursulin
2017-09-04 14:43         ` Daniel Vetter
2017-09-04 14:56           ` Tvrtko Ursulin
     [not found]       ` <20170907141307.GA15917@kdec5-desk.ger.corp.intel.com>
     [not found]         ` <804db97c-0746-3796-01c0-8d0b390528f5@linux.intel.com>
2017-09-07 15:07           ` Katarzyna Dec

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=41748da7-bf52-45f4-9d01-e74f52372906@linux.intel.com \
    --to=tvrtko.ursulin@linux.intel.com \
    --cc=Intel-gfx@lists.freedesktop.org \
    --cc=chris@chris-wilson.co.uk \
    --cc=daniel.vetter@ffwll.ch \
    --cc=tursulin@ursulin.net \
    /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