From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Jani Nikula <jani.nikula@intel.com>
Cc: <intel-gfx@lists.freedesktop.org>,
<intel-xe@lists.freedesktop.org>, <imre.deak@intel.com>,
<ville.syrjala@linux.intel.com>
Subject: Re: [PATCH 6/6] drm/xe/compat: remove intel_runtime_pm.h
Date: Tue, 11 Mar 2025 16:46:16 -0400 [thread overview]
Message-ID: <Z9ChGMufgAIFjwHt@intel.com> (raw)
In-Reply-To: <d86c76bd309c30f287d5baf36513796f39bdf0e5.1741694400.git.jani.nikula@intel.com>
On Tue, Mar 11, 2025 at 02:05:40PM +0200, Jani Nikula wrote:
> Now that all display code has been converted to display specific runtime
> PM interfaces, there's no need for the compat header anymore.
>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
> ---
> .../gpu/drm/xe/compat-i915-headers/i915_drv.h | 1 -
> .../xe/compat-i915-headers/intel_runtime_pm.h | 76 -------------------
> 2 files changed, 77 deletions(-)
> delete mode 100644 drivers/gpu/drm/xe/compat-i915-headers/intel_runtime_pm.h
>
> diff --git a/drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h b/drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h
> index dfec5108d2c3..f89bd5e3520d 100644
> --- a/drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h
> +++ b/drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h
> @@ -13,7 +13,6 @@
> #include <drm/drm_drv.h>
>
> #include "i915_utils.h"
> -#include "intel_runtime_pm.h"
> #include "xe_device.h" /* for xe_device_has_flat_ccs() */
> #include "xe_device_types.h"
>
> diff --git a/drivers/gpu/drm/xe/compat-i915-headers/intel_runtime_pm.h b/drivers/gpu/drm/xe/compat-i915-headers/intel_runtime_pm.h
> deleted file mode 100644
> index 274042bff1be..000000000000
> --- a/drivers/gpu/drm/xe/compat-i915-headers/intel_runtime_pm.h
> +++ /dev/null
> @@ -1,76 +0,0 @@
> -/* SPDX-License-Identifier: MIT */
> -/*
> - * Copyright © 2023 Intel Corporation
> - */
> -
> -#ifndef __INTEL_RUNTIME_PM_H__
> -#define __INTEL_RUNTIME_PM_H__
> -
> -#include "intel_wakeref.h"
> -#include "xe_device_types.h"
> -#include "xe_pm.h"
> -
> -#define intel_runtime_pm xe_runtime_pm
> -
> -static inline void disable_rpm_wakeref_asserts(void *rpm)
> -{
> -}
> -
> -static inline void enable_rpm_wakeref_asserts(void *rpm)
> -{
> -}
> -
> -static inline bool
> -intel_runtime_pm_suspended(struct xe_runtime_pm *pm)
> -{
> - struct xe_device *xe = container_of(pm, struct xe_device, runtime_pm);
> -
> - return pm_runtime_suspended(xe->drm.dev);
> -}
> -
> -static inline intel_wakeref_t intel_runtime_pm_get(struct xe_runtime_pm *pm)
> -{
> - struct xe_device *xe = container_of(pm, struct xe_device, runtime_pm);
> -
> - return xe_pm_runtime_resume_and_get(xe) ? INTEL_WAKEREF_DEF : NULL;
> -}
> -
> -static inline intel_wakeref_t intel_runtime_pm_get_if_in_use(struct xe_runtime_pm *pm)
> -{
> - struct xe_device *xe = container_of(pm, struct xe_device, runtime_pm);
> -
> - return xe_pm_runtime_get_if_in_use(xe) ? INTEL_WAKEREF_DEF : NULL;
> -}
> -
> -static inline intel_wakeref_t intel_runtime_pm_get_noresume(struct xe_runtime_pm *pm)
> -{
> - struct xe_device *xe = container_of(pm, struct xe_device, runtime_pm);
> -
> - xe_pm_runtime_get_noresume(xe);
> -
> - return INTEL_WAKEREF_DEF;
> -}
> -
> -static inline void intel_runtime_pm_put_unchecked(struct xe_runtime_pm *pm)
> -{
> - struct xe_device *xe = container_of(pm, struct xe_device, runtime_pm);
> -
> - xe_pm_runtime_put(xe);
> -}
> -
> -static inline void intel_runtime_pm_put(struct xe_runtime_pm *pm, intel_wakeref_t wakeref)
> -{
> - if (wakeref)
> - intel_runtime_pm_put_unchecked(pm);
> -}
> -
> -#define intel_runtime_pm_get_raw intel_runtime_pm_get
> -#define intel_runtime_pm_put_raw intel_runtime_pm_put
> -#define assert_rpm_wakelock_held(x) do { } while (0)
> -#define assert_rpm_raw_wakeref_held(x) do { } while (0)
> -
> -#define with_intel_runtime_pm(rpm, wf) \
> - for ((wf) = intel_runtime_pm_get(rpm); (wf); \
> - intel_runtime_pm_put((rpm), (wf)), (wf) = NULL)
> -
> -#endif
> --
> 2.39.5
>
next prev parent reply other threads:[~2025-03-11 20:46 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-11 12:05 [PATCH 0/6] drm/i915/display: add display specific runtime PM interface Jani Nikula
2025-03-11 12:05 ` [PATCH 1/6] drm/i915/display: add display specific runtime PM wrappers Jani Nikula
2025-03-11 20:36 ` Rodrigo Vivi
2025-03-11 12:05 ` [PATCH 2/6] drm/i915/display: conversions to with_intel_display_rpm() Jani Nikula
2025-03-11 20:36 ` Rodrigo Vivi
2025-03-11 12:05 ` [PATCH 3/6] drm/i915/display: use display runtime PM interfaces for for atomic state Jani Nikula
2025-03-11 20:39 ` Rodrigo Vivi
2025-03-11 12:05 ` [PATCH 4/6] drm/i915/display: convert to display runtime PM interfaces Jani Nikula
2025-03-11 20:43 ` Rodrigo Vivi
2025-03-12 10:43 ` Jani Nikula
2025-03-12 19:57 ` Rodrigo Vivi
2025-03-11 12:05 ` [PATCH 5/6] drm/i915/power: " Jani Nikula
2025-03-11 20:45 ` Rodrigo Vivi
2025-03-11 12:05 ` [PATCH 6/6] drm/xe/compat: remove intel_runtime_pm.h Jani Nikula
2025-03-11 20:46 ` Rodrigo Vivi [this message]
2025-03-11 16:32 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915/display: add display specific runtime PM interface Patchwork
2025-03-11 16:32 ` ✗ Fi.CI.SPARSE: " Patchwork
2025-03-11 16:58 ` ✗ i915.CI.BAT: failure " Patchwork
2025-03-13 11:04 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915/display: add display specific runtime PM interface (rev2) Patchwork
2025-03-13 11:04 ` ✗ Fi.CI.SPARSE: " Patchwork
2025-03-13 11:27 ` ✓ i915.CI.BAT: success " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Z9ChGMufgAIFjwHt@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=imre.deak@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=jani.nikula@intel.com \
--cc=ville.syrjala@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox