drm/i915: Cleanup some of the CSB handling
authorBen Widawsky <benjamin.widawsky@intel.com>
Tue, 5 Jan 2016 18:30:05 +0000 (10:30 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 7 Jan 2016 14:34:41 +0000 (15:34 +0100)
commit5590a5f0af78c73c94de8c63ca580bff31b97c1e
tree0788bcfbd17a1199dd9d5cd5c19d6e9a3674a96c
parent16fbc291cb87c7defcd13ad715d3e4af0d523e43
drm/i915: Cleanup some of the CSB handling

I think this patch is a worthwhile cleanup even if it might look only marginally
useful. It gets more useful in upcoming patches and for handling of future GEN
platforms.

The only non-mechanical part of this is the removal of the extra & operation on
the ring->next_context_status_buffer. This is safe because right above this, we
already did a modulus operation.

Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1452018609-10142-2-git-send-email-benjamin.widawsky@intel.com
Reviewed-by: Michel Thierry <michel.thierry@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_lrc.h