Skip to content

Commit c78f439

Browse files
matt-auldThomas Hellström
authored andcommitted
drm/xe/migrate: use XE_BO_FLAG_PAGETABLE
On some HW we want to avoid the host caching PTEs, since access from GPU side can be incoherent. However here the special migrate object is mapping PTEs which are written from the host and potentially cached. Use XE_BO_FLAG_PAGETABLE to ensure that non-cached mapping is used, on platforms where this matters. Fixes: 7a060d7 ("drm/xe/mtl: Map PPGTT as CPU:WC") Signed-off-by: Matthew Auld <matthew.auld@intel.com> Cc: Matthew Brost <matthew.brost@intel.com> Cc: Nirmoy Das <nirmoy.das@intel.com> Cc: <stable@vger.kernel.org> # v6.8+ Reviewed-by: Nirmoy Das <nirmoy.das@intel.com> Reviewed-by: Matthew Brost <matthew.brost@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20241126181259.159713-4-matthew.auld@intel.com (cherry picked from commit febc689) Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
1 parent 23346f8 commit c78f439

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/xe/xe_migrate.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,8 @@ static int xe_migrate_prepare_vm(struct xe_tile *tile, struct xe_migrate *m,
209209
num_entries * XE_PAGE_SIZE,
210210
ttm_bo_type_kernel,
211211
XE_BO_FLAG_VRAM_IF_DGFX(tile) |
212-
XE_BO_FLAG_PINNED);
212+
XE_BO_FLAG_PINNED |
213+
XE_BO_FLAG_PAGETABLE);
213214
if (IS_ERR(bo))
214215
return PTR_ERR(bo);
215216

0 commit comments

Comments
 (0)