[PATCH 05/43] drm/xe: Populate GT's mmio iomap from tile during init

Lucas De Marchi lucas.demarchi at intel.com
Thu Sep 5 21:58:26 UTC 2024


On Tue, Sep 03, 2024 at 05:21:06PM GMT, Matt Roper wrote:
>Each GT should share the same register iomap as its parent tile.  Future
>patches will switch to access the iomap through the GT's mmio substruct
>rather than through the tile.
>
>Signed-off-by: Matt Roper <matthew.d.roper at intel.com>


Reviewed-by: Lucas De Marchi <lucas.demarchi at intel.com>

Lucas De Marchi

>---
> drivers/gpu/drm/xe/xe_pci.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
>diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c
>index c05ca61787be..5b09a1cbd821 100644
>--- a/drivers/gpu/drm/xe/xe_pci.c
>+++ b/drivers/gpu/drm/xe/xe_pci.c
>@@ -712,6 +712,8 @@ static int xe_info_init(struct xe_device *xe,
> 		gt->info.type = XE_GT_TYPE_MAIN;
> 		gt->info.has_indirect_ring_state = graphics_desc->has_indirect_ring_state;
> 		gt->info.engine_mask = graphics_desc->hw_engine_mask;
>+		gt->mmio.regs = tile->mmio.regs;
>+		gt->mmio.regs_length = tile->mmio.regs_length;
> 		if (MEDIA_VER(xe) < 13 && media_desc)
> 			gt->info.engine_mask |= media_desc->hw_engine_mask;
>
>@@ -730,6 +732,8 @@ static int xe_info_init(struct xe_device *xe,
> 		gt->info.type = XE_GT_TYPE_MEDIA;
> 		gt->info.has_indirect_ring_state = media_desc->has_indirect_ring_state;
> 		gt->info.engine_mask = media_desc->hw_engine_mask;
>+		gt->mmio.regs = tile->mmio.regs;
>+		gt->mmio.regs_length = tile->mmio.regs_length;
> 		gt->mmio.adj_offset = MEDIA_GT_GSI_OFFSET;
> 		gt->mmio.adj_limit = MEDIA_GT_GSI_LENGTH;
>
>-- 
>2.45.2
>


More information about the Intel-xe mailing list