[PATCH 1/4] drm/xe: Use __iomem for the regs pointer
Lucas De Marchi
lucas.demarchi at intel.com
Tue Jan 9 14:48:19 UTC 2024
On Tue, Jan 09, 2024 at 12:24:02PM +0100, Thomas Hellström wrote:
>The regs pointer points to IO memory. Annotate it properly and
>fix the corresponding sparse warning.
>
>Fixes: a4e2f3a299ea ("drm/xe: refactor xe_mmio_probe_tiles to support MMIO extension")
>Cc: Koby Elbaz <kelbaz at habana.ai>
>Cc: Ofir Bitton <obitton at habana.ai>
>Cc: Moti Haimovski <mhaimovski at habana.ai>
>Cc: Rodrigo Vivi <rodrigo.vivi at intel.com>
>Signed-off-by: Thomas Hellström <thomas.hellstrom at linux.intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi at intel.com>
Lucas De Marchi
>---
> drivers/gpu/drm/xe/xe_mmio.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/drivers/gpu/drm/xe/xe_mmio.c b/drivers/gpu/drm/xe/xe_mmio.c
>index f660cfb79f50..c8c5d74b6e90 100644
>--- a/drivers/gpu/drm/xe/xe_mmio.c
>+++ b/drivers/gpu/drm/xe/xe_mmio.c
>@@ -303,7 +303,7 @@ void xe_mmio_probe_tiles(struct xe_device *xe)
> u8 id, tile_count = xe->info.tile_count;
> struct xe_gt *gt = xe_root_mmio_gt(xe);
> struct xe_tile *tile;
>- void *regs;
>+ void __iomem *regs;
> u32 mtcfg;
>
> if (tile_count == 1)
>--
>2.43.0
>
More information about the Intel-xe
mailing list