Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/i915/dpt: switch to i915 runtime pm calls

The i915 specific code doesn't need to, and should not, call the display
runtime pm functions. Just call the i915 functions directly, instead of
routing through the parent interface.

Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Link: https://patch.msgid.link/e8e00552ebf439b5f7b5d293014cce950c9c2999.1772030909.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>

+2 -3
+2 -3
drivers/gpu/drm/i915/i915_dpt.c
··· 7 7 #include <drm/intel/display_parent_interface.h> 8 8 9 9 #include "display/intel_display_core.h" 10 - #include "display/intel_display_rpm.h" 11 10 #include "gem/i915_gem_domain.h" 12 11 #include "gem/i915_gem_internal.h" 13 12 #include "gem/i915_gem_lmem.h" ··· 137 138 if (i915_gem_object_is_stolen(dpt->obj)) 138 139 pin_flags |= PIN_MAPPABLE; 139 140 140 - wakeref = intel_display_rpm_get(display); 141 + wakeref = intel_runtime_pm_get(&i915->runtime_pm); 141 142 atomic_inc(&display->restore.pending_fb_pin); 142 143 143 144 for_i915_gem_ww(&ww, err, true) { ··· 169 170 dpt->obj->mm.dirty = true; 170 171 171 172 atomic_dec(&display->restore.pending_fb_pin); 172 - intel_display_rpm_put(display, wakeref); 173 + intel_runtime_pm_put(&i915->runtime_pm, wakeref); 173 174 174 175 return err ? ERR_PTR(err) : vma; 175 176 }