Skip to content

Commit 44fde50

Browse files
committed
drm/xe/display: Use display parent interface for xe runtime pm
Start using display parent interface for xe runtime pm. v2: keep xe_display_rpm.c Reviewed-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Jouni Högander <jouni.hogander@intel.com> Link: https://patch.msgid.link/20251030202836.1815680-7-jouni.hogander@intel.com
1 parent 98c7fc0 commit 44fde50

2 files changed

Lines changed: 1 addition & 65 deletions

File tree

drivers/gpu/drm/xe/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ xe-$(CONFIG_DRM_XE_DISPLAY) += \
252252
i915-display/intel_display_power.o \
253253
i915-display/intel_display_power_map.o \
254254
i915-display/intel_display_power_well.o \
255+
i915-display/intel_display_rpm.o \
255256
i915-display/intel_display_trace.o \
256257
i915-display/intel_display_utils.o \
257258
i915-display/intel_display_wa.o \

drivers/gpu/drm/xe/display/xe_display_rpm.c

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -9,71 +9,6 @@
99
#include "xe_device_types.h"
1010
#include "xe_pm.h"
1111

12-
static struct xe_device *display_to_xe(struct intel_display *display)
13-
{
14-
return to_xe_device(display->drm);
15-
}
16-
17-
struct ref_tracker *intel_display_rpm_get_raw(struct intel_display *display)
18-
{
19-
return intel_display_rpm_get(display);
20-
}
21-
22-
void intel_display_rpm_put_raw(struct intel_display *display, struct ref_tracker *wakeref)
23-
{
24-
intel_display_rpm_put(display, wakeref);
25-
}
26-
27-
struct ref_tracker *intel_display_rpm_get(struct intel_display *display)
28-
{
29-
return xe_pm_runtime_resume_and_get(display_to_xe(display)) ? INTEL_WAKEREF_DEF : NULL;
30-
}
31-
32-
struct ref_tracker *intel_display_rpm_get_if_in_use(struct intel_display *display)
33-
{
34-
return xe_pm_runtime_get_if_in_use(display_to_xe(display)) ? INTEL_WAKEREF_DEF : NULL;
35-
}
36-
37-
struct ref_tracker *intel_display_rpm_get_noresume(struct intel_display *display)
38-
{
39-
xe_pm_runtime_get_noresume(display_to_xe(display));
40-
41-
return INTEL_WAKEREF_DEF;
42-
}
43-
44-
void intel_display_rpm_put(struct intel_display *display, struct ref_tracker *wakeref)
45-
{
46-
if (wakeref)
47-
xe_pm_runtime_put(display_to_xe(display));
48-
}
49-
50-
void intel_display_rpm_put_unchecked(struct intel_display *display)
51-
{
52-
xe_pm_runtime_put(display_to_xe(display));
53-
}
54-
55-
bool intel_display_rpm_suspended(struct intel_display *display)
56-
{
57-
struct xe_device *xe = display_to_xe(display);
58-
59-
return pm_runtime_suspended(xe->drm.dev);
60-
}
61-
62-
void assert_display_rpm_held(struct intel_display *display)
63-
{
64-
/* FIXME */
65-
}
66-
67-
void intel_display_rpm_assert_block(struct intel_display *display)
68-
{
69-
/* FIXME */
70-
}
71-
72-
void intel_display_rpm_assert_unblock(struct intel_display *display)
73-
{
74-
/* FIXME */
75-
}
76-
7712
static struct ref_tracker *xe_display_rpm_get(const struct drm_device *drm)
7813
{
7914
return xe_pm_runtime_resume_and_get(to_xe_device(drm)) ? INTEL_WAKEREF_DEF : NULL;

0 commit comments

Comments
 (0)