drm/i915: Dump pfit state as hex
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 3 Sep 2015 18:50:16 +0000 (21:50 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 4 Sep 2015 08:33:23 +0000 (10:33 +0200)
The pfit state is stored as register values, so dump them as hex instead
of decimal to make some sense of the error messages.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c

index b59717a6e6a6367c0833727b25a345a2e91281f1..110b8dc7bbd01ba706c90df8d46f27fac0a1252e 100644 (file)
@@ -12439,16 +12439,16 @@ intel_pipe_config_compare(struct drm_device *dev,
        PIPE_CONF_CHECK_I(pipe_src_w);
        PIPE_CONF_CHECK_I(pipe_src_h);
 
-       PIPE_CONF_CHECK_I(gmch_pfit.control);
+       PIPE_CONF_CHECK_X(gmch_pfit.control);
        /* pfit ratios are autocomputed by the hw on gen4+ */
        if (INTEL_INFO(dev)->gen < 4)
                PIPE_CONF_CHECK_I(gmch_pfit.pgm_ratios);
-       PIPE_CONF_CHECK_I(gmch_pfit.lvds_border_bits);
+       PIPE_CONF_CHECK_X(gmch_pfit.lvds_border_bits);
 
        PIPE_CONF_CHECK_I(pch_pfit.enabled);
        if (current_config->pch_pfit.enabled) {
-               PIPE_CONF_CHECK_I(pch_pfit.pos);
-               PIPE_CONF_CHECK_I(pch_pfit.size);
+               PIPE_CONF_CHECK_X(pch_pfit.pos);
+               PIPE_CONF_CHECK_X(pch_pfit.size);
        }
 
        PIPE_CONF_CHECK_I(scaler_state.scaler_id);