drm/i915: use correct power domain for csr loading
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 28 Oct 2015 21:58:56 +0000 (23:58 +0200)
committerJani Nikula <jani.nikula@intel.com>
Thu, 12 Nov 2015 14:42:23 +0000 (16:42 +0200)
commit01a6908c0c7a0f7dfae50026945340b9efcd2e3e
tree5383894602e1b96acc9bd98db7f0f87ba1ee6782
parentebae38d061df3deffa7c17b030ea14a5216ee55f
drm/i915: use correct power domain for csr loading

Grabbing a runtime pm reference with intel_runtime_pm_get will only
prevent device D3. But dmc firmware is required even earlier (namely
for the skl power well 2).

Hence we need to grab a rpm reference higher up in the hierarchy. For
simplicity just grab the _INIT display power well. That's a bit too
much, but since the firmware loading task should completely fairly
quickly this won't be a real problem really.

Cc: Damien Lespiau <damien.lespiau@intel.com>
Cc: Imre Deak <imre.deak@intel.com>
Cc: Sunil Kamath <sunil.kamath@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Signed-off-by: Animesh Manna <animesh.manna@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Tested-by: Daniel Stone <daniels@collabora.com> # SKL
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1446069547-24760-3-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/intel_csr.c