All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/xe: Remove ifdef in DRM_GPUVA_OP_DRIVER svm subop checking
@ 2026-07-15 10:31 Mika Kuoppala
  2026-07-15 11:06 ` ✓ CI.KUnit: success for " Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Mika Kuoppala @ 2026-07-15 10:31 UTC (permalink / raw)
  To: intel-xe; +Cc: Mika Kuoppala, Matthew Auld

Always emit the DRM_GPUVA_OP_DRIVER case so the previous break is
effective and we never fall through to the default warning.
This also allows adding more subops in the future without ifdef dancing.

Cc: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
---
 drivers/gpu/drm/xe/xe_pt.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_pt.c b/drivers/gpu/drm/xe/xe_pt.c
index 7111b5d0f6aa..d1b939dfaa13 100644
--- a/drivers/gpu/drm/xe/xe_pt.c
+++ b/drivers/gpu/drm/xe/xe_pt.c
@@ -1547,7 +1547,6 @@ static int op_check_svm_userptr(struct xe_vm *vm, struct xe_vma_op *op,
 			err = vma_check_userptr(vm, gpuva_to_vma(op->base.prefetch.va), pt_update);
 		}
 		break;
-#if IS_ENABLED(CONFIG_DRM_XE_GPUSVM)
 	case DRM_GPUVA_OP_DRIVER:
 		if (op->subop == XE_VMA_SUBOP_MAP_RANGE) {
 			struct xe_svm_range *range = op->map_range.range;
@@ -1562,7 +1561,6 @@ static int op_check_svm_userptr(struct xe_vm *vm, struct xe_vma_op *op,
 			}
 		}
 		break;
-#endif
 	default:
 		drm_warn(&vm->xe->drm, "NOT POSSIBLE");
 	}
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-07-15 20:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-15 10:31 [PATCH] drm/xe: Remove ifdef in DRM_GPUVA_OP_DRIVER svm subop checking Mika Kuoppala
2026-07-15 11:06 ` ✓ CI.KUnit: success for " Patchwork
2026-07-15 11:44 ` ✓ Xe.CI.BAT: " Patchwork
2026-07-15 12:28 ` [PATCH] " Matthew Auld
2026-07-15 20:00   ` Matthew Brost
2026-07-15 12:52 ` ✓ Xe.CI.FULL: success for " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.