Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/xe: s/xe_mmio_init/xe_mmio_probe_early
@ 2025-01-30 10:50 Ilia Levi
  2025-01-30 10:50 ` [PATCH 2/2] drm/xe: Add xe_mmio_init() initialization function Ilia Levi
                   ` (34 more replies)
  0 siblings, 35 replies; 46+ messages in thread
From: Ilia Levi @ 2025-01-30 10:50 UTC (permalink / raw)
  To: intel-xe
  Cc: ilia.levi, matthew.d.roper, lucas.demarchi, koby.elbaz,
	yaron.avizrat

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


^ permalink raw reply related	[flat|nested] 46+ messages in thread

end of thread, other threads:[~2025-02-18 16:31 UTC | newest]

Thread overview: 46+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-30 10:50 [PATCH 1/2] drm/xe: s/xe_mmio_init/xe_mmio_probe_early Ilia Levi
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox