From: Nirmoy Das Date: Fri, 5 May 2023 12:40:19 +0000 (+0200) Subject: drm/xe: Do not sleep in atomic X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a56d8dabf134e30ed898128aae6ca830c03b6abb;p=linux.git drm/xe: Do not sleep in atomic Set atomic in xe_mmio_wait32() otherwise we would be scheduling in atomic context. Fixes: 7dc9b92dcfef ("drm/xe: Remove i915_utils dependency from xe_pcode.") Cc: Rodrigo Vivi Signed-off-by: Nirmoy Das Reviewed-by: Rodrigo Vivi Signed-off-by: Rodrigo Vivi --- diff --git a/drivers/gpu/drm/xe/xe_gt_mcr.c b/drivers/gpu/drm/xe/xe_gt_mcr.c index 02afb313bfea7..125c63bdc9b5f 100644 --- a/drivers/gpu/drm/xe/xe_gt_mcr.c +++ b/drivers/gpu/drm/xe/xe_gt_mcr.c @@ -424,7 +424,7 @@ static void mcr_lock(struct xe_gt *gt) */ if (GRAPHICS_VERx100(xe) >= 1270) ret = xe_mmio_wait32(gt, STEER_SEMAPHORE, 0, 0x1, 10, NULL, - false); + true); drm_WARN_ON_ONCE(&xe->drm, ret == -ETIMEDOUT); }