igt-dev.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: igt-dev@lists.freedesktop.org,
	Haneen Mohammed <hamohammed.sa@gmail.com>,
	intel-gfx@lists.freedesktop.org
Subject: Re: [igt-dev] [Intel-gfx] [PATCH i-g-t] Skip VBlank tests in modules without VBlank
Date: Tue, 21 Aug 2018 11:29:03 -0300	[thread overview]
Message-ID: <20180821142903.rombg3mftxfxwu77@smtp.gmail.com> (raw)
In-Reply-To: <153484656970.20928.15954376005829941190@skylake-alporthouse-com>

On 08/21, Chris Wilson wrote:
> Quoting Rodrigo Siqueira (2018-08-21 00:54:45)
> > The kms_flip test does not support drivers without VBlank which exclude
> > some virtual drivers. This patch adds a function that checks if a module
> > has a VBlank or not; if a module has VBlank than kms_flip will execute
> > all the VBlank tests, otherwise, VBlank tests will be skipped.
> > 
> > Signed-off-by: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com>
> > ---
> >  lib/igt_aux.c    | 14 ++++++++++++++
> >  lib/igt_aux.h    |  2 ++
> >  tests/kms_flip.c | 26 ++++++++++++++++++++++++--
> >  3 files changed, 40 insertions(+), 2 deletions(-)
> > 
> > diff --git a/lib/igt_aux.c b/lib/igt_aux.c
> > index 1250d5c5..da5be4bb 100644
> > --- a/lib/igt_aux.c
> > +++ b/lib/igt_aux.c
> > @@ -564,6 +564,20 @@ bool igt_aub_dump_enabled(void)
> >         return dump_aub;
> >  }
> >  
> > +bool igt_there_is_vblank(int drm_fd)
> 
> I would suggest breaking out in the kms namespace,
> 
> bool kms_has_vblank(int fd);
Hi,

Do you mean to move this function to igt_kms, right? If so, how about
kmstest_has_vblank.

> > +{
> > +       drmVBlank dummy_vbl;
> > +       int ret;
> > +
> 
> Either memset() the rest or use a named initializer.
> 
> > +       dummy_vbl.request.type = DRM_VBLANK_ABSOLUTE;
> > +       ret = drmWaitVBlank(drm_fd, &dummy_vbl);
> 
> return drmWaitVblank() == 0;
> -Chris

Thanks for the feedback! I will apply the suggestions.

-- 
Rodrigo Siqueira
http://siqueira.tech
Graduate Student
Department of Computer Science
University of São Paulo
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  reply	other threads:[~2018-08-21 14:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-20 23:54 [igt-dev] [PATCH i-g-t] Skip VBlank tests in modules without VBlank Rodrigo Siqueira
2018-08-21  0:34 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-08-21  2:07 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2018-08-21 10:16 ` [igt-dev] [Intel-gfx] [PATCH i-g-t] " Chris Wilson
2018-08-21 14:29   ` Rodrigo Siqueira [this message]
2018-08-21 15:19     ` Chris Wilson
2018-08-21 17:04       ` Rodrigo Siqueira

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=20180821142903.rombg3mftxfxwu77@smtp.gmail.com \
    --to=rodrigosiqueiramelo@gmail.com \
    --cc=chris@chris-wilson.co.uk \
    --cc=hamohammed.sa@gmail.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.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 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).