Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Use I915_MAX_PIPES instead of hardcoded value
@ 2013-02-20 14:47 ville.syrjala
  2013-02-20 15:07 ` Chris Wilson
  0 siblings, 1 reply; 3+ messages in thread
From: ville.syrjala @ 2013-02-20 14:47 UTC (permalink / raw)
  To: intel-gfx

From: Ville Syrjälä <ville.syrjala@linux.intel.com>

The pipestat array size should have space for every pipe in the system.
Use the define we have for it.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 drivers/gpu/drm/i915/i915_drv.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index e95337c..9fe78f7 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -905,7 +905,7 @@ typedef struct drm_i915_private {
 	struct mutex dpio_lock;
 
 	/** Cached value of IMR to avoid reads in updating the bitfield */
-	u32 pipestat[2];
+	u32 pipestat[I915_MAX_PIPES];
 	u32 irq_mask;
 	u32 gt_irq_mask;
 
-- 
1.7.12.4

_______________________________________________
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: Use I915_MAX_PIPES instead of hardcoded value
  2013-02-20 14:47 [PATCH] drm/i915: Use I915_MAX_PIPES instead of hardcoded value ville.syrjala
@ 2013-02-20 15:07 ` Chris Wilson
  2013-02-20 18:14   ` Jesse Barnes
  0 siblings, 1 reply; 3+ messages in thread
From: Chris Wilson @ 2013-02-20 15:07 UTC (permalink / raw)
  To: ville.syrjala; +Cc: intel-gfx

On Wed, Feb 20, 2013 at 04:47:16PM +0200, ville.syrjala@linux.intel.com wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> 
> The pipestat array size should have space for every pipe in the system.
> Use the define we have for it.

Tbh, I think that cache should die. I think the hitrate is near zero,
and offers no benefit over just writing the register directly.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre

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

* Re: [PATCH] drm/i915: Use I915_MAX_PIPES instead of hardcoded value
  2013-02-20 15:07 ` Chris Wilson
@ 2013-02-20 18:14   ` Jesse Barnes
  0 siblings, 0 replies; 3+ messages in thread
From: Jesse Barnes @ 2013-02-20 18:14 UTC (permalink / raw)
  To: Chris Wilson; +Cc: intel-gfx

On Wed, 20 Feb 2013 15:07:10 +0000
Chris Wilson <chris@chris-wilson.co.uk> wrote:

> On Wed, Feb 20, 2013 at 04:47:16PM +0200, ville.syrjala@linux.intel.com wrote:
> > From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> > 
> > The pipestat array size should have space for every pipe in the system.
> > Use the define we have for it.
> 
> Tbh, I think that cache should die. I think the hitrate is near zero,
> and offers no benefit over just writing the register directly.
> -Chris
> 

Seconded.

-- 
Jesse Barnes, Intel Open Source Technology Center
_______________________________________________
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:[~2013-02-20 18:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-20 14:47 [PATCH] drm/i915: Use I915_MAX_PIPES instead of hardcoded value ville.syrjala
2013-02-20 15:07 ` Chris Wilson
2013-02-20 18:14   ` Jesse Barnes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox