drm/i915: Use I915_MAX_PIPES instead of hardcoded value
Subsystems (2)
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
@@ -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
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
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