From: "Nilawar, Badal" <badal.nilawar@intel.com>
To: "Anoop, Vijay" <anoop.c.vijay@intel.com>,
<intel-xe@lists.freedesktop.org>
Cc: <umesh.nerlige.ramappa@intel.com>, <rodrigo.vivi@intel.com>,
<aravind.iddamsetty@intel.com>, <riana.tauro@intel.com>,
<anshuman.gupta@intel.com>, <matthew.d.roper@intel.com>,
<michael.j.ruhl@intel.com>, <paul.e.luse@intel.com>,
<mohamed.mansoor.v@intel.com>, <kam.nasim@intel.com>
Subject: Re: [PATCH v11 6/7] drm/xe/xe_sysctrl: Add System Controller power management support
Date: Fri, 20 Mar 2026 14:05:19 +0530 [thread overview]
Message-ID: <c76e7a3b-d208-47d8-ad6f-29f446470da7@intel.com> (raw)
In-Reply-To: <20260319173031.1320708-15-anoop.c.vijay@intel.com>
On 19-03-2026 23:00, Anoop, Vijay wrote:
> From: Anoop Vijay <anoop.c.vijay@intel.com>
>
> Add suspend and resume handlers for System Controller to handle system
> (S3/S4) and runtime power management transitions.
>
> The handlers disable SoC remapper region before entering low power
> states and restore remapper configuration and mailbox interface on
> resume, re-establishing communication with firmware.
>
> Signed-off-by: Anoop Vijay <anoop.c.vijay@intel.com>
> Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
> ---
> v10: (Riana, Umesh)
> - Added sysctrl suspend/resume handling
>
> v11: (Badal)
> - Remove explicit SoC remapper disable on suspend
> ---
> drivers/gpu/drm/xe/xe_pm.c | 11 +++++++++
> drivers/gpu/drm/xe/xe_sysctrl.c | 44 +++++++++++++++++++++++++++++++++
> drivers/gpu/drm/xe/xe_sysctrl.h | 2 ++
> 3 files changed, 57 insertions(+)
>
> diff --git a/drivers/gpu/drm/xe/xe_pm.c b/drivers/gpu/drm/xe/xe_pm.c
> index 01185f10a883..abdddd44a575 100644
> --- a/drivers/gpu/drm/xe/xe_pm.c
> +++ b/drivers/gpu/drm/xe/xe_pm.c
> @@ -26,6 +26,7 @@
> #include "xe_pcode.h"
> #include "xe_pxp.h"
> #include "xe_sriov_vf_ccs.h"
> +#include "xe_sysctrl.h"
> #include "xe_trace.h"
> #include "xe_vm.h"
> #include "xe_wa.h"
> @@ -206,6 +207,8 @@ int xe_pm_suspend(struct xe_device *xe)
>
> xe_i2c_pm_suspend(xe);
>
> + xe_sysctrl_pm_suspend(xe);
> +
> drm_dbg(&xe->drm, "Device suspended\n");
> xe_pm_block_end_signalling();
>
> @@ -259,6 +262,8 @@ int xe_pm_resume(struct xe_device *xe)
>
> xe_i2c_pm_resume(xe, true);
>
> + xe_sysctrl_pm_resume(xe);
> +
> xe_irq_resume(xe);
>
> for_each_gt(gt, xe, id) {
> @@ -618,6 +623,9 @@ int xe_pm_runtime_suspend(struct xe_device *xe)
>
> xe_i2c_pm_suspend(xe);
>
> + if (xe->d3cold.allowed)
> + xe_sysctrl_pm_suspend(xe);
> +
> xe_rpm_lockmap_release(xe);
> xe_pm_write_callback_task(xe, NULL);
> return 0;
> @@ -670,6 +678,9 @@ int xe_pm_runtime_resume(struct xe_device *xe)
>
> xe_i2c_pm_resume(xe, xe->d3cold.allowed);
>
> + if (xe->d3cold.allowed)
> + xe_sysctrl_pm_resume(xe);
> +
> xe_irq_resume(xe);
>
> for_each_gt(gt, xe, id) {
> diff --git a/drivers/gpu/drm/xe/xe_sysctrl.c b/drivers/gpu/drm/xe/xe_sysctrl.c
> index 84e3b70043a1..d8f1f8cc2244 100644
> --- a/drivers/gpu/drm/xe/xe_sysctrl.c
> +++ b/drivers/gpu/drm/xe/xe_sysctrl.c
> @@ -82,3 +82,47 @@ int xe_sysctrl_init(struct xe_device *xe)
>
> return 0;
> }
> +
> +/**
> + * xe_sysctrl_pm_suspend() - System Controller suspend handler
> + * @xe: xe device instance
> + *
> + * Invoked during system suspend (S3/S4) and runtime suspend to D3.
> + *
> + * The SoC remapper region is cleared automatically by hardware on D3
> + * cold entry. No action is required. This function is kept to preserve
> + * suspend/resume symmetry and provide a hook for future System Controller
> + * suspend handling.
> + */
> +void xe_sysctrl_pm_suspend(struct xe_device *xe)
> +{
> + if (!xe->info.has_sysctrl)
> + return;
> +
> + if (IS_SRIOV_VF(xe))
> + return;
> +
> + /* SoC remapper region is disabled automatically on D3 cold entry; no action required. */
This is empty function and need to be removed.
Thanks,
Badal
> +}
> +
> +/**
> + * xe_sysctrl_pm_resume() - System Controller resume handler
> + * @xe: xe device instance
> + *
> + * Invoked during system resume (S3/S4 to S0) and runtime resume from D3cold.
> + * Restores SoC remapper configuration and reinitializes mailbox interface.
> + */
> +void xe_sysctrl_pm_resume(struct xe_device *xe)
> +{
> + struct xe_sysctrl *sc = &xe->sc;
> +
> + if (!xe->info.has_sysctrl)
> + return;
> +
> + if (IS_SRIOV_VF(xe))
> + return;
> +
> + xe->soc_remapper.set_sysctrl_region(xe, SYSCTRL_MAILBOX_INDEX);
> +
> + xe_sysctrl_mailbox_init(sc);
> +}
> diff --git a/drivers/gpu/drm/xe/xe_sysctrl.h b/drivers/gpu/drm/xe/xe_sysctrl.h
> index d5d8735038ae..a816feed8da6 100644
> --- a/drivers/gpu/drm/xe/xe_sysctrl.h
> +++ b/drivers/gpu/drm/xe/xe_sysctrl.h
> @@ -17,5 +17,7 @@ static inline struct xe_device *sc_to_xe(struct xe_sysctrl *sc)
> }
>
> int xe_sysctrl_init(struct xe_device *xe);
> +void xe_sysctrl_pm_suspend(struct xe_device *xe);
> +void xe_sysctrl_pm_resume(struct xe_device *xe);
>
> #endif
next prev parent reply other threads:[~2026-03-20 8:35 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-19 17:30 [PATCH v11 0/7] drm/xe/xe_sysctrl: Add system controller component for Xe3p dGPU platforms Anoop, Vijay
2026-03-19 17:30 ` [PATCH v11 1/7] drm/xe/xe_sysctrl: Add System Controller types and device integration Anoop, Vijay
2026-03-19 17:30 ` [PATCH v11 2/7] drm/xe/xe_sysctrl: Add System Controller mailbox register definitions Anoop, Vijay
2026-03-19 17:30 ` [PATCH v11 3/7] drm/xe/xe_sysctrl: Add ABI and mailbox interface headers Anoop, Vijay
2026-03-19 17:30 ` [PATCH v11 4/7] drm/xe/xe_sysctrl: Add System Controller initialization support Anoop, Vijay
2026-03-19 17:30 ` [PATCH v11 5/7] drm/xe/xe_sysctrl: Add System Controller mailbox communication support Anoop, Vijay
2026-03-19 17:30 ` [PATCH v11 6/7] drm/xe/xe_sysctrl: Add System Controller power management support Anoop, Vijay
2026-03-20 8:35 ` Nilawar, Badal [this message]
2026-03-19 17:30 ` [PATCH v11 7/7] drm/xe/xe_pci: Enable System Controller support on CRI platform Anoop, Vijay
2026-03-19 17:37 ` ✗ CI.checkpatch: warning for drm/xe/xe_sysctrl: Add system controller component for Xe3p dGPU platforms (rev2) Patchwork
2026-03-19 17:38 ` ✓ CI.KUnit: success " Patchwork
2026-03-19 18:13 ` ✓ Xe.CI.BAT: " Patchwork
2026-03-20 17:37 ` ✗ 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=c76e7a3b-d208-47d8-ad6f-29f446470da7@intel.com \
--to=badal.nilawar@intel.com \
--cc=anoop.c.vijay@intel.com \
--cc=anshuman.gupta@intel.com \
--cc=aravind.iddamsetty@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=kam.nasim@intel.com \
--cc=matthew.d.roper@intel.com \
--cc=michael.j.ruhl@intel.com \
--cc=mohamed.mansoor.v@intel.com \
--cc=paul.e.luse@intel.com \
--cc=riana.tauro@intel.com \
--cc=rodrigo.vivi@intel.com \
--cc=umesh.nerlige.ramappa@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