OSDN Git Service

drm/i915: Add polish to VLV WM shift+mask operations
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 10 Mar 2015 14:16:28 +0000 (16:16 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 17 Mar 2015 21:30:20 +0000 (22:30 +0100)
commit15665979ca601f483cd5caca851620d2c2845125
treeaaefc9ffc3b94ea17a2f10ddaeed80e33278df17
parent6e721fb1ee99f3f9f67b94c8d1f9204217399733
drm/i915: Add polish to VLV WM shift+mask operations

Wrap the FW register value shift+mask operations into a macro to hide
the ugliness a bit. Also might avoid bugs due to typos.

Also rename all the primary/sprite plane low order bit masks to have the
_VLV suffix, so that we can use the FW_WM_VLV() macro instead of the
FW_WM() macro for them in a consistent manner. Cursor and all the high
order bits are left to use the FW_WM() macro as there's no real
confusion with them.

Cc: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_pm.c