drm/i915: Remove '& 0xffff' from the mask given to WA_REG()
authorDamien Lespiau <damien.lespiau@intel.com>
Mon, 8 Dec 2014 17:35:38 +0000 (17:35 +0000)
committerJani Nikula <jani.nikula@intel.com>
Wed, 10 Dec 2014 14:39:24 +0000 (16:39 +0200)
We may be hidding bugs by doing that, so let remove it and have the
actual mask value shine through, for better or worse.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_ringbuffer.c

index ef05af02763a2321e203c3fb1fe0a719a6c13c56..9f445e9a75d1a1788669ab2969a2d769cf7d204e 100644 (file)
@@ -724,10 +724,10 @@ static int wa_add(struct drm_i915_private *dev_priv,
        }
 
 #define WA_SET_BIT_MASKED(addr, mask) \
-       WA_REG(addr, (mask) & 0xffff, _MASKED_BIT_ENABLE(mask))
+       WA_REG(addr, (mask), _MASKED_BIT_ENABLE(mask))
 
 #define WA_CLR_BIT_MASKED(addr, mask) \
-       WA_REG(addr, (mask) & 0xffff, _MASKED_BIT_DISABLE(mask))
+       WA_REG(addr, (mask), _MASKED_BIT_DISABLE(mask))
 
 #define WA_SET_FIELD_MASKED(addr, mask, value) \
        WA_REG(addr, mask, _MASKED_FIELD(mask, value))