All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Souza, Jose" <jose.souza@intel.com>
To: "Lofstedt, Marta" <marta.lofstedt@intel.com>,
	"igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Subject: Re: [igt-dev] [PATCH 2/2] tests/kms_frontbuffer_tracking: Ignore FBC errors due mode is too large
Date: Mon, 16 Apr 2018 22:37:36 +0000	[thread overview]
Message-ID: <09a664e556118b27101e48deb7c1513747560eba.camel@intel.com> (raw)
In-Reply-To: <CA5F6A4B62957246A95956419746064382B8307C@IRSMSX106.ger.corp.intel.com>

Could someone merge it? or give more reviews?

Thanks

On Thu, 2018-04-05 at 06:37 +0100, Lofstedt, Marta wrote:
> Reviewed-by: Marta Lofstedt <marta.lofstedt@intel.com>
> 
> > -----Original Message-----
> > From: igt-dev [mailto:igt-dev-bounces@lists.freedesktop.org] On
> > Behalf Of
> > José Roberto de Souza
> > Sent: Wednesday, April 4, 2018 11:26 PM
> > To: igt-dev@lists.freedesktop.org
> > Subject: [igt-dev] [PATCH 2/2] tests/kms_frontbuffer_tracking:
> > Ignore FBC
> > errors due mode is too large
> > 
> > Depending on the default mode size, some tests will fail because it
> > will
> > exceed the maximum size that hardware tracking can handle, mostly
> > because hardware tracking do not take in care the X and Y offsets,
> > so the
> > plane size + offsets needs be smaller or equal to hardware tracking
> > limmits.
> > 
> > Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
> > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105680
> > ---
> >  tests/kms_frontbuffer_tracking.c | 9 +++++++++
> >  1 file changed, 9 insertions(+)
> > 
> > diff --git a/tests/kms_frontbuffer_tracking.c
> > b/tests/kms_frontbuffer_tracking.c
> > index a20e7118..71e985a5 100644
> > --- a/tests/kms_frontbuffer_tracking.c
> > +++ b/tests/kms_frontbuffer_tracking.c
> > @@ -954,6 +954,14 @@ static bool fbc_stride_not_supported(void)
> >  	return strstr(buf, "FBC disabled: framebuffer stride not
> > supported\n");  }
> > 
> > +static bool fbc_mode_too_large(void)
> > +{
> > +	char buf[128];
> > +
> > +	debugfs_read("i915_fbc_status", buf);
> > +	return strstr(buf, "FBC disabled: mode too large for
> > compression\n");
> > +}
> > +
> >  static bool fbc_wait_until_enabled(void)  {
> >  	last_fbc_buf[0] = '\0';
> > @@ -1742,6 +1750,7 @@ static void do_status_assertions(int flags)
> >  	if (flags & ASSERT_FBC_ENABLED) {
> >  		igt_require(!fbc_not_enough_stolen());
> >  		igt_require(!fbc_stride_not_supported());
> > +		igt_require(!fbc_mode_too_large());
> >  		if (!fbc_wait_until_enabled()) {
> > 
> > 	igt_assert_f(fbc_is_enabled(IGT_LOG_WARN),
> >  				     "FBC
> > disabled\n");
> > --
> > 2.16.3
> > 
> > _______________________________________________
> > igt-dev mailing list
> > igt-dev@lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/igt-dev
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  reply	other threads:[~2018-04-16 22:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-04 20:25 [igt-dev] [PATCH 1/2] scripts: Use https URL to download piglit José Roberto de Souza
2018-04-04 20:25 ` [igt-dev] [PATCH 2/2] tests/kms_frontbuffer_tracking: Ignore FBC errors due mode is too large José Roberto de Souza
2018-04-05  5:37   ` Lofstedt, Marta
2018-04-16 22:37     ` Souza, Jose [this message]
2018-04-17  8:23       ` Petri Latvala
2018-04-04 20:57 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [1/2] scripts: Use https URL to download piglit Patchwork
2018-04-04 23:27 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2018-04-05 11:06 ` [igt-dev] [PATCH 1/2] " Petri Latvala

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=09a664e556118b27101e48deb7c1513747560eba.camel@intel.com \
    --to=jose.souza@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=marta.lofstedt@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.