From: "Gupta, Anshuman" <anshuman.gupta@intel.com>
To: Rodrigo Vivi <rodrigo.vivi@gmail.com>,
Chris Wilson <chris@chris-wilson.co.uk>
Cc: "igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Subject: RE: [igt-dev] [PATCH i-g-t 2/6] i915/i915_pm_rpm.c: create PC state subtest group
Date: Fri, 22 Jan 2021 05:46:46 +0000 [thread overview]
Message-ID: <aea4d38e13ac4f29b415a84ec5c1adc8@intel.com> (raw)
In-Reply-To: <CABVU7+uTHuEeG2k9dO3fFFc_Fea8OdbMTntF+E4AX+E6X=oTSg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3638 bytes --]
From: Rodrigo Vivi <rodrigo.vivi@gmail.com>
Sent: Friday, January 22, 2021 1:26 AM
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Gupta, Anshuman <anshuman.gupta@intel.com>; igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t 2/6] i915/i915_pm_rpm.c: create PC state subtest group
On Thu, Dec 10, 2020 at 2:42 AM Chris Wilson <chris@chris-wilson.co.uk<mailto:chris@chris-wilson.co.uk>> wrote:
Quoting Anshuman Gupta (2020-12-10 05:02:48)
> On 2020-12-09 at 16:47:01 +0000, Chris Wilson wrote:
> > Quoting Anshuman Gupta (2020-12-09 16:25:02)
> > > On 2020-12-09 at 16:25:55 +0000, Chris Wilson wrote:
> > > > Quoting Anshuman Gupta (2020-12-09 16:06:38)
> > > > > Create a separate igt test group and move package C
> > > > > state in to this subgroup.
> > > > > Run powertop --auto-tune to tune SOC power configuration
> > > > > for package C state tests.
> > > > >
> > > > > Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com<mailto:anshuman.gupta@intel.com>>
> > > > > ---
> > > > > tests/i915/i915_pm_rpm.c | 35 +++++++++++++++++++++++++++++++----
> > > > > 1 file changed, 31 insertions(+), 4 deletions(-)
> > > > >
> > > > > diff --git a/tests/i915/i915_pm_rpm.c b/tests/i915/i915_pm_rpm.c
> > > > > index af55b569..42bc44d9 100644
> > > > > --- a/tests/i915/i915_pm_rpm.c
> > > > > +++ b/tests/i915/i915_pm_rpm.c
> > > > > @@ -832,6 +832,25 @@ static void basic_subtest(void)
> > > > > /* XXX Also we can test wake up via exec nop */
> > > > > }
> > > > >
> > > > > +static bool setup_powertop(void)
> > > > > +{
> > > > > + FILE *fp;
> > > > > + char tmp[512];
> > > > > +
> > > > > + fp = popen("powertop --auto-tune", "r");
> > > >
> > > > Doesn't this defeat the point of having it work out of the box?
> May be misunderstood your comment, is it PC state or powertop should work
> out of box ?
Powermanagement should not require the user to configure it before it
can work.
powertop in particular may tweak the gfx, which is verboten.
Manually perform any configuration you think is required, and warn if the
initial configuration does not support reaching the lowest pc state the
system can. File bugs.
I understand why Anshuman did this. There are many many components
out there that are blocking the PC10 and this powertop --auto-tune
is trying to take care of all the corner cases to get the "best" of all the
components so we can try to garantee that we are not getting blocked by other components.
However this is very very dangerous. It toggles a lot of unsafe and untested cases.
I have lost a laptop right after a powertop --auto-tune and have never used that
in my life again. Coincidence? Maybe... but I don't want to take the risk in my
machine and I definitely cannot recommend its use.
Thanks Rodrigo for comment.
Actually as part of manual validation powertop being used by different PnP Val team.
Without using powertop surely we are not going to hit PC8/PC10 in that case I am afraid that
these test can’t be part of automatic validation in CI.
We may need to find alternative in some sort of OS level Power Management Policy decision maker,
which can decide conservative power saving oriented policy.
Runtime idle with display on which leads to PC10 and s0ix effectively for client products,
Ubuntu OS looks like not really tuned for that.
Thanks,
Anshuman Gupta.
-Chris
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org<mailto:igt-dev@lists.freedesktop.org>
https://lists.freedesktop.org/mailman/listinfo/igt-dev
[-- Attachment #2: Type: text/html, Size: 8326 bytes --]
next prev parent reply other threads:[~2021-01-22 5:46 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-09 16:06 [igt-dev] [PATCH i-g-t 0/6] PC state igt test Anshuman Gupta
2020-12-09 16:06 ` [igt-dev] [PATCH i-g-t 1/6] i915/i915_pm_rpm: Enable PC8+ residency test Anshuman Gupta
2020-12-09 16:06 ` [igt-dev] [PATCH i-g-t 2/6] i915/i915_pm_rpm.c: create PC state subtest group Anshuman Gupta
2020-12-09 16:25 ` Chris Wilson
2020-12-09 16:25 ` Anshuman Gupta
2020-12-09 16:47 ` Chris Wilson
2020-12-10 5:02 ` Anshuman Gupta
2020-12-10 7:42 ` Chris Wilson
2021-01-21 19:55 ` Rodrigo Vivi
2021-01-22 5:46 ` Gupta, Anshuman [this message]
2020-12-09 16:06 ` [igt-dev] [PATCH i-g-t 3/6] i915/i915_pm_rpm: enable modeset-pc8-residency-stress test Anshuman Gupta
2020-12-09 16:06 ` [igt-dev] [PATCH i-g-t 4/6] i915/i915_pm_rpm: gem-execbuf-stress-pc8 use powetop Anshuman Gupta
2020-12-09 16:06 ` [igt-dev] [PATCH i-g-t 5/6] i915/i915_pm_rpm: Add PC10 display off test Anshuman Gupta
2020-12-09 16:06 ` [igt-dev] [PATCH i-g-t 6/6] i915/i915_pm_rpm: Add PC10 idle display on test Anshuman Gupta
2020-12-09 17:15 ` [igt-dev] ✗ Fi.CI.BAT: failure for PC state igt test 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=aea4d38e13ac4f29b415a84ec5c1adc8@intel.com \
--to=anshuman.gupta@intel.com \
--cc=chris@chris-wilson.co.uk \
--cc=igt-dev@lists.freedesktop.org \
--cc=rodrigo.vivi@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox