public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Daniel Vetter <daniel@ffwll.ch>
To: Paulo Zanoni <przanoni@gmail.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>,
	Intel Graphics Development <intel-gfx@lists.freedesktop.org>,
	Daniel Vetter <daniel.vetter@intel.com>
Subject: Re: [PATCH i-g-t] tests/kms_fbc_crc: Don't force fbc on old platforms
Date: Mon, 15 Jun 2015 18:54:09 +0200	[thread overview]
Message-ID: <20150615165409.GL23637@phenom.ffwll.local> (raw)
In-Reply-To: <CA+gsUGQ-5XrnGHe3AdDaS3MEfRanwpSfH-0w07De2y7v87KJNg@mail.gmail.com>

On Mon, Jun 15, 2015 at 12:52:40PM -0300, Paulo Zanoni wrote:
> 2015-06-15 12:14 GMT-03:00 Daniel Vetter <daniel.vetter@ffwll.ch>:
> > It's simply a bit too scary on pre-gen6 and imo not worth the bother
> > really until someone starts to implement all the hacks an w/a required
> > on these platforms. On later platforms the issues are just with
> > correctness and performance hence no risk for hanging machines.
> >
> > Cc: Paulo Zanoni <przanoni@gmail.com>
> > Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
> > ---
> >  tests/kms_fbc_crc.c | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/tests/kms_fbc_crc.c b/tests/kms_fbc_crc.c
> > index d9642243465c..f2a86a690767 100644
> > --- a/tests/kms_fbc_crc.c
> > +++ b/tests/kms_fbc_crc.c
> > @@ -562,7 +562,8 @@ igt_main
> >                 igt_require_f(!strstr(buf, "unsupported on this chipset"),
> >                               "FBC not supported\n");
> >
> > -               igt_set_module_param_int("enable_fbc", 1);
> > +               if (intel_gen(data.devid) >= 6)
> > +                       igt_set_module_param_int("enable_fbc", 1);
> 
> I would prefer the more explicit:
> 
> igt_require_f(intel_gen(data.devid) >= 6, "Too afraid to test this.");

The problem with this is that it'll result in an unconditional skip even
on brave souls trying to test fbc on pre-gen5. Hence the explicit control
flow.
-Daniel

> igt_set_module_param_int("enable_fbc", 1);
> 
> We also need to patch kms_frontbuffer_tracking.c, but I can do this
> after your patch if you want.
> 
> >
> >                 data.bufmgr = drm_intel_bufmgr_gem_init(data.drm_fd, 4096);
> >                 igt_assert(data.bufmgr);
> > --
> > 2.1.4
> >
> 
> 
> 
> -- 
> Paulo Zanoni

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

      reply	other threads:[~2015-06-15 16:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-15 15:14 [PATCH i-g-t] tests/kms_fbc_crc: Don't force fbc on old platforms Daniel Vetter
2015-06-15 15:18 ` Chris Wilson
2015-06-15 16:57   ` Daniel Vetter
2015-06-15 15:52 ` Paulo Zanoni
2015-06-15 16:54   ` Daniel Vetter [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=20150615165409.GL23637@phenom.ffwll.local \
    --to=daniel@ffwll.ch \
    --cc=daniel.vetter@ffwll.ch \
    --cc=daniel.vetter@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=przanoni@gmail.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