From: Daniel Vetter <daniel@ffwll.ch>
To: Paulo Zanoni <przanoni@gmail.com>
Cc: intel-gfx@lists.freedesktop.org, Paulo Zanoni <paulo.r.zanoni@intel.com>
Subject: Re: [PATCH igt 3/4] tests/kms_fbc_crc: run even if FBC is disabled by default
Date: Mon, 15 Jun 2015 14:11:17 +0200 [thread overview]
Message-ID: <20150615121117.GK8341@phenom.ffwll.local> (raw)
In-Reply-To: <1433428266-1867-3-git-send-email-przanoni@gmail.com>
On Thu, Jun 04, 2015 at 11:31:05AM -0300, Paulo Zanoni wrote:
> From: Paulo Zanoni <paulo.r.zanoni@intel.com>
>
> We may not be perfect, but if we don't even test, we will probably
> only get worse over time.
>
> The function called makes sure we restore whatever was the original
> FBC parameter when we exit the test, so this should not affect the
> other tests.
>
> Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
> ---
> tests/kms_fbc_crc.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/tests/kms_fbc_crc.c b/tests/kms_fbc_crc.c
> index 37221ac..d964224 100644
> --- a/tests/kms_fbc_crc.c
> +++ b/tests/kms_fbc_crc.c
> @@ -559,10 +559,10 @@ igt_main
> igt_assert_lt(0, fread(buf, 1, sizeof(buf), status));
> fclose(status);
> buf[sizeof(buf) - 1] = '\0';
> - igt_require_f(!strstr(buf, "unsupported on this chipset") &&
> - !strstr(buf, "disabled per module param") &&
> - !strstr(buf, "disabled per chip default"),
> - "FBC not supported/enabled\n");
> + igt_require_f(!strstr(buf, "unsupported on this chipset"),
> + "FBC not supported\n");
> +
> + igt_set_module_param_int("enable_fbc", 1);
This is risky since on older chips fbc is known to pretty much insta-kill
the box. Imo we should have a gen6+ here at least (that's roughly the
point where the hw workarounds start to sound less scary).
Trying to enable this on older platforms just isn't worth it imo.
-Daniel
>
> data.bufmgr = drm_intel_bufmgr_gem_init(data.drm_fd, 4096);
> igt_assert(data.bufmgr);
> --
> 2.1.4
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
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
next prev parent reply other threads:[~2015-06-15 12:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-04 14:31 [PATCH igt 1/4] tests/template: add IGT_TEST_DESCRIPTION Paulo Zanoni
2015-06-04 14:31 ` [PATCH igt 2/4] lib/igt_aux: add functions to manipulate i915.ko parameters Paulo Zanoni
2015-06-04 14:31 ` [PATCH igt 3/4] tests/kms_fbc_crc: run even if FBC is disabled by default Paulo Zanoni
2015-06-15 12:11 ` Daniel Vetter [this message]
2015-06-15 14:08 ` Paulo Zanoni
2015-06-15 15:07 ` Daniel Vetter
2015-06-04 14:31 ` [PATCH igt 4/4] tests/kms_psr_sink_crc: test even if PSR " Paulo Zanoni
2015-06-04 16:01 ` Rodrigo Vivi
2015-06-15 12:11 ` [PATCH igt 1/4] tests/template: add IGT_TEST_DESCRIPTION Daniel Vetter
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=20150615121117.GK8341@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.org \
--cc=paulo.r.zanoni@intel.com \
--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 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.