Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2DC992264A8 for ; Wed, 28 Jan 2026 23:16:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769642198; cv=none; b=hguT38h67Zeem0tFAWpz1wPI8gXrcKkVvx4uCmobbGyBOlKrqAETtKGE9m7ZkR6Mi/zxyb5F84p05wAMPDvzYmjCdwY6H/c4iy6Qso0TmudroyjgbE3YQTy47/ew4a3fD5Oc2JlKv5YN1LXgOOVwRCvOU0+URsHighBFKVv7r/8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769642198; c=relaxed/simple; bh=5g7eNrockMgk0yivVHjBlRycQ6V13a9tjJgfB5sdCxI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Dj2S055aivjTO/4NbXzMTIc8mKdFCTpc8++SFKZbSlGkWGycN7PBLC2a+P0yJVD2KA4T+e+qibNQXcDq10mIY8fwrd9f9r5Tf1L9VJgXCEpDF0iJ5BfqZ3Eid5GQT2p0dGTlMEnnHMGrzKGqnyDRWwuz17KWFHqP1/IJHvt9gtY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Pev0HXCK; arc=none smtp.client-ip=192.198.163.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Pev0HXCK" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1769642196; x=1801178196; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=5g7eNrockMgk0yivVHjBlRycQ6V13a9tjJgfB5sdCxI=; b=Pev0HXCKeLd88gSlA6Qe16RbkuHcLEH2NYHOuzzUrPx4bMV0b+v6/F4N emu8KPS4s72/qgftQTWFyo/OpBan9WIy5tlhdkK0RZhxy6d1xcIwKD7q+ mLfjz9mIb3GleVWL/Xd9mJ3Od8GSZeX2fvg3Bab2hbyI/7tVoTn49opAR LPsF4QCyUc4i9oD8jkXjDJdzlLBH3JdamMbWaOTAurGDfhbIn/CGzxkLL Z3Gm0qAIuDiOl9tAYyqo0KBIEUi4HAwMy59xl8elB1GQ5wD0jLe0qBqmn DOh/5/pH+WXiRwLgzVA8VOaaPs9eemrQUoETKoiIC49MqB8WDW/slapjw g==; X-CSE-ConnectionGUID: Rm+dtqPiSGehri7liMprAg== X-CSE-MsgGUID: xQxoi9dRSvecaRKmObKrqw== X-IronPort-AV: E=McAfee;i="6800,10657,11685"; a="73462216" X-IronPort-AV: E=Sophos;i="6.21,258,1763452800"; d="scan'208";a="73462216" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jan 2026 15:16:36 -0800 X-CSE-ConnectionGUID: 75HHaZAQTTeeqRMYqE6vgQ== X-CSE-MsgGUID: WS/uZoy8St6Mqwz17DDxbw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,258,1763452800"; d="scan'208";a="213266639" Received: from guc-pnp-dev-box-1.fm.intel.com ([10.1.39.24]) by fmviesa004.fm.intel.com with ESMTP; 28 Jan 2026 15:16:35 -0800 From: Zhanjun Dong To: intel-xe@lists.freedesktop.org Cc: Matthew Brost , stable@vger.kernel.org, Zhanjun Dong , Stuart Summers Subject: [PATCH v5 1/6] drm/xe: Always kill exec queues in xe_guc_submit_pause_abort Date: Wed, 28 Jan 2026 18:16:29 -0500 Message-Id: <20260128231634.982494-2-zhanjun.dong@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260128231634.982494-1-zhanjun.dong@intel.com> References: <20260128231634.982494-1-zhanjun.dong@intel.com> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Matthew Brost xe_guc_submit_pause_abort is intended to be called after something disastrous occurs (e.g., VF migration fails, device wedging, or driver unload) and should immediately trigger the teardown of remaining submission state. With that, kill any remaining queues in this function. Fixes: 7c4b7e34c83b ("drm/xe/vf: Abort VF post migration recovery on failure") Cc: stable@vger.kernel.org Signed-off-by: Zhanjun Dong Signed-off-by: Matthew Brost Reviewed-by: Stuart Summers --- drivers/gpu/drm/xe/xe_guc_submit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_guc_submit.c b/drivers/gpu/drm/xe/xe_guc_submit.c index 456f549c16f6..d61bd0094e0b 100644 --- a/drivers/gpu/drm/xe/xe_guc_submit.c +++ b/drivers/gpu/drm/xe/xe_guc_submit.c @@ -2774,8 +2774,7 @@ void xe_guc_submit_pause_abort(struct xe_guc *guc) continue; xe_sched_submission_start(sched); - if (exec_queue_killed_or_banned_or_wedged(q)) - xe_guc_exec_queue_trigger_cleanup(q); + guc_exec_queue_kill(q); } mutex_unlock(&guc->submission_state.lock); } -- 2.34.1