From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: igt-dev@lists.freedesktop.org,
Anusha Srivatsa <anusha.srivatsa@intel.com>
Subject: Re: [igt-dev] [PATCH i-g-t] pm_rpm: Require DMC loaded before testing runtime_pm for gen9+
Date: Fri, 17 Aug 2018 15:56:30 -0700 [thread overview]
Message-ID: <20180817225630.GF2425@intel.com> (raw)
In-Reply-To: <153454391443.10736.16188882454688797144@skylake-alporthouse-com>
On Fri, Aug 17, 2018 at 11:11:54PM +0100, Chris Wilson wrote:
> Quoting Chris Wilson (2018-08-17 22:43:03)
> > Quoting Rodrigo Vivi (2018-08-17 22:35:53)
> > > Since we block runtime PM if DMC is not loaded, let's skip
> > > the test.
> > >
> > > v2: Use i915_dmc_info presence to detect dmc requirement
> > > instead of gen check as Chris suggested.
> > > v3: Add missing \0 before using buf. (Chris)
> > >
> > > Cc: Chris Wilson <chris@chris-wilson.co.uk>
> > > Cc: Imre Deak <imre.deak@intel.com>
> > > Cc: Anusha Srivatsa <anusha.srivatsa@intel.com>
> > > Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> > > ---
> > > tests/pm_rpm.c | 16 ++++++++++++++++
> > > 1 file changed, 16 insertions(+)
> > >
> > > diff --git a/tests/pm_rpm.c b/tests/pm_rpm.c
> > > index bbe36e59..fa0d98dc 100644
> > > --- a/tests/pm_rpm.c
> > > +++ b/tests/pm_rpm.c
> > > @@ -693,6 +693,21 @@ static void setup_pc8(void)
> > > has_pc8 = true;
> > > }
> > >
> > > +static bool dmc_loaded(void)
> > > +{
> > > + char buf[15];
> > > + int len;
> > > +
> > > + len = igt_sysfs_read(debugfs, "i915_dmc_info", buf, sizeof(buf));
> >
> > sizeof(buf) - 1 :)
> >
> > or else len will be sizeof(buf) and buf[len] not where it belongs.
ops... indeed
> I was debating whether or not having a big red fail was a good idea or
> not, but at the end of the day it is an external failure (e.g. the user
> may purposely not provide the dmc firmware).
yeap... I had same line of thought myself before trying this...
>
> With the final fix,
> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Thanks for all the fixes
> -Chris
> _______________________________________________
> 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
next prev parent reply other threads:[~2018-08-17 22:56 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-17 20:51 [igt-dev] [PATCH i-g-t] pm_rpm: Require DMC loaded before testing runtime_pm for gen9+ Rodrigo Vivi
2018-08-17 20:59 ` Chris Wilson
2018-08-17 21:13 ` Rodrigo Vivi
2018-08-17 21:26 ` Chris Wilson
2018-08-17 21:35 ` Rodrigo Vivi
2018-08-17 21:43 ` Chris Wilson
2018-08-17 22:11 ` Chris Wilson
2018-08-17 22:56 ` Rodrigo Vivi [this message]
2018-08-17 23:02 ` Rodrigo Vivi
2018-08-20 17:51 ` Rodrigo Vivi
2018-08-17 21:13 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-08-17 22:07 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2018-08-17 22:33 ` [igt-dev] ✓ Fi.CI.BAT: success for pm_rpm: Require DMC loaded before testing runtime_pm for gen9+ (rev3) Patchwork
2018-08-17 23:22 ` [igt-dev] ✓ Fi.CI.BAT: success for pm_rpm: Require DMC loaded before testing runtime_pm for gen9+ (rev4) Patchwork
2018-08-18 0:13 ` [igt-dev] ✓ Fi.CI.IGT: success for pm_rpm: Require DMC loaded before testing runtime_pm for gen9+ (rev3) Patchwork
2018-08-18 0:55 ` [igt-dev] ✓ Fi.CI.IGT: success for pm_rpm: Require DMC loaded before testing runtime_pm for gen9+ (rev4) 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=20180817225630.GF2425@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=anusha.srivatsa@intel.com \
--cc=chris@chris-wilson.co.uk \
--cc=igt-dev@lists.freedesktop.org \
/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.