All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Hogander, Jouni" <jouni.hogander@intel.com>
To: "Roper, Matthew D" <matthew.d.roper@intel.com>
Cc: "igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Subject: Re: [igt-dev] [PATCH i-g-t] tests/i915/kms_frontbuffer_tracking: Skip fbcpsr testcases as needed
Date: Wed, 27 Jul 2022 15:48:09 +0000	[thread overview]
Message-ID: <96c1e69a1af6b9dc39deb383043c0fc4b00d9864.camel@intel.com> (raw)
In-Reply-To: <YuA0M3POar9L7Gqj@mdroper-desk1.amr.corp.intel.com>

On Tue, 2022-07-26 at 11:36 -0700, Matt Roper wrote:
> On Tue, Jul 26, 2022 at 12:09:30PM +0300, Jouni Högander wrote:
> > Driver is not using fbc for display versions 12 and 13 if PSR is
> > enabled. This is currently causing failures on fbcpsr_* subtests.
> > 
> > Fix this by checking display version and skipping fbcpsc_* subtests
> > as
> > needed.
> > 
> > Cc: Matt Roper <matthew.d.roper@intel.com>
> > 
> > Fixes: https://gitlab.freedesktop.org/drm/intel/-/issues/160
> > Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
> 
> You may want to mention that Wa_14016291713 is the reason for this in
> the commit message and/or code comment.  But otherwise,
> 
> Reviewed-by: Matt Roper <matthew.d.roper@intel.com>

Thank you for the review. Patch now merged.

> 
> 
> > ---
> >  tests/i915/kms_frontbuffer_tracking.c | 10 ++++++++++
> >  1 file changed, 10 insertions(+)
> > 
> > diff --git a/tests/i915/kms_frontbuffer_tracking.c
> > b/tests/i915/kms_frontbuffer_tracking.c
> > index 248ff36b..9518c706 100644
> > --- a/tests/i915/kms_frontbuffer_tracking.c
> > +++ b/tests/i915/kms_frontbuffer_tracking.c
> > @@ -1788,6 +1788,8 @@ static bool enable_features_for_test(const
> > struct test_mode *t)
> >  
> >  static void check_test_requirements(const struct test_mode *t)
> >  {
> > +	int ver;
> > +
> >  	if (t->pipes == PIPE_DUAL)
> >  		igt_require_f(scnd_mode_params.output,
> >  			    "Can't test dual pipes with the current
> > outputs\n");
> > @@ -1815,6 +1817,14 @@ static void check_test_requirements(const
> > struct test_mode *t)
> >  
> >  	if (opt.only_pipes != PIPE_COUNT)
> >  		igt_require(t->pipes == opt.only_pipes);
> > +
> > +	/* Kernel disables fbc for display versions 12 and 13 if psr is
> > enabled. */
> > +	ver = intel_display_ver(intel_get_drm_devid(drm.fd));
> > +	if (ver >= 12 && ver <= 13)
> > +		igt_require_f(!((t->feature & FEATURE_PSR) &&
> > +				(t->feature & FEATURE_FBC)),
> > +			      "Can't test PSR and FBC together\n");
> > +
> >  }
> >  
> >  static void set_crtc_fbs(const struct test_mode *t)
> > -- 
> > 2.25.1
> > 


  reply	other threads:[~2022-07-27 15:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-26  9:09 [igt-dev] [PATCH i-g-t] tests/i915/kms_frontbuffer_tracking: Skip fbcpsr testcases as needed Jouni Högander
2022-07-26 10:19 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
2022-07-26 18:36 ` [igt-dev] [PATCH i-g-t] " Matt Roper
2022-07-27 15:48   ` Hogander, Jouni [this message]
2022-07-26 18:36 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2022-07-27  1:38 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2022-07-27 14:54 ` [igt-dev] ✓ Fi.CI.IGT: success " Patchwork

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=96c1e69a1af6b9dc39deb383043c0fc4b00d9864.camel@intel.com \
    --to=jouni.hogander@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=matthew.d.roper@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.