drm/i915/cnl: Fix the CURSOR_COEFF_MASK used in DDI Vswing Programming
authorNavare, Manasi D <[email protected]>
Fri, 30 Jun 2017 01:14:01 +0000 (18:14 -0700)
committerJani Nikula <[email protected]>
Mon, 3 Jul 2017 13:12:57 +0000 (16:12 +0300)
The Cursor Coeff is lower 6 bits in the PORT_TX_DW4 register
and hence the CURSOR_COEFF_MASK should be (0x3F << 0)

Fixes: 04416108ccea ("drm/i915/cnl: Add registers related to voltage
swing sequences.")
Signed-off-by: Manasi Navare <[email protected]>
Reviewed-by: Rodrigo Vivi <[email protected]>
Signed-off-by: Rodrigo Vivi <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
(cherry picked from commit fcace3b9b727e25ffa3f7ad2c96e76b8584a9f3e)
Signed-off-by: Jani Nikula <[email protected]>
drivers/gpu/drm/i915/i915_reg.h

index c8647cfa81baab5c88f5d5c592814b1086a8816c..64cc674b652ac038f14b9c8ad860601e43a51ae8 100644 (file)
@@ -1802,7 +1802,7 @@ enum skl_disp_power_wells {
 #define   POST_CURSOR_2(x)             ((x) << 6)
 #define   POST_CURSOR_2_MASK           (0x3F << 6)
 #define   CURSOR_COEFF(x)              ((x) << 0)
-#define   CURSOR_COEFF_MASK            (0x3F << 6)
+#define   CURSOR_COEFF_MASK            (0x3F << 0)
 
 #define _CNL_PORT_TX_DW5_GRP_AE                0x162354
 #define _CNL_PORT_TX_DW5_GRP_B         0x1623D4