Skip to content

Commit 4a1eaf7

Browse files
committed
drm/xe: Remove references to CONFIG_DRM_XE_DEVMEM_MIRROR
The prefetch code was referencing CONFIG_DRM_XE_DEVMEM_MIRROR, which has been replaced by CONFIG_DRM_XE_PAGEMAP. As a result, prefetches were limited to SRAM. Update the code to use CONFIG_DRM_XE_PAGEMAP instead of the deprecated option. Fixes: f86ad0e ("drm/gpusvm, drm/pagemap: Move migration functionality to drm_pagemap") Signed-off-by: Matthew Brost <[email protected]> Reviewed-by: Jonathan Cavitt <[email protected]> Reviewed-by: Rodrigo Vivi <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent beb72ac commit 4a1eaf7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/xe/xe_vm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2380,7 +2380,7 @@ vm_bind_ioctl_ops_create(struct xe_vm *vm, struct xe_vma_ops *vops,
23802380

23812381
ctx.read_only = xe_vma_read_only(vma);
23822382
ctx.devmem_possible = IS_DGFX(vm->xe) &&
2383-
IS_ENABLED(CONFIG_DRM_XE_DEVMEM_MIRROR);
2383+
IS_ENABLED(CONFIG_DRM_XE_PAGEMAP);
23842384

23852385
for_each_tile(tile, vm->xe, id)
23862386
tile_mask |= 0x1 << id;
@@ -2887,7 +2887,7 @@ static int check_ufence(struct xe_vma *vma)
28872887

28882888
static int prefetch_ranges(struct xe_vm *vm, struct xe_vma_op *op)
28892889
{
2890-
bool devmem_possible = IS_DGFX(vm->xe) && IS_ENABLED(CONFIG_DRM_XE_DEVMEM_MIRROR);
2890+
bool devmem_possible = IS_DGFX(vm->xe) && IS_ENABLED(CONFIG_DRM_XE_PAGEMAP);
28912891
struct xe_vma *vma = gpuva_to_vma(op->base.prefetch.va);
28922892
int err = 0;
28932893

0 commit comments

Comments
 (0)