From: Jesse Barnes <jbarnes@virtuousgeek.org>
To: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Intel Graphics Development <intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH 02/10] drm/i915: move dev_priv->(rps|ips) out of line
Date: Fri, 2 Nov 2012 12:07:08 -0700 [thread overview]
Message-ID: <20121102120708.73363c9a@jbarnes-desktop> (raw)
In-Reply-To: <1351882511-21290-3-git-send-email-daniel.vetter@ffwll.ch>
On Fri, 2 Nov 2012 19:55:03 +0100
Daniel Vetter <daniel.vetter@ffwll.ch> wrote:
> And give the structs slightly more generic names. I've decided to keep
> the short rps/ips prefix, since that's just easier and less churn.
>
> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
> ---
> drivers/gpu/drm/i915/i915_drv.h | 67 ++++++++++++++++++++++-------------------
> 1 file changed, 36 insertions(+), 31 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
> index ac7b831..b7d3933 100644
> --- a/drivers/gpu/drm/i915/i915_drv.h
> +++ b/drivers/gpu/drm/i915/i915_drv.h
> @@ -549,6 +549,40 @@ struct i915_suspend_saved_registers {
> u32 saveMCHBAR_RENDER_STANDBY;
> u32 savePCH_PORT_HOTPLUG;
> };
> +
> +struct intel_gen6_power_mgmt {
> + struct work_struct work;
> + u32 pm_iir;
> + /* lock - irqsave spinlock that protectects the work_struct and
> + * pm_iir. */
> + spinlock_t lock;
> +
> + /* The below variables an all the rps hw state are protected by
> + * dev->struct mutext. */
> + u8 cur_delay;
> + u8 min_delay;
> + u8 max_delay;
> +};
> +
> +struct intel_ilk_power_mgmt {
> + u8 cur_delay;
> + u8 min_delay;
> + u8 max_delay;
> + u8 fmax;
> + u8 fstart;
> +
> + u64 last_count1;
> + unsigned long last_time1;
> + unsigned long chipset_power;
> + u64 last_count2;
> + struct timespec last_time2;
> + unsigned long gfx_power;
> + u8 corr;
> +
> + int c_m;
> + int r_t;
> +};
> +
> typedef struct drm_i915_private {
> struct drm_device *dev;
>
> @@ -833,40 +867,11 @@ typedef struct drm_i915_private {
> bool mchbar_need_disable;
>
> /* gen6+ rps state */
> - struct {
> - struct work_struct work;
> - u32 pm_iir;
> - /* lock - irqsave spinlock that protectects the work_struct and
> - * pm_iir. */
> - spinlock_t lock;
> -
> - /* The below variables an all the rps hw state are protected by
> - * dev->struct mutext. */
> - u8 cur_delay;
> - u8 min_delay;
> - u8 max_delay;
> - } rps;
> + struct intel_gen6_power_mgmt rps;
>
> /* ilk-only ips/rps state. Everything in here is protected by the global
> * mchdev_lock in intel_pm.c */
> - struct {
> - u8 cur_delay;
> - u8 min_delay;
> - u8 max_delay;
> - u8 fmax;
> - u8 fstart;
> -
> - u64 last_count1;
> - unsigned long last_time1;
> - unsigned long chipset_power;
> - u64 last_count2;
> - struct timespec last_time2;
> - unsigned long gfx_power;
> - u8 corr;
> -
> - int c_m;
> - int r_t;
> - } ips;
> + struct intel_ilk_power_mgmt ips;
>
> enum no_fbc_reason no_fbc_reason;
>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
--
Jesse Barnes, Intel Open Source Technology Center
next prev parent reply other threads:[~2012-11-02 19:06 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-02 18:55 [PATCH 00/10] shrink dev_priv by 300 lines Daniel Vetter
2012-11-02 18:55 ` [PATCH 01/10] drm/i915: move the suspend/resume register file out of dev_priv Daniel Vetter
2012-11-02 19:06 ` Jesse Barnes
2012-11-02 18:55 ` [PATCH 02/10] drm/i915: move dev_priv->(rps|ips) out of line Daniel Vetter
2012-11-02 19:07 ` Jesse Barnes [this message]
2012-11-02 18:55 ` [PATCH 03/10] drm/i915: move pwrctx/renderctx to the other ilk power state Daniel Vetter
2012-11-02 19:07 ` Jesse Barnes
2012-11-02 18:55 ` [PATCH 04/10] drm/i915: move dri1 dungeon out of dev_priv Daniel Vetter
2012-11-02 19:09 ` Jesse Barnes
2012-11-02 18:55 ` [PATCH 05/10] drm/i915: extract dev_priv fbc state into separate substruct Daniel Vetter
2012-11-02 19:09 ` Jesse Barnes
2012-11-03 10:06 ` Daniel Vetter
2012-11-02 18:55 ` [PATCH 06/10] drm/i915: extract l3_parity substruct from dev_priv Daniel Vetter
2012-11-02 19:10 ` Jesse Barnes
2012-11-02 21:56 ` Daniel Vetter
2012-11-02 18:55 ` [PATCH 07/10] drm/i915: move dev_priv->mm out of line Daniel Vetter
2012-11-02 18:55 ` [PATCH 08/10] drm/i915: extract hangcheck/reset/error_state state into substruct Daniel Vetter
2012-11-02 18:55 ` [PATCH 09/10] drm/i915: kill dev_priv->modeset_on_lid Daniel Vetter
2012-11-02 18:55 ` [PATCH 10/10] drm/i915: move fence_regs to the fence lru Daniel Vetter
2012-11-04 17:30 ` [PATCH 00/10] shrink dev_priv by 300 lines Ben Widawsky
2012-11-04 17:53 ` 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=20121102120708.73363c9a@jbarnes-desktop \
--to=jbarnes@virtuousgeek.org \
--cc=daniel.vetter@ffwll.ch \
--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