浏览代码

drm/i915/skl: Add debug messages at the start/end of DMC firmware loading

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>
Damien Lespiau 10 年之前
父节点
当前提交
abd41dc93c
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      drivers/gpu/drm/i915/intel_csr.c

+ 3 - 0
drivers/gpu/drm/i915/intel_csr.c

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