提交 bffbcd93 编写于 作者: D Daniel Vetter 提交者: Jani Nikula

drm/i915/gen9: Don't try to load garbage dmc firmware on resume

We need to make sure we don't put garbage into the hw if dmc firmware
loading failed mid-thru.

Cc: Damien Lespiau <damien.lespiau@intel.com>
Cc: Imre Deak <imre.deak@intel.com>
Cc: Sunil Kamath <sunil.kamath@intel.com>
Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com>
Signed-off-by: NAnimesh Manna <animesh.manna@intel.com>
Signed-off-by: NImre Deak <imre.deak@intel.com>
Tested-by: Daniel Stone <daniels@collabora.com> # SKL
Signed-off-by: NJani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1446069547-24760-8-git-send-email-imre.deak@intel.com
上级 c729ed88
无相关合并请求
...@@ -223,7 +223,7 @@ void intel_csr_load_program(struct drm_device *dev) ...@@ -223,7 +223,7 @@ void intel_csr_load_program(struct drm_device *dev)
* Unfortunately the ACPI subsystem doesn't yet give us a way to * Unfortunately the ACPI subsystem doesn't yet give us a way to
* differentiate this, hence figure it out with this hack. * differentiate this, hence figure it out with this hack.
*/ */
if (I915_READ(CSR_PROGRAM(0))) if ((!dev_priv->csr.dmc_payload) || I915_READ(CSR_PROGRAM(0)))
return; return;
fw_size = dev_priv->csr.dmc_fw_size; fw_size = dev_priv->csr.dmc_fw_size;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部