Skip to contentSkip to conversation

drm/i915: Use I915_MAX_PIPES instead of hardcoded value

PATCH In review [email protected] 3 participants 3 messages Feb 20, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915: Use I915_MAX_PIPES instead of hardcoded value

From: Ville Syrjälä <[email protected]>

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

---
 drivers/gpu/drm/i915/i915_drv.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_drv.h +1 -1
index e95337c..9fe78f7 100644
@@ -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;
 
Signature · 6 lines
1.7.12.4

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw
Quoted 4 lines · On Wed, Feb 20, 2013 at 04:47:16PM +0200, [email protected] wrote:

From: Ville Syrjälä <[email protected]>

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

Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre
#2 lore raw
Quoted 10 lines · On Wed, 20 Feb 2013 15:07:10 +0000 Chris Wilson <[email protected]>…
Quoted 4 lines · On Wed, Feb 20, 2013 at 04:47:16PM +0200, [email protected] wrote:

From: Ville Syrjälä <[email protected]>

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.

Signature · 5 lines
Jesse Barnes, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx