From: Jani Nikula <jani.nikula@intel.com>
To: "Jouni Högander" <jouni.hogander@intel.com>,
intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Cc: "Jouni Högander" <jouni.hogander@intel.com>
Subject: Re: [PATCH v2 2/6] drm/{i915,xe}/display: Add display runtime pm parent interface
Date: Fri, 24 Oct 2025 15:25:31 +0300 [thread overview]
Message-ID: <4f39d5a06740e33193f28945c5cab5c330c84bf7@intel.com> (raw)
In-Reply-To: <20251024093113.1119070-3-jouni.hogander@intel.com>
On Fri, 24 Oct 2025, Jouni Högander <jouni.hogander@intel.com> wrote:
> We have differing implementations for display runtime pm in i915 and xe
> drivers. Add struct of function pointers into display_parent_interface
> which will contain used implementation of runtime pm.
>
> v2:
> - add _interface suffix to rpm function pointer struct
> - add struct ref_tracker forward declaration
> - use kernel-doc comments
>
> Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
> ---
> include/drm/intel/display_parent_interface.h | 19 +++++++++++++++++++
> 1 file changed, 19 insertions(+)
>
> diff --git a/include/drm/intel/display_parent_interface.h b/include/drm/intel/display_parent_interface.h
> index 28c976815327a..26bedc360044d 100644
> --- a/include/drm/intel/display_parent_interface.h
> +++ b/include/drm/intel/display_parent_interface.h
> @@ -7,6 +7,23 @@
> #include <linux/types.h>
>
> struct drm_device;
> +struct ref_tracker;
> +
> +struct intel_display_rpm_interface {
> + struct ref_tracker *(*get)(const struct drm_device *drm);
> + struct ref_tracker *(*get_raw)(const struct drm_device *drm);
> + struct ref_tracker *(*get_if_in_use)(const struct drm_device *drm);
> + struct ref_tracker *(*get_noresume)(const struct drm_device *drm);
> +
> + void (*put)(const struct drm_device *drm, struct ref_tracker *wakeref);
> + void (*put_raw)(const struct drm_device *drm, struct ref_tracker *wakeref);
> + void (*put_unchecked)(const struct drm_device *drm);
> +
> + bool (*suspended)(const struct drm_device *drm);
> + void (*assert_held)(const struct drm_device *drm);
> + void (*assert_block)(const struct drm_device *drm);
> + void (*assert_unblock)(const struct drm_device *drm);
> +};
>
> /**
> * struct intel_display_parent_interface - services parent driver provides to display
> @@ -21,6 +38,8 @@ struct drm_device;
> * check the optional pointers.
> */
> struct intel_display_parent_interface {
> + /** @rpm: Runtime PM functions */
> + const struct intel_display_rpm_interface *rpm;
> };
>
> #endif
--
Jani Nikula, Intel
next prev parent reply other threads:[~2025-10-24 12:25 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-24 9:31 [PATCH v2 0/6] Use display parent interface for runtime pm Jouni Högander
2025-10-24 9:31 ` [PATCH v2 1/6] drm/{i915, xe}/display: pass parent interface to display probe Jouni Högander
2025-10-24 12:25 ` [PATCH v2 1/6] drm/{i915,xe}/display: " Jani Nikula
2025-10-24 9:31 ` [PATCH v2 2/6] drm/{i915, xe}/display: Add display runtime pm parent interface Jouni Högander
2025-10-24 12:25 ` Jani Nikula [this message]
2025-10-24 9:31 ` [PATCH v2 3/6] drm/i915/display: Runtime pm wrappers for display " Jouni Högander
2025-10-24 12:26 ` Jani Nikula
2025-10-24 9:31 ` [PATCH v2 4/6] drm/xe/display: " Jouni Högander
2025-10-24 12:27 ` Jani Nikula
2025-10-24 12:31 ` Jani Nikula
2025-10-24 9:31 ` [PATCH v2 5/6] drm/i915/display: Use display parent interface for i915 runtime pm Jouni Högander
2025-10-24 12:28 ` Jani Nikula
2025-10-24 9:31 ` [PATCH v2 6/6] drm/xe/display: Use display parent interface for xe " Jouni Högander
2025-10-24 12:28 ` Jani Nikula
2025-10-24 9:38 ` ✗ CI.checkpatch: warning for Use display parent interface for runtime pm (rev2) Patchwork
2025-10-24 9:39 ` ✓ CI.KUnit: success " Patchwork
2025-10-24 9:55 ` ✗ CI.checksparse: warning " Patchwork
2025-10-24 10:18 ` ✓ Xe.CI.BAT: success " Patchwork
2025-10-24 18:59 ` ✗ Xe.CI.Full: failure " 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=4f39d5a06740e33193f28945c5cab5c330c84bf7@intel.com \
--to=jani.nikula@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=jouni.hogander@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