All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Be optimistic about future display engines having 7 WM levels
@ 2015-05-09  1:05 Damien Lespiau
  2015-05-09 17:16 ` shuang.he
  2015-05-11 10:20 ` Daniel Vetter
  0 siblings, 2 replies; 3+ messages in thread
From: Damien Lespiau @ 2015-05-09  1:05 UTC (permalink / raw)
  To: intel-gfx; +Cc: rodrigo.vivi

As we're doing throughout the code, being optimistic that platform n + 1
will mostly reuse the same things as platform n allows us to minimize
the enabling work needed.

This time, it's about the number of WM levels.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
---
 drivers/gpu/drm/i915/intel_pm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index 7006f94..3271e4a 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -1946,7 +1946,7 @@ static void intel_fixup_cur_wm_latency(struct drm_device *dev, uint16_t wm[5])
 int ilk_wm_max_level(const struct drm_device *dev)
 {
 	/* how many WM levels are we expecting */
-	if (IS_GEN9(dev))
+	if (INTEL_INFO(dev)->gen >= 9)
 		return 7;
 	else if (IS_HASWELL(dev) || IS_BROADWELL(dev))
 		return 4;
-- 
2.1.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm/i915: Be optimistic about future display engines having 7 WM levels
  2015-05-09  1:05 [PATCH] drm/i915: Be optimistic about future display engines having 7 WM levels Damien Lespiau
@ 2015-05-09 17:16 ` shuang.he
  2015-05-11 10:20 ` Daniel Vetter
  1 sibling, 0 replies; 3+ messages in thread
From: shuang.he @ 2015-05-09 17:16 UTC (permalink / raw)
  To: shuang.he, ethan.gao, intel-gfx, damien.lespiau

Tested-By: Intel Graphics QA PRTS (Patch Regression Test System Contact: shuang.he@intel.com)
Task id: 6368
-------------------------------------Summary-------------------------------------
Platform          Delta          drm-intel-nightly          Series Applied
PNV                                  276/276              276/276
ILK                                  302/302              302/302
SNB                                  316/316              316/316
IVB                                  342/342              342/342
BYT                                  286/286              286/286
BDW                                  321/321              321/321
-------------------------------------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] 3+ messages in thread

* Re: [PATCH] drm/i915: Be optimistic about future display engines having 7 WM levels
  2015-05-09  1:05 [PATCH] drm/i915: Be optimistic about future display engines having 7 WM levels Damien Lespiau
  2015-05-09 17:16 ` shuang.he
@ 2015-05-11 10:20 ` Daniel Vetter
  1 sibling, 0 replies; 3+ messages in thread
From: Daniel Vetter @ 2015-05-11 10:20 UTC (permalink / raw)
  To: Damien Lespiau; +Cc: intel-gfx, rodrigo.vivi

On Sat, May 09, 2015 at 02:05:55AM +0100, Damien Lespiau wrote:
> As we're doing throughout the code, being optimistic that platform n + 1
> will mostly reuse the same things as platform n allows us to minimize
> the enabling work needed.
> 
> This time, it's about the number of WM levels.
> 
> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>

Queued for -next, thanks for the patch.
-Daniel

> ---
>  drivers/gpu/drm/i915/intel_pm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
> index 7006f94..3271e4a 100644
> --- a/drivers/gpu/drm/i915/intel_pm.c
> +++ b/drivers/gpu/drm/i915/intel_pm.c
> @@ -1946,7 +1946,7 @@ static void intel_fixup_cur_wm_latency(struct drm_device *dev, uint16_t wm[5])
>  int ilk_wm_max_level(const struct drm_device *dev)
>  {
>  	/* how many WM levels are we expecting */
> -	if (IS_GEN9(dev))
> +	if (INTEL_INFO(dev)->gen >= 9)
>  		return 7;
>  	else if (IS_HASWELL(dev) || IS_BROADWELL(dev))
>  		return 4;
> -- 
> 2.1.0
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
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] 3+ messages in thread

end of thread, other threads:[~2015-05-11 10:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-09  1:05 [PATCH] drm/i915: Be optimistic about future display engines having 7 WM levels Damien Lespiau
2015-05-09 17:16 ` shuang.he
2015-05-11 10:20 ` 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.