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.br...@intel.com>
Reviewed-by: Thomas Hellström <thomas.hellst...@linux.intel.com>
---
 drivers/gpu/drm/xe/xe_vm.c | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_vm.c b/drivers/gpu/drm/xe/xe_vm.c
index 80b57d7a3f4c..0586ddb82e1e 100644
--- a/drivers/gpu/drm/xe/xe_vm.c
+++ b/drivers/gpu/drm/xe/xe_vm.c
@@ -3109,14 +3109,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;
                }
-- 
2.34.1

Reply via email to