[Intel-xe] [PATCH] drm/xe: Do not sleep in atomic

Rodrigo Vivi rodrigo.vivi at kernel.org
Fri May 5 13:08:46 UTC 2023


On Fri, May 05, 2023 at 02:40:19PM +0200, Nirmoy Das wrote:
> Set atomic in xe_mmio_wait32() otherwise we would
> be scheduling in atomic context.
> 
> Fixes: b7bcef224bdd ("drm/xe: Remove i915_utils dependency from xe_pcode.")
> Cc: Rodrigo Vivi <rodrigo.vivi at intel.com>
> 
> Signed-off-by: Nirmoy Das <nirmoy.das at intel.com>

Reviewed-by: Rodrigo Vivi <rodrigo.vivi at intel.com>

> ---
>  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 55b240a5eaa7..300b4a6968a9 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);
>  }
> -- 
> 2.39.0
> 


More information about the Intel-xe mailing list