From: Ilia Levi <ilia.levi@intel.com>
To: intel-xe@lists.freedesktop.org
Cc: ilia.levi@intel.com, matthew.d.roper@intel.com,
lucas.demarchi@intel.com, koby.elbaz@intel.com,
yaron.avizrat@intel.com
Subject: [PATCH 1/2] drm/xe: s/xe_mmio_init/xe_mmio_probe_early
Date: Thu, 30 Jan 2025 12:50:56 +0200 [thread overview]
Message-ID: <20250130105057.136586-1-ilia.levi@intel.com> (raw)
Rename so that xe_mmio_init() can be used in subsequent patches to
initialize an instance of struct xe_mmio.
Signed-off-by: Ilia Levi <ilia.levi@intel.com>
---
drivers/gpu/drm/xe/xe_device.c | 2 +-
drivers/gpu/drm/xe/xe_mmio.c | 6 +++---
drivers/gpu/drm/xe/xe_mmio.h | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
index 8fedc72e9db4..f6c01028c527 100644
--- a/drivers/gpu/drm/xe/xe_device.c
+++ b/drivers/gpu/drm/xe/xe_device.c
@@ -685,7 +685,7 @@ int xe_device_probe_early(struct xe_device *xe)
{
int err;
- err = xe_mmio_init(xe);
+ err = xe_mmio_probe_early(xe);
if (err)
return err;
diff --git a/drivers/gpu/drm/xe/xe_mmio.c b/drivers/gpu/drm/xe/xe_mmio.c
index d321a21aacf0..3aed849a128b 100644
--- a/drivers/gpu/drm/xe/xe_mmio.c
+++ b/drivers/gpu/drm/xe/xe_mmio.c
@@ -60,7 +60,7 @@ static void mmio_multi_tile_setup(struct xe_device *xe, size_t tile_mmio_size)
/*
* Nothing to be done as tile 0 has already been setup earlier with the
- * entire BAR mapped - see xe_mmio_init()
+ * entire BAR mapped - see xe_mmio_probe_early()
*/
if (xe->info.tile_count == 1)
return;
@@ -74,7 +74,7 @@ static void mmio_multi_tile_setup(struct xe_device *xe, size_t tile_mmio_size)
/*
* Although the per-tile mmio regs are not yet initialized, this
* is fine as it's going to the root tile's mmio, that's
- * guaranteed to be initialized earlier in xe_mmio_init()
+ * guaranteed to be initialized earlier in xe_mmio_probe_early()
*/
mtcfg = xe_mmio_read64_2x32(mmio, XEHP_MTCFG_ADDR);
tile_count = REG_FIELD_GET(TILE_COUNT, mtcfg) + 1;
@@ -122,7 +122,7 @@ static void mmio_fini(void *arg)
root_tile->mmio.regs = NULL;
}
-int xe_mmio_init(struct xe_device *xe)
+int xe_mmio_probe_early(struct xe_device *xe)
{
struct xe_tile *root_tile = xe_device_get_root_tile(xe);
struct pci_dev *pdev = to_pci_dev(xe->drm.dev);
diff --git a/drivers/gpu/drm/xe/xe_mmio.h b/drivers/gpu/drm/xe/xe_mmio.h
index 8a46f4006a84..b32e7ee4b23e 100644
--- a/drivers/gpu/drm/xe/xe_mmio.h
+++ b/drivers/gpu/drm/xe/xe_mmio.h
@@ -11,7 +11,7 @@
struct xe_device;
struct xe_reg;
-int xe_mmio_init(struct xe_device *xe);
+int xe_mmio_probe_early(struct xe_device *xe);
int xe_mmio_probe_tiles(struct xe_device *xe);
u8 xe_mmio_read8(struct xe_mmio *mmio, struct xe_reg reg);
--
2.43.2
next reply other threads:[~2025-01-30 10:51 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-30 10:50 Ilia Levi [this message]
2025-01-30 10:50 ` [PATCH 2/2] drm/xe: Add xe_mmio_init() initialization function Ilia Levi
2025-01-30 19:03 ` Lucas De Marchi
2025-01-30 19:54 ` Michal Wajdeczko
2025-01-31 7:37 ` Levi, Ilia
2025-02-02 11:00 ` [PATCH v2 " Ilia Levi
2025-02-05 15:56 ` Michal Wajdeczko
2025-02-09 13:13 ` [PATCH v3 " Ilia Levi
2025-02-12 23:18 ` Michal Wajdeczko
2025-02-13 9:35 ` [PATCH v4 " Ilia Levi
2025-02-13 23:53 ` Michal Wajdeczko
2025-02-09 13:34 ` [PATCH v2 " Levi, Ilia
2025-01-30 11:48 ` ✓ CI.Patch_applied: success for series starting with [1/2] drm/xe: s/xe_mmio_init/xe_mmio_probe_early Patchwork
2025-01-30 11:49 ` ✓ CI.checkpatch: " Patchwork
2025-01-30 11:50 ` ✓ CI.KUnit: " Patchwork
2025-01-30 12:06 ` ✓ CI.Build: " Patchwork
2025-01-30 12:09 ` ✓ CI.Hooks: " Patchwork
2025-01-30 12:10 ` ✓ CI.checksparse: " Patchwork
2025-01-30 12:38 ` ✓ Xe.CI.BAT: " Patchwork
2025-01-30 14:42 ` ✗ Xe.CI.Full: failure " Patchwork
2025-01-30 18:48 ` [PATCH 1/2] " Lucas De Marchi
2025-02-02 11:55 ` ✓ CI.Patch_applied: success for series starting with [1/2] drm/xe: s/xe_mmio_init/xe_mmio_probe_early (rev2) Patchwork
2025-02-02 11:56 ` ✓ CI.checkpatch: " Patchwork
2025-02-02 11:57 ` ✓ CI.KUnit: " Patchwork
2025-02-02 12:13 ` ✓ CI.Build: " Patchwork
2025-02-02 12:15 ` ✓ CI.Hooks: " Patchwork
2025-02-02 12:17 ` ✓ CI.checksparse: " Patchwork
2025-02-02 12:36 ` ✓ Xe.CI.BAT: " Patchwork
2025-02-02 13:45 ` ✗ Xe.CI.Full: failure " Patchwork
2025-02-09 13:30 ` ✓ CI.Patch_applied: success for series starting with [1/2] drm/xe: s/xe_mmio_init/xe_mmio_probe_early (rev3) Patchwork
2025-02-09 13:30 ` ✓ CI.checkpatch: " Patchwork
2025-02-09 13:31 ` ✓ CI.KUnit: " Patchwork
2025-02-09 13:48 ` ✓ CI.Build: " Patchwork
2025-02-09 13:50 ` ✓ CI.Hooks: " Patchwork
2025-02-09 13:51 ` ✓ CI.checksparse: " Patchwork
2025-02-09 14:11 ` ✓ Xe.CI.BAT: " Patchwork
2025-02-09 15:23 ` ✗ Xe.CI.Full: failure " Patchwork
2025-02-13 9:41 ` ✓ CI.Patch_applied: success for series starting with [1/2] drm/xe: s/xe_mmio_init/xe_mmio_probe_early (rev4) Patchwork
2025-02-13 9:42 ` ✓ CI.checkpatch: " Patchwork
2025-02-13 9:43 ` ✓ CI.KUnit: " Patchwork
2025-02-13 9:59 ` ✓ CI.Build: " Patchwork
2025-02-13 10:02 ` ✓ CI.Hooks: " Patchwork
2025-02-13 10:03 ` ✓ CI.checksparse: " Patchwork
2025-02-14 5:58 ` ✓ Xe.CI.BAT: " Patchwork
2025-02-17 8:02 ` ✗ Xe.CI.Full: failure " Patchwork
2025-02-18 16:31 ` [PATCH 1/2] drm/xe: s/xe_mmio_init/xe_mmio_probe_early Lucas De Marchi
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=20250130105057.136586-1-ilia.levi@intel.com \
--to=ilia.levi@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=koby.elbaz@intel.com \
--cc=lucas.demarchi@intel.com \
--cc=matthew.d.roper@intel.com \
--cc=yaron.avizrat@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