Skip to content

Commit 5c63e75

Browse files
author
Thomas Hellström
committed
drm/xe: Annotate multiple mmio pointers with __iomem
There are a couple of pointers pointing to MMIO space. Annotate them with __iomem and fix the corresponding sparse warnings. Fixes: dd08ebf ("drm/xe: Introduce a new DRM driver for Intel GPUs") Fixes: 3b0d4a5 ("drm/xe: Move register MMIO into xe_tile") Fixes: 399a133 ("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 9d612ee) Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
1 parent 77232e6 commit 5c63e75

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/gpu/drm/xe/xe_device_types.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ struct xe_tile {
146146
size_t size;
147147

148148
/** @regs: pointer to tile's MMIO space (starting with registers) */
149-
void *regs;
149+
void __iomem *regs;
150150
} mmio;
151151

152152
/**
@@ -159,7 +159,7 @@ struct xe_tile {
159159
size_t size;
160160

161161
/** @regs: pointer to tile's additional MMIO-extension space */
162-
void *regs;
162+
void __iomem *regs;
163163
} mmio_ext;
164164

165165
/** @mem: memory management info for tile */
@@ -301,7 +301,7 @@ struct xe_device {
301301
/** @size: size of MMIO space for device */
302302
size_t size;
303303
/** @regs: pointer to MMIO space for device */
304-
void *regs;
304+
void __iomem *regs;
305305
} mmio;
306306

307307
/** @mem: memory info for device */

0 commit comments

Comments
 (0)