]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: create macros to handle masked bits
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 24 Apr 2012 12:04:12 +0000 (14:04 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 3 May 2012 09:18:08 +0000 (11:18 +0200)
commitdcda0ee28c5f6179105c72bde2ef7c1236d57a6e
tree5abfc0fecc0549878c0b93fb81e8fa535c1439b6
parent94811f4f0c8d3712d499ed6928c449939809dc5c
drm/i915: create macros to handle masked bits

... and put them to so good use.

Note that there's functional change in vlv clock gating code, we now
no longer spuriously read back the current value of the bit. According
to Bspec the high bits should always read zero, so ORing this in
should have no effect.

Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_pm.c
drivers/gpu/drm/i915/intel_ringbuffer.c