Merge tag 'drm-xe-next-fixes-2023-12-26' of https://gitlab.freedesktop.org/drm/xe/kernel into drm-next

- Fix couple unfined behavior cases to calm UBSAN and clang (Matt Brost, Lucas)

Signed-off-by: Dave Airlie <airlied@redhat.com>

From: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/ZYsbDPBLUiqDevLt@intel.com
This commit is contained in:
Dave Airlie
2024-01-03 11:31:24 +10:00
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -279,6 +279,9 @@ static int add_preempt_fences(struct xe_vm *vm, struct xe_bo *bo)
struct xe_exec_queue *q;
int err;
if (!vm->preempt.num_exec_queues)
return 0;
err = xe_bo_lock(bo, true);
if (err)
return err;
+1
View File
@@ -46,6 +46,7 @@ static int do_compare(u64 addr, u64 value, u64 mask, u16 op)
break;
default:
XE_WARN_ON("Not possible");
return -EINVAL;
}
return passed ? 0 : 1;