drm/xe: Create a xe_pm_runtime_resume_and_get variant for display
authorRodrigo Vivi <rodrigo.vivi@intel.com>
Fri, 1 Mar 2024 18:05:24 +0000 (13:05 -0500)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 4 Mar 2024 17:47:04 +0000 (12:47 -0500)
commitd6b4137822a1f8d1a6676c18dff551b394557b65
tree6c1e999fa200b9b6abee4ebf669d940e4a50bcf7
parent3b85b7bcccf45f674d35c0bf65aa84153397380d
drm/xe: Create a xe_pm_runtime_resume_and_get variant for display

Introduce the resume and get to fulfill the display need for checking
if the device was actually resumed (or it is awake) and the reference
was taken.

Then we can convert the remaining cases to a void function and have
individual functions for individual cases.

Also, already start this new function protected from the runtime
recursion, since runtime_pm will need to call for display functions
for a proper D3Cold flow.

Cc: Anshuman Gupta <anshuman.gupta@intel.com>
Reviewed-by: Anshuman Gupta <anshuman.gupta@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240301180526.643505-2-rodrigo.vivi@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h
drivers/gpu/drm/xe/xe_pm.c
drivers/gpu/drm/xe/xe_pm.h