drm/i915/ringbuffer: exclude last 2 cachelines on 845g on all callpaths
Subsystems (2)
PATCH 1/1 drm/i915/ringbuffer: exclude last 2 cachelines on 845g on all callpaths
Make intel_render_ring_init_dri and intel_init_ring_buffer symmetrical with regards of workaround introduced by:
commit 27c1cbd06a7620b354cbb363834f3bb8df4f410d
Author: Chris Wilson <[email protected]> Date: Mon Apr 9 13:59:46 2012 +0100
drm/i915/ringbuffer: Exclude last 2 cachlines of ring on 845g
Signed-off-by Mika Kuoppala <[email protected]>
--- drivers/gpu/drm/i915/intel_ringbuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_ringbuffer.c +1 -1
@@ -1590,7 +1590,7 @@ int intel_render_ring_init_dri(struct drm_device *dev, u64 start, u32 size) ring->size = size; ring->effective_size = ring->size; -if (IS_I830 (ring->dev)) +if (IS_I830 (ring->dev) ||IS_845G (ring->dev)) ring->effective_size -=128 ; ring->virtual_start =ioremap_wc (start, size);
Signature · 1 line
1.7.9.5
Daniel Vetter
AppliedQuoted 10 lines · Mika Kuoppala
Make
intel_render_ring_init_driandintel_init_ring_buffersymmetrical with regards of workaround introduced by:commit
27c1cbd06a7620b354cbb363834f3bb8df4f410dAuthor: Chris Wilson <[email protected]> Date: Mon Apr 9 13:59:46 2012 +0100drm/i915/ringbuffer: Exclude last 2 cachlines of ring on 845g
Signed-off-by Mika Kuoppala <[email protected]>
Queued for -next, thanks for the patch.
-Daniel
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch