From a56d8dabf134e30ed898128aae6ca830c03b6abb Mon Sep 17 00:00:00 2001 From: Nirmoy Das Date: Fri, 5 May 2023 14:40:19 +0200 Subject: [PATCH] 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 --- drivers/gpu/drm/xe/xe_gt_mcr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/xe/xe_gt_mcr.c b/drivers/gpu/drm/xe/xe_gt_mcr.c index 02afb313bfea..125c63bdc9b5 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); }