Skip to content

Commit c73b2cb

Browse files
committed
drm/xe: Enable CPU address mirror uAPI
Support for CPU address mirror bindings in SRAM fully in place, enable the implementation. v3: - s/system allocator/CPU address mirror (Thomas) v7: - Only enable uAPI if selected by GPU SVM (CI) Signed-off-by: Matthew Brost <[email protected]> Reviewed-by: Thomas Hellström <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent f0e4238 commit c73b2cb

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

drivers/gpu/drm/xe/xe_vm.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3110,14 +3110,9 @@ static int vm_bind_ioctl_check_args(struct xe_device *xe, struct xe_vm *vm,
31103110
u16 pat_index = (*bind_ops)[i].pat_index;
31113111
u16 coh_mode;
31123112

3113-
/* FIXME: Disabling CPU address mirror for now */
3114-
if (XE_IOCTL_DBG(xe, is_cpu_addr_mirror)) {
3115-
err = -EOPNOTSUPP;
3116-
goto free_bind_ops;
3117-
}
3118-
31193113
if (XE_IOCTL_DBG(xe, is_cpu_addr_mirror &&
3120-
!xe_vm_in_fault_mode(vm))) {
3114+
(!xe_vm_in_fault_mode(vm) ||
3115+
!IS_ENABLED(CONFIG_DRM_GPUSVM)))) {
31213116
err = -EINVAL;
31223117
goto free_bind_ops;
31233118
}

0 commit comments

Comments
 (0)