drm/xe: Switch mmio_ext to use 'struct xe_mmio'
authorMatt Roper <matthew.d.roper@intel.com>
Tue, 10 Sep 2024 23:47:26 +0000 (16:47 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 11 Sep 2024 22:17:34 +0000 (15:17 -0700)
The mmio_ext stuff is completely unused right now, but it isn't
providing any functionality that couldn't be treated as a regular mmio
space.

Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240910234719.3335472-51-matthew.d.roper@intel.com
drivers/gpu/drm/xe/xe_device_types.h
drivers/gpu/drm/xe/xe_mmio.c

index 347fc5e..e5af3f5 100644 (file)
@@ -182,13 +182,7 @@ struct xe_tile {
         *
         * Each tile has its own additional 256MB (28-bit) MMIO-extension space.
         */
-       struct {
-               /** @mmio_ext.size: size of tile's additional MMIO-extension space */
-               size_t size;
-
-               /** @mmio_ext.regs: pointer to tile's additional MMIO-extension space */
-               void __iomem *regs;
-       } mmio_ext;
+       struct xe_mmio mmio_ext;
 
        /** @mem: memory management info for tile */
        struct {
index 781555b..d271ff4 100644 (file)
@@ -132,7 +132,7 @@ static void mmio_extension_setup(struct xe_device *xe, size_t tile_mmio_size,
 
        regs = xe->mmio.regs + tile_mmio_size * xe->info.tile_count;
        for_each_tile(tile, xe, id) {
-               tile->mmio_ext.size = tile_mmio_ext_size;
+               tile->mmio_ext.regs_size = tile_mmio_ext_size;
                tile->mmio_ext.regs = regs;
                regs += tile_mmio_ext_size;
        }