From: Michal Wajdeczko <michal.wajdeczko@intel.com>
To: "Anoop, Vijay" <anoop.c.vijay@intel.com>,
<intel-xe@lists.freedesktop.org>
Cc: <rodrigo.vivi@intel.com>, <aravind.iddamsetty@intel.com>,
<riana.tauro@intel.com>, <badal.nilawar@intel.com>,
<anshuman.gupta@intel.com>, <umesh.nerlige.ramappa@intel.com>,
<matthew.d.roper@intel.com>, <michael.j.ruhl@intel.com>,
<mohamed.mansoor.v@intel.com>, <kam.nasim@intel.com>
Subject: Re: [RFC 1/5] drm/xe/soc_remapper: Initialize SoC remapper during Xe probe
Date: Sat, 22 Nov 2025 19:51:03 +0100 [thread overview]
Message-ID: <fafda0d3-463b-4c1d-afe1-4b84871ee8ed@intel.com> (raw)
In-Reply-To: <20251122045803.3616201-8-anoop.c.vijay@intel.com>
On 11/22/2025 5:58 AM, Anoop, Vijay wrote:
> From: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
>
> SoC remapper is used to map different HW functions in the SoC to their
> respective drivers. Initialize SoC remapper during driver load.
>
> Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
> ---
> drivers/gpu/drm/xe/Makefile | 1 +
> drivers/gpu/drm/xe/xe_device.c | 5 +++++
> drivers/gpu/drm/xe/xe_device_types.h | 6 ++++++
> drivers/gpu/drm/xe/xe_soc_remapper.c | 15 +++++++++++++++
> drivers/gpu/drm/xe/xe_soc_remapper.h | 15 +++++++++++++++
> 5 files changed, 42 insertions(+)
> create mode 100644 drivers/gpu/drm/xe/xe_soc_remapper.c
> create mode 100644 drivers/gpu/drm/xe/xe_soc_remapper.h
>
> diff --git a/drivers/gpu/drm/xe/Makefile b/drivers/gpu/drm/xe/Makefile
> index 1a3aa041820d..7ebfbf9051bf 100644
> --- a/drivers/gpu/drm/xe/Makefile
> +++ b/drivers/gpu/drm/xe/Makefile
> @@ -110,6 +110,7 @@ xe-y += xe_bb.o \
> xe_range_fence.o \
> xe_reg_sr.o \
> xe_reg_whitelist.o \
> + xe_soc_remapper.o \
please keep .o in alphabetical order
> xe_ring_ops.o \
> xe_rtp.o \
> xe_sa.o \
> diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
> index 1197f914ef77..f15489c100af 100644
> --- a/drivers/gpu/drm/xe/xe_device.c
> +++ b/drivers/gpu/drm/xe/xe_device.c
> @@ -60,6 +60,7 @@
> #include "xe_psmi.h"
> #include "xe_pxp.h"
> #include "xe_query.h"
> +#include "xe_soc_remapper.h"
please keep includes in alphabetical order
> #include "xe_shrinker.h"
> #include "xe_survivability_mode.h"
> #include "xe_sriov.h"
> @@ -906,6 +907,10 @@ int xe_device_probe(struct xe_device *xe)
>
> xe_nvm_init(xe);
>
> + err = xe_soc_remapper_init(xe);
> + if (err)
> + return err;
> +
> err = xe_heci_gsc_init(xe);
> if (err)
> return err;
> diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h
> index 0b2fa7c56d38..4d23b75bc728 100644
> --- a/drivers/gpu/drm/xe/xe_device_types.h
> +++ b/drivers/gpu/drm/xe/xe_device_types.h
> @@ -552,6 +552,12 @@ struct xe_device {
> struct mutex lock;
> } pmt;
>
> + /* @soc_remapper: SoC remapper object */
use proper kernel-doc format
/** @soc_remapper: ...
> + struct {
> + /* Serialize access to SoC Remapper's index registers */
use proper kernel-doc format
/** @soc_remapper.lock: ...
> + spinlock_t lock;
> + } soc_remapper;
> +
> /**
> * @pm_callback_task: Track the active task that is running in either
> * the runtime_suspend or runtime_resume callbacks.
> diff --git a/drivers/gpu/drm/xe/xe_soc_remapper.c b/drivers/gpu/drm/xe/xe_soc_remapper.c
> new file mode 100644
> index 000000000000..f5a02abd6ab1
> --- /dev/null
> +++ b/drivers/gpu/drm/xe/xe_soc_remapper.c
> @@ -0,0 +1,15 @@
> +// SPDX-License-Identifier: MIT
> +/*
> + * Copyright © 2025 Intel Corporation
> + */
> +
> +#include <linux/spinlock.h>
likely not need, try instead:
#include "xe_device_types.h"
> +
> +#include "xe_soc_remapper.h"
> +
> +int xe_soc_remapper_init(struct xe_device *xe)
> +{
> + spin_lock_init(&xe->soc_remapper.lock);
> +
> + return 0;
> +}
> diff --git a/drivers/gpu/drm/xe/xe_soc_remapper.h b/drivers/gpu/drm/xe/xe_soc_remapper.h
> new file mode 100644
> index 000000000000..3cfd44f1fd74
> --- /dev/null
> +++ b/drivers/gpu/drm/xe/xe_soc_remapper.h
> @@ -0,0 +1,15 @@
> +/* SPDX-License-Identifier: MIT */
> +/*
> + * Copyright © 2025 Intel Corporation
> + */
> +
> +#ifndef _XE_SOC_REMAPPER_H_
> +#define _XE_SOC_REMAPPER_H_
> +
> +#include <linux/types.h>
> +
> +#include "xe_device_types.h"
we don't need full include here, use forward declaration instead:
struct xe_device;
> +
> +int xe_soc_remapper_init(struct xe_device *xe);
> +
> +#endif
next prev parent reply other threads:[~2025-11-22 18:51 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-22 4:58 [RFC 0/5] drm/xe: Add System Controller support for Xe3p dGPU platforms Anoop, Vijay
2025-11-22 4:58 ` [RFC 1/5] drm/xe/soc_remapper: Initialize SoC remapper during Xe probe Anoop, Vijay
2025-11-22 18:51 ` Michal Wajdeczko [this message]
2025-11-22 4:58 ` [RFC 2/5] drm/xe/soc_remapper: Use SoC remapper herlper from VSEC code Anoop, Vijay
2025-11-22 18:57 ` Michal Wajdeczko
2025-11-22 4:58 ` [RFC 3/5] drm/xe/soc_remapper: Add system controller config for SoC remapper Anoop, Vijay
2025-11-22 4:58 ` [RFC 4/5] drm/xe/remapper: Reprogram remapper index on PM resume events Anoop, Vijay
2025-11-22 4:58 ` [RFC 5/5] drm/xe/sc: Add system controller component for Xe3p dGPU platforms Anoop, Vijay
2025-11-22 5:14 ` Matthew Brost
2025-11-22 5:21 ` Matthew Brost
2025-11-22 19:18 ` Michal Wajdeczko
2025-12-03 0:52 ` Umesh Nerlige Ramappa
2025-12-04 0:34 ` Umesh Nerlige Ramappa
2025-12-18 5:43 ` Nilawar, Badal
2025-11-24 22:25 ` ✗ CI.checkpatch: warning for drm/xe: Add System Controller support " Patchwork
2025-11-24 22:26 ` ✓ CI.KUnit: success " Patchwork
2025-11-24 23:11 ` ✓ Xe.CI.BAT: " Patchwork
2025-11-25 1:20 ` ✗ 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=fafda0d3-463b-4c1d-afe1-4b84871ee8ed@intel.com \
--to=michal.wajdeczko@intel.com \
--cc=anoop.c.vijay@intel.com \
--cc=anshuman.gupta@intel.com \
--cc=aravind.iddamsetty@intel.com \
--cc=badal.nilawar@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=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