From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 93650606A329 for ; Tue, 1 Dec 2026 18:25:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=cKI4gKHi Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 58CBB10E1A0; Tue, 1 Dec 2026 18:25:00 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) by gabe.freedesktop.org (Postfix) with ESMTPS id DA3D010E1A0 for ; Tue, 1 Dec 2026 18:24:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796149495; x=1827685495; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=3p0jZu6gbPRlqIweM+6sbLaHsbIttsGSKHnl2vCOTTw=; b=cKI4gKHiabyMn/dNtrC0DZMhPkix5uUqgXcyHbw7W86Ucx0D11KafglH PGu5QLMITOfsut1fBpp8yOJDuqwUkTiYHDTjw1WGSZe6UtsyvJSabSXmJ A/SliylihzRhcNBMO0DxMB6BqYrGTM5yluq1M6Ngx3RUBAiCCguH5KKxi BvgfMFh/NHWtOKY6eDNBm4gBXldQlZucmNtXkEdWLazWvMSku0kAtzyC8 rjqYYkoPYwC6iRHT5czzhrqpZE9R9WRSXoH+VVAEj0YxQwGinENHXcSxT +SfRR3CVMHUzTb/5hOD1H7O6Ytb6kAvHUAgoU4L6LYXatRwzMZoAv8Dt5 g==; X-CSE-ConnectionGUID: xKVEHmGmSeyBKi2sL8LTcA== X-CSE-MsgGUID: NR0thW8yQL+kmPqgyUUMxg== X-IronPort-AV: E=McAfee;i="6800,10657,11983"; a="4959220" X-IronPort-AV: E=Sophos;i="6.27,245,1787036400"; d="scan'208";a="4959220" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2026 10:24:54 -0800 X-CSE-ConnectionGUID: RS2HKlW8RTGx7mwBbciQCQ== X-CSE-MsgGUID: 69iajQG9Q/aF6z1tpAbxMw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,245,1787036400"; d="scan'208";a="4754835" Received: from black.igk.intel.com ([10.91.253.5]) by orviesa010.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2026 10:24:54 -0800 Date: Tue, 1 Dec 2026 19:24:50 +0100 From: Raag Jadav To: Himal Prasad Ghimiray Cc: intel-xe@lists.freedesktop.org, Matthew Brost Subject: Re: [PATCH] drm/xe/guc: Restore TDR timeout when resubmitting jobs after GT reset Message-ID: References: <20261201180419.3211018-2-himal.prasad.ghimiray@intel.com> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261201180419.3211018-2-himal.prasad.ghimiray@intel.com> X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Intel-xe" X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Tue, Dec 01, 2026 at 11:34:20PM +0530, Himal Prasad Ghimiray wrote: > xe_sched_tdr_queue_imm() permanently zeroes the scheduler timeout. > Kernel queues survive a GT reset and have their jobs replayed, but the > timeout is never restored, so the TDR fires on the replayed job > immediately and burns its retry budget, eventually wedging the device. > > Restore the timeout via xe_sched_reinit() before resubmitting jobs. > > Cc: Matthew Brost > Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs") The fix might be correct but xe_sched_reinit() has been introduced quite recently and I'm not sure if this would build on stable kernels. Raag > Signed-off-by: Himal Prasad Ghimiray > --- > drivers/gpu/drm/xe/xe_guc_submit.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/gpu/drm/xe/xe_guc_submit.c b/drivers/gpu/drm/xe/xe_guc_submit.c > index 3b8c0e84d632..0a209fd8a906 100644 > --- a/drivers/gpu/drm/xe/xe_guc_submit.c > +++ b/drivers/gpu/drm/xe/xe_guc_submit.c > @@ -3157,6 +3157,8 @@ static void guc_exec_queue_start(struct xe_exec_queue *q) > xe_lrc_ring_head(q->lrc[i])); > } > } > + /* Undo a prior xe_sched_tdr_queue_imm() zeroing the timeout */ > + xe_sched_reinit(sched); > xe_sched_resubmit_jobs(sched); > } > > -- > 2.43.0 >