drm/xe: Annotate multiple mmio pointers with __iomem
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Tue, 9 Jan 2024 11:24:04 +0000 (12:24 +0100)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Mon, 15 Jan 2024 14:36:45 +0000 (15:36 +0100)
There are a couple of pointers pointing to MMIO space. Annotate them
with __iomem and fix the corresponding sparse warnings.

Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs")
Fixes: 3b0d4a557996 ("drm/xe: Move register MMIO into xe_tile")
Fixes: 399a13323f0d ("drm/xe: add 28-bit address support in struct xe_reg")
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: Koby Elbaz <kelbaz@habana.ai>
Cc: Ofir Bitton <obitton@habana.ai>
Cc: Moti Haimovski <mhaimovski@habana.ai>
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240109112405.108136-4-thomas.hellstrom@linux.intel.com
(cherry picked from commit 9d612ee52c6096bc70d43f54921ba2831ffbf1ad)
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
drivers/gpu/drm/xe/xe_device_types.h

index 4b38c6bc6c76c749d5640ab1acbb1ad1febc2c53..5dc9127a20293e1ebb56c3684e2fdb7e6f425b43 100644 (file)
@@ -146,7 +146,7 @@ struct xe_tile {
                size_t size;
 
                /** @regs: pointer to tile's MMIO space (starting with registers) */
-               void *regs;
+               void __iomem *regs;
        } mmio;
 
        /**
@@ -159,7 +159,7 @@ struct xe_tile {
                size_t size;
 
                /** @regs: pointer to tile's additional MMIO-extension space */
-               void *regs;
+               void __iomem *regs;
        } mmio_ext;
 
        /** @mem: memory management info for tile */
@@ -301,7 +301,7 @@ struct xe_device {
                /** @size: size of MMIO space for device */
                size_t size;
                /** @regs: pointer to MMIO space for device */
-               void *regs;
+               void __iomem *regs;
        } mmio;
 
        /** @mem: memory info for device */