drm/i915: Extract CSB status read
authorBen Widawsky <benjamin.widawsky@intel.com>
Tue, 5 Jan 2016 18:30:07 +0000 (10:30 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 7 Jan 2016 14:34:41 +0000 (15:34 +0100)
commit91a4103206e3386aa3ea53b25d23f52913353e3a
treecfbe814f4b7c03cdf725d93aef172971c7a98727
parentf764a8b146547b643d40b90a304ff99389edf352
drm/i915: Extract CSB status read

This is a useful thing to have around as a function because the mechanism may
change in the future.

There is a net increase in LOC here, and it will continue to be the case on GEN8
and GEN9 - but future GENs may have an alternate mechanism for doing this.

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