drm/i915: FIFO space query code refactor
authorDave Gordon <david.s.gordon@intel.com>
Wed, 10 Dec 2014 18:12:12 +0000 (18:12 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 23 Feb 2015 15:45:16 +0000 (16:45 +0100)
commitc32e3788ecc27a66bb859b67a58893cd2a32bf1b
tree4c416994d9180bf339cafee4f8198d81560176f0
parentee3c7795e54f405fbd278b17d2e0cd8ca1c92b69
drm/i915: FIFO space query code refactor

When querying the GTFIFOCTL register to check the FIFO space, the read value
must be masked. The operation is repeated explicitly in several places. This
change refactors the read-and-mask code into a function call.

v2: rebased on top of Mika's forcewake patch set, specifically:
[PATCH 8/8] drm/i915: Enum forcewake domains and domain identifiers

Change-Id: Id1a9f3785cb20b82d4caa330c37b31e4e384a3ef
Signed-off-by: Dave Gordon <david.s.gordon@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_uncore.c