drm/i915/skl: Add debug messages at the start/end of DMC firmware loading
authorDamien Lespiau <damien.lespiau@intel.com>
Thu, 4 Jun 2015 15:42:16 +0000 (16:42 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 15 Jun 2015 12:30:47 +0000 (14:30 +0200)
It's handy to have debug message for the "big" events and this one
qualifies IMHO. Also helpful to see what's happening while we're loading
the firwmare and how much time it takes.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_csr.c

index aae065280d1b40df4280e07a4d87c017f780dc3d..2cf25ee8a268597d2c421c8444b5eaae10d9b23c 100644 (file)
@@ -389,6 +389,7 @@ static void finish_csr_load(const struct firmware *fw, void *context)
        intel_csr_load_program(dev);
        fw_loaded = true;
 
+       DRM_DEBUG_KMS("Finished loading %s\n", dev_priv->csr.fw_path);
 out:
        if (fw_loaded)
                intel_runtime_pm_put(dev_priv);
@@ -422,6 +423,8 @@ void intel_csr_ucode_init(struct drm_device *dev)
                return;
        }
 
+       DRM_DEBUG_KMS("Loading %s\n", csr->fw_path);
+
        /*
         * Obtain a runtime pm reference, until CSR is loaded,
         * to avoid entering runtime-suspend.