Skip to content

Commit 5bee1e2

Browse files
illevilucasdemarchi
authored andcommitted
drm/xe: s/xe_mmio_init/xe_mmio_probe_early
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> Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250130105057.136586-1-ilia.levi@intel.com Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
1 parent 339adeb commit 5bee1e2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

drivers/gpu/drm/xe/xe_device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ int xe_device_probe_early(struct xe_device *xe)
692692
{
693693
int err;
694694

695-
err = xe_mmio_init(xe);
695+
err = xe_mmio_probe_early(xe);
696696
if (err)
697697
return err;
698698

drivers/gpu/drm/xe/xe_mmio.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ static void mmio_multi_tile_setup(struct xe_device *xe, size_t tile_mmio_size)
6060

6161
/*
6262
* Nothing to be done as tile 0 has already been setup earlier with the
63-
* entire BAR mapped - see xe_mmio_init()
63+
* entire BAR mapped - see xe_mmio_probe_early()
6464
*/
6565
if (xe->info.tile_count == 1)
6666
return;
@@ -74,7 +74,7 @@ static void mmio_multi_tile_setup(struct xe_device *xe, size_t tile_mmio_size)
7474
/*
7575
* Although the per-tile mmio regs are not yet initialized, this
7676
* is fine as it's going to the root tile's mmio, that's
77-
* guaranteed to be initialized earlier in xe_mmio_init()
77+
* guaranteed to be initialized earlier in xe_mmio_probe_early()
7878
*/
7979
mtcfg = xe_mmio_read64_2x32(mmio, XEHP_MTCFG_ADDR);
8080
tile_count = REG_FIELD_GET(TILE_COUNT, mtcfg) + 1;
@@ -122,7 +122,7 @@ static void mmio_fini(void *arg)
122122
root_tile->mmio.regs = NULL;
123123
}
124124

125-
int xe_mmio_init(struct xe_device *xe)
125+
int xe_mmio_probe_early(struct xe_device *xe)
126126
{
127127
struct xe_tile *root_tile = xe_device_get_root_tile(xe);
128128
struct pci_dev *pdev = to_pci_dev(xe->drm.dev);

drivers/gpu/drm/xe/xe_mmio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
struct xe_device;
1212
struct xe_reg;
1313

14-
int xe_mmio_init(struct xe_device *xe);
14+
int xe_mmio_probe_early(struct xe_device *xe);
1515
int xe_mmio_probe_tiles(struct xe_device *xe);
1616

1717
u8 xe_mmio_read8(struct xe_mmio *mmio, struct xe_reg reg);

0 commit comments

Comments
 (0)