* [PATCH] drm/i915: s/9/intel_freq_opcode(450)/
@ 2015-03-25 17:27 ville.syrjala
2015-03-26 7:16 ` shuang.he
2015-03-26 14:17 ` Damien Lespiau
0 siblings, 2 replies; 4+ messages in thread
From: ville.syrjala @ 2015-03-25 17:27 UTC (permalink / raw)
To: intel-gfx
From: Ville Syrjälä <ville.syrjala@linux.intel.com>
Replace the hardcoded 9 with a call to intel_freq_opcode(450).
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
drivers/gpu/drm/i915/intel_pm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index 753a3af..ac5fff9 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -4250,8 +4250,8 @@ static void gen6_init_rps_frequencies(struct drm_device *dev)
if (dev_priv->rps.min_freq_softlimit == 0) {
if (IS_HASWELL(dev) || IS_BROADWELL(dev))
dev_priv->rps.min_freq_softlimit =
- /* max(RPe, 450 MHz) */
- max(dev_priv->rps.efficient_freq, (u8) 9);
+ max_t(int, dev_priv->rps.efficient_freq,
+ intel_freq_opcode(dev_priv, 450));
else
dev_priv->rps.min_freq_softlimit =
dev_priv->rps.min_freq;
--
2.0.5
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/i915: s/9/intel_freq_opcode(450)/
2015-03-25 17:27 [PATCH] drm/i915: s/9/intel_freq_opcode(450)/ ville.syrjala
@ 2015-03-26 7:16 ` shuang.he
2015-03-26 14:17 ` Damien Lespiau
1 sibling, 0 replies; 4+ messages in thread
From: shuang.he @ 2015-03-26 7:16 UTC (permalink / raw)
To: shuang.he, ethan.gao, intel-gfx, ville.syrjala
Tested-By: PRC QA PRTS (Patch Regression Test System Contact: shuang.he@intel.com)
Task id: 6052
-------------------------------------Summary-------------------------------------
Platform Delta drm-intel-nightly Series Applied
PNV 276/276 276/276
ILK 303/303 303/303
SNB 304/304 304/304
IVB 339/339 339/339
BYT 287/287 287/287
HSW 362/362 362/362
BDW 310/310 310/310
-------------------------------------Detailed-------------------------------------
Platform Test drm-intel-nightly Series Applied
Note: You need to pay more attention to line start with '*'
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/i915: s/9/intel_freq_opcode(450)/
2015-03-25 17:27 [PATCH] drm/i915: s/9/intel_freq_opcode(450)/ ville.syrjala
2015-03-26 7:16 ` shuang.he
@ 2015-03-26 14:17 ` Damien Lespiau
2015-05-06 14:34 ` Daniel Vetter
1 sibling, 1 reply; 4+ messages in thread
From: Damien Lespiau @ 2015-03-26 14:17 UTC (permalink / raw)
To: ville.syrjala; +Cc: intel-gfx
On Wed, Mar 25, 2015 at 07:27:16PM +0200, ville.syrjala@linux.intel.com wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> Replace the hardcoded 9 with a call to intel_freq_opcode(450).
>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
> ---
> drivers/gpu/drm/i915/intel_pm.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
> index 753a3af..ac5fff9 100644
> --- a/drivers/gpu/drm/i915/intel_pm.c
> +++ b/drivers/gpu/drm/i915/intel_pm.c
> @@ -4250,8 +4250,8 @@ static void gen6_init_rps_frequencies(struct drm_device *dev)
> if (dev_priv->rps.min_freq_softlimit == 0) {
> if (IS_HASWELL(dev) || IS_BROADWELL(dev))
> dev_priv->rps.min_freq_softlimit =
> - /* max(RPe, 450 MHz) */
> - max(dev_priv->rps.efficient_freq, (u8) 9);
> + max_t(int, dev_priv->rps.efficient_freq,
> + intel_freq_opcode(dev_priv, 450));
> else
> dev_priv->rps.min_freq_softlimit =
> dev_priv->rps.min_freq;
> --
> 2.0.5
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/i915: s/9/intel_freq_opcode(450)/
2015-03-26 14:17 ` Damien Lespiau
@ 2015-05-06 14:34 ` Daniel Vetter
0 siblings, 0 replies; 4+ messages in thread
From: Daniel Vetter @ 2015-05-06 14:34 UTC (permalink / raw)
To: Damien Lespiau; +Cc: intel-gfx
On Thu, Mar 26, 2015 at 02:17:25PM +0000, Damien Lespiau wrote:
> On Wed, Mar 25, 2015 at 07:27:16PM +0200, ville.syrjala@linux.intel.com wrote:
> > From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> >
> > Replace the hardcoded 9 with a call to intel_freq_opcode(450).
> >
> > Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Queued for -next, thanks for the patch.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-05-06 14:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-25 17:27 [PATCH] drm/i915: s/9/intel_freq_opcode(450)/ ville.syrjala
2015-03-26 7:16 ` shuang.he
2015-03-26 14:17 ` Damien Lespiau
2015-05-06 14:34 ` Daniel Vetter
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.