summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Brost <matthew.brost@intel.com>2025-03-05 17:26:43 -0800
committerMatthew Brost <matthew.brost@intel.com>2025-03-06 11:35:51 -0800
commitc73b2cbd1009662db241ebffb1d45e3f8da24282 (patch)
tree0765cb71e006f2125b827f8f4274d3f6008f14ef
parentf0e4238f6d6c86feb2df425a4a77c04518a1e6ac (diff)
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 <matthew.brost@intel.com> Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250306012657.3505757-19-matthew.brost@intel.com
-rw-r--r--drivers/gpu/drm/xe/xe_vm.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/gpu/drm/xe/xe_vm.c b/drivers/gpu/drm/xe/xe_vm.c
index ea56b8379634..22a26aff3a6e 100644
--- a/drivers/gpu/drm/xe/xe_vm.c
+++ b/drivers/gpu/drm/xe/xe_vm.c
@@ -3110,14 +3110,9 @@ static int vm_bind_ioctl_check_args(struct xe_device *xe, struct xe_vm *vm,
u16 pat_index = (*bind_ops)[i].pat_index;
u16 coh_mode;
- /* FIXME: Disabling CPU address mirror for now */
- if (XE_IOCTL_DBG(xe, is_cpu_addr_mirror)) {
- err = -EOPNOTSUPP;
- goto free_bind_ops;
- }
-
if (XE_IOCTL_DBG(xe, is_cpu_addr_mirror &&
- !xe_vm_in_fault_mode(vm))) {
+ (!xe_vm_in_fault_mode(vm) ||
+ !IS_ENABLED(CONFIG_DRM_GPUSVM)))) {
err = -EINVAL;
goto free_bind_ops;
}