Lines Matching defs:xe
87 static bool __check_layout(struct xe_device *xe, u32 wopcm_size,
97 drm_err(&xe->drm,
106 drm_err(&xe->drm, "WOPCM: no space for %s: %uK < %uK\n",
114 drm_err(&xe->drm, "WOPCM: no space for %s: %uK < %uK\n",
138 static int __wopcm_init_regs(struct xe_device *xe, struct xe_gt *gt,
169 drm_notice(&xe->drm, "Failed to init uC WOPCM registers!\n");
170 drm_notice(&xe->drm, "%s(%#x)=%#x\n", "DMA_GUC_WOPCM_OFFSET",
173 drm_notice(&xe->drm, "%s(%#x)=%#x\n", "GUC_WOPCM_SIZE",
180 u32 xe_wopcm_size(struct xe_device *xe)
182 return IS_DGFX(xe) ? DGFX_WOPCM_SIZE :
183 xe->info.platform == XE_METEORLAKE ? MTL_WOPCM_SIZE :
199 struct xe_device *xe = wopcm_to_xe(wopcm);
212 wopcm->size = xe_wopcm_size(xe);
213 drm_dbg(&xe->drm, "WOPCM: %uK\n", wopcm->size / SZ_1K);
222 drm_dbg(&xe->drm, "GuC WOPCM is already locked [%uK, %uK)\n",
251 drm_dbg(&xe->drm, "Calculated GuC WOPCM [%uK, %uK)\n",
255 if (__check_layout(xe, wopcm->size, guc_wopcm_base, guc_wopcm_size,
262 drm_notice(&xe->drm, "Unsuccessful WOPCM partitioning\n");
267 ret = __wopcm_init_regs(xe, gt, wopcm);