Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Souza, Jose" <jose.souza@intel.com>
To: "Latvala, Petri" <petri.latvala@intel.com>
Cc: "igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Subject: Re: [igt-dev] [PATCH i-g-t] tests/kms_psr2_sf: Enable selective fetch
Date: Thu, 4 Feb 2021 15:17:30 +0000	[thread overview]
Message-ID: <39506df03e52b7b83d7a51cd277dd91cf73353cc.camel@intel.com> (raw)
In-Reply-To: <YBwOoJ1ptEeFIyY1@platvala-desk.ger.corp.intel.com>

On Thu, 2021-02-04 at 17:11 +0200, Petri Latvala wrote:
> On Thu, Feb 04, 2021 at 06:08:41AM -0800, José Roberto de Souza wrote:
> > Reload driver enabling PSR2 selective fetch to start to have
> > some tests coverage of this feature by CI.
> > 
> > Cc: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
> > Cc: Pankaj Bharadiya <pankaj.laxminarayan.bharadiya@intel.com>
> > Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
> > ---
> >  tests/kms_psr2_sf.c | 14 ++++++++++++++
> >  1 file changed, 14 insertions(+)
> > 
> > diff --git a/tests/kms_psr2_sf.c b/tests/kms_psr2_sf.c
> > index 296ed8476..751d6ff03 100644
> > --- a/tests/kms_psr2_sf.c
> > +++ b/tests/kms_psr2_sf.c
> > @@ -24,6 +24,7 @@
> >  
> > 
> > 
> > 
> >  #include "igt.h"
> >  #include "igt_sysfs.h"
> > +#include "igt_kmod.h"
> >  #include "igt_psr.h"
> >  #include <errno.h>
> >  #include <stdbool.h>
> > @@ -544,6 +545,14 @@ static void cleanup(data_t *data)
> >  	igt_remove_fb(data->drm_fd, &data->fb_test);
> >  }
> >  
> > 
> > 
> > 
> > +static void reload_driver(bool enable_sel_fetch)
> > +{
> > +	const char *params = enable_sel_fetch ? "enable_psr2_sel_fetch=1" : "";
> > +
> > +	igt_i915_driver_unload();
> > +	igt_assert_eq(igt_i915_driver_load(params), 0);
> > +}
> 
> 
> Does this parameter need to be set at load time or would igt_params_set() suffice?

At driver load time, otherwise more handling would be needed in kernel and IGT.
But yeah the kernel parameter right now have the wrong permission, sending a kernel patch fixing it.

> 
> 

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  reply	other threads:[~2021-02-04 15:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-04 14:08 [igt-dev] [PATCH i-g-t] tests/kms_psr2_sf: Enable selective fetch José Roberto de Souza
2021-02-04 15:11 ` Petri Latvala
2021-02-04 15:17   ` Souza, Jose [this message]
2021-02-05  7:34     ` Petri Latvala
2021-02-04 15:48 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2021-02-04 21:14 ` [igt-dev] ✗ Fi.CI.IGT: failure " 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=39506df03e52b7b83d7a51cd277dd91cf73353cc.camel@intel.com \
    --to=jose.souza@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=petri.latvala@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox