Lines Matching refs:xe

31 	struct xe_device *xe = arg;
35 for_each_remote_tile(tile, xe, id)
58 static void mmio_multi_tile_setup(struct xe_device *xe, size_t tile_mmio_size)
68 if (xe->info.tile_count == 1)
72 if (!xe->info.skip_mtcfg) {
73 struct xe_mmio *mmio = xe_root_tile_mmio(xe);
85 if (tile_count < xe->info.tile_count) {
86 drm_info(&xe->drm, "tile_count: %d, reduced_tile_count %d\n",
87 xe->info.tile_count, tile_count);
88 xe->info.tile_count = tile_count;
96 for_each_gt(gt, xe, id)
97 if (gt->info.id < tile_count * xe->info.max_gt_per_tile)
99 xe->info.gt_count = gt_count;
103 for_each_remote_tile(tile, xe, id)
104 xe_mmio_init(&tile->mmio, tile, xe->mmio.regs + id * tile_mmio_size, SZ_4M);
107 int xe_mmio_probe_tiles(struct xe_device *xe)
111 mmio_multi_tile_setup(xe, tile_mmio_size);
113 return devm_add_action_or_reset(xe->drm.dev, tiles_fini, xe);
118 struct xe_device *xe = arg;
119 struct xe_tile *root_tile = xe_device_get_root_tile(xe);
121 pci_iounmap(to_pci_dev(xe->drm.dev), xe->mmio.regs);
122 xe->mmio.regs = NULL;
126 int xe_mmio_probe_early(struct xe_device *xe)
128 struct xe_tile *root_tile = xe_device_get_root_tile(xe);
129 struct pci_dev *pdev = to_pci_dev(xe->drm.dev);
136 xe->mmio.size = pci_resource_len(pdev, GTTMMADR_BAR);
137 xe->mmio.regs = pci_iomap(pdev, GTTMMADR_BAR, 0);
138 if (!xe->mmio.regs) {
139 drm_err(&xe->drm, "failed to map registers\n");
144 xe_mmio_init(&root_tile->mmio, root_tile, xe->mmio.regs, SZ_4M);
146 return devm_add_action_or_reset(xe->drm.dev, mmio_fini, xe);
173 if (!XE_DEVICE_WA(mmio->tile->xe, 15015404425))
213 if (!reg.vf && IS_SRIOV_VF(mmio->tile->xe))
227 if (!reg.vf && IS_SRIOV_VF(mmio->tile->xe))
313 drm_WARN(&mmio->tile->xe->drm, retries == 0,