summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_gt_mcr.c
diff options
context:
space:
mode:
authorNirmoy Das <nirmoy.das@intel.com>2023-05-05 15:40:19 +0300
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-20 02:33:14 +0300
commita56d8dabf134e30ed898128aae6ca830c03b6abb (patch)
tree029a8f6885acfbf609efc9856b7345581ce78eb5 /drivers/gpu/drm/xe/xe_gt_mcr.c
parent98ce59e9ba5cd513bd57e0f4558a33833e07f7e8 (diff)
downloadlinux-a56d8dabf134e30ed898128aae6ca830c03b6abb.tar.xz
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 <rodrigo.vivi@intel.com> Signed-off-by: Nirmoy Das <nirmoy.das@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_gt_mcr.c')
-rw-r--r--drivers/gpu/drm/xe/xe_gt_mcr.c2
1 files changed, 1 insertions, 1 deletions
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);
}