From: Daniel Vetter <daniel@ffwll.ch>
To: Eugeni Dodonov <eugeni.dodonov@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 0/5] refactor power management into intel_pm
Date: Tue, 17 Apr 2012 10:57:17 +0200 [thread overview]
Message-ID: <20120417085717.GA4104@phenom.ffwll.local> (raw)
In-Reply-To: <1334625638-11971-1-git-send-email-eugeni.dodonov@intel.com>
On Mon, Apr 16, 2012 at 10:20:33PM -0300, Eugeni Dodonov wrote:
> As Chris Wilson noticed, my previous patch that did the refactoring as one big
> patch which moved everything at once was extremely difficult to review and
> maintain. So I split the same refactoring into a series of smaller patches,
> which move one subsystem at a time.
Yeah, diffs are not actually readable, so looks like we have to do this
piece-wise. One thing that really bugs me is that we have all these
per-chip function declared as extern now, and the setup code for them is
somewhere completely different.
So can you add another patch add the end that moves all that setup code
intel intel_init_pm (at the end of intel_pm.c to avoid forward decl) and
removes all these chip-specific extern declarations?
If that patch doesn't result in only a few generic functinos exported from
intel_pm.c (and hence a simple interface) I think we need to reconsider
whether we've moved the right things in there (maybe it needs more/less).
But I can't easily judge that atm.
Yours, Daniel
>
> As previously, this reduces the intel_display.c module by around 2800 lines
> while also simplifying future power-related developments.
>
>
> Eugeni Dodonov (5):
> drm/i915: move fbc-related functionality into intel_pm module
> drm/i915: move watermarks settings into intel_pm module
> drm/i915: move drps, rps and rc6-related functions to intel_pm
> drm/i915: move emon functionality into intel_pm module
> drm/i915: move clock gating functionality into intel_pm module
>
> drivers/gpu/drm/i915/Makefile | 1 +
> drivers/gpu/drm/i915/intel_display.c | 7803 +++++++++++-----------------------
> drivers/gpu/drm/i915/intel_drv.h | 72 +
> drivers/gpu/drm/i915/intel_pm.c | 2898 +++++++++++++
> 4 files changed, 5432 insertions(+), 5342 deletions(-)
> create mode 100644 drivers/gpu/drm/i915/intel_pm.c
>
> --
> 1.7.10
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Daniel Vetter
Mail: daniel@ffwll.ch
Mobile: +41 (0)79 365 57 48
next prev parent reply other threads:[~2012-04-17 8:56 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-17 1:20 [PATCH 0/5] refactor power management into intel_pm Eugeni Dodonov
2012-04-17 1:20 ` [PATCH 1/5] drm/i915: move fbc-related functionality into intel_pm module Eugeni Dodonov
2012-04-17 1:20 ` [PATCH 2/5] drm/i915: move watermarks settings " Eugeni Dodonov
2012-04-17 1:20 ` [PATCH 3/5] drm/i915: move drps, rps and rc6-related functions to intel_pm Eugeni Dodonov
2012-04-17 1:20 ` [PATCH 4/5] drm/i915: move emon functionality into intel_pm module Eugeni Dodonov
2012-04-17 1:20 ` [PATCH 5/5] drm/i915: move clock gating " Eugeni Dodonov
2012-04-17 8:57 ` Daniel Vetter [this message]
2012-04-17 9:56 ` [PATCH 0/5] refactor power management into intel_pm Eugeni Dodonov
2012-04-17 10:23 ` Daniel Vetter
2012-04-17 14:04 ` [PATCH 1/1] drm/i915: add generic power management initialization Eugeni Dodonov
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=20120417085717.GA4104@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=eugeni.dodonov@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox