Lines Matching +full:multi +full:- +full:touch
1 // SPDX-License-Identifier: MIT
20 * DOC: Multi-tile Design
25 * that's what is referred to as a "multi-tile device." In such cases, pretty
26 * much all hardware is replicated per-tile, although certain responsibilities
28 * solely by the "root tile." A multi-tile platform takes care of tying the
30 * are forwarded to the root tile, the per-tile vram is combined into a single
39 * Historically most Intel devices were single-tile devices that contained a
40 * single GT. PVC is an example of an Intel platform built on a multi-tile
45 * single GPU. This is important from a software perspective because multi-GT
47 * differently than multi-tile platforms like PVC where nearly everything is
50 * Per-tile functionality (shared by all GTs within the tile):
51 * - Complete 4MB MMIO space (containing SGunit/SoC registers, GT
53 * - Global GTT
54 * - VRAM (if discrete)
55 * - Interrupt flows
56 * - Migration context
57 * - kernel batchbuffer pool
58 * - Primary GT
59 * - Media GT (if media version >= 13)
61 * Per-GT functionality:
62 * - GuC
63 * - Hardware engines
64 * - Programmable hardware units (subslices, EUs)
65 * - GSI subset of registers (multiple copies of these registers reside
67 * offsets --- 0 for render, 0x380000 for media)
68 * - Multicast register steering
69 * - TLBs to cache page table translations
70 * - Reset capability
71 * - Low-level power management (e.g., C6)
72 * - Clock frequency
73 * - MOCS and PAT programming
77 * xe_tile_alloc - Perform per-tile memory allocation
80 * Allocates various per-tile data structures using DRM-managed allocations.
81 * Does not touch the hardware.
83 * Returns -ENOMEM if allocations fail, otherwise 0.
87 struct drm_device *drm = &tile_to_xe(tile)->drm; in xe_tile_alloc()
89 tile->mem.ggtt = drmm_kzalloc(drm, sizeof(*tile->mem.ggtt), in xe_tile_alloc()
91 if (!tile->mem.ggtt) in xe_tile_alloc()
92 return -ENOMEM; in xe_tile_alloc()
93 tile->mem.ggtt->tile = tile; in xe_tile_alloc()
95 tile->mem.vram_mgr = drmm_kzalloc(drm, sizeof(*tile->mem.vram_mgr), GFP_KERNEL); in xe_tile_alloc()
96 if (!tile->mem.vram_mgr) in xe_tile_alloc()
97 return -ENOMEM; in xe_tile_alloc()
103 * xe_tile_init_early - Initialize the tile and primary GT
108 * Initializes per-tile resources that don't require any interactions with the
117 tile->xe = xe; in xe_tile_init_early()
118 tile->id = id; in xe_tile_init_early()
124 tile->primary_gt = xe_gt_alloc(tile); in xe_tile_init_early()
125 if (IS_ERR(tile->primary_gt)) in xe_tile_init_early()
126 return PTR_ERR(tile->primary_gt); in xe_tile_init_early()
138 if (tile->mem.vram.usable_size) { in tile_ttm_mgr_init()
139 err = xe_ttm_vram_mgr_init(tile, tile->mem.vram_mgr); in tile_ttm_mgr_init()
142 xe->info.mem_region_mask |= BIT(tile->id) << 1; in tile_ttm_mgr_init()
149 * xe_tile_init_noalloc - Init tile up to the point where allocations can happen.
158 * GT-specific operations, and thus does not need to hold GT forcewake.
170 tile->mem.kernel_bb_pool = xe_sa_bo_manager_init(tile, SZ_1M, 16); in xe_tile_init_noalloc()
171 if (IS_ERR(tile->mem.kernel_bb_pool)) in xe_tile_init_noalloc()
172 return PTR_ERR(tile->mem.kernel_bb_pool); in xe_tile_init_noalloc()
183 xe_migrate_wait(tile->migrate); in xe_tile_migrate_wait()