From: "Zanoni, Paulo R" <paulo.r.zanoni@intel.com>
To: "david.weinehall@linux.intel.com"
<david.weinehall@linux.intel.com>,
"intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH i-g-t] RFC: split PM workarounds into separate lib
Date: Tue, 8 Dec 2015 13:22:14 +0000 [thread overview]
Message-ID: <1449580934.4929.18.camel@intel.com> (raw)
In-Reply-To: <1449564640-6001-1-git-send-email-david.weinehall@linux.intel.com>
Em Ter, 2015-12-08 às 10:50 +0200, David Weinehall escreveu:
> Since the defaults for some external power management related
> settings
> prevents us from testing our power management functionality properly,
> we have to work around it. Currently this is done from the individual
> test cases, but this is sub-optimal. This patch moves the PM-related
> workarounds into a separate library, and adds some code to restore
> the
> previous settings for the SATA link power management while at it.
>
> This patch should be seen as a RFC; there might be other workarounds
> for external issues that should be moved into the library, and if
> those
> workarounds aren't related to power management it might be better to
> choose a different name for the library.
I didn't deeply look the implementation, but you have my Acked-by on
the idea.
You may also consider adding a function to just run "sudo powertop --
auto-tune" in addition to the other things, but you can't undo this
later.
But in the end, it all depends on your machine. A bad machine will
never reach the deepest expected PC states. That's the problem when
automating things...
Since you're interested in PM, you may also want to look at:
http://patchwork.freedesktop.org/patch/66392/
maybe there's some code there that you may want to take.
>
> David Weinehall (1):
> lib/pm_workarounds: Lib for PM workarounds
>
> lib/Makefile.sources | 2 +
> lib/igt.h | 1 +
> lib/igt_aux.c | 15 +---
> lib/pm_workarounds.c | 233
> +++++++++++++++++++++++++++++++++++++++++++++++++++
> lib/pm_workarounds.h | 31 +++++++
> tests/pm_lpsp.c | 25 +-----
> tests/pm_rpm.c | 29 ++-----
> 7 files changed, 279 insertions(+), 57 deletions(-)
> create mode 100644 lib/pm_workarounds.c
> create mode 100644 lib/pm_workarounds.h
>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2015-12-08 13:22 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-08 8:50 [PATCH i-g-t] RFC: split PM workarounds into separate lib David Weinehall
2015-12-08 8:50 ` [PATCH i-g-t] lib/pm_workarounds: Lib for PM workarounds David Weinehall
2015-12-08 13:22 ` Zanoni, Paulo R [this message]
2015-12-10 16:05 ` [PATCH i-g-t] RFC: split PM workarounds into separate lib David Weinehall
2015-12-08 13:42 ` Ville Syrjälä
2015-12-08 19:05 ` Paulo Zanoni
2015-12-10 10:09 ` Daniel Vetter
2015-12-10 15:55 ` David Weinehall
2015-12-10 16:01 ` David Weinehall
2015-12-11 17:03 ` Daniel Vetter
2015-12-15 9:14 ` [PATCH i-g-t v2] Add a lib for power management helpers David Weinehall
2015-12-15 9:14 ` [PATCH i-g-t] lib/igt_pm: Lib for power management David Weinehall
2015-12-18 19:27 ` Thomas Wood
2016-02-11 7:25 ` [PATCH v3 0/1] Add a lib for power management helpers David Weinehall
2016-02-11 7:25 ` [PATCH v3 1/1] lib/igt_pm: Lib for power management David Weinehall
2016-02-11 8:27 ` [PATCH v3 0/1] Add a lib for power management helpers 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=1449580934.4929.18.camel@intel.com \
--to=paulo.r.zanoni@intel.com \
--cc=david.weinehall@linux.intel.com \
--cc=intel-gfx@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.