From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1B4FCECD6F6 for ; Wed, 11 Feb 2026 22:20:34 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CB1B310E668; Wed, 11 Feb 2026 22:20:33 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="nCkUAAzK"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by gabe.freedesktop.org (Postfix) with ESMTPS id 387E789E69 for ; Wed, 11 Feb 2026 22:20:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1770848424; x=1802384424; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=E5FcJ17P9iYye3aEMUUBS/vcgWA1jvdXZPl9Ol4vIJI=; b=nCkUAAzK6AyncourzuBEuFRqJc9vCSZCHqde0mqzjH/zgmfQ2ETyEYsJ rc71crutAnXglJEG1vNi21E58+Jpxnsu3FW366Zv5o8+LhPuE6AHpwFt5 1Lga50Uy84kq2O+tzCHArfdLG2OwKiROhIIfCJcu/D2rEvIE57YrMn2jD Y5qzVgSU1CZWJ/Am2gNIgn6LqttGnlQknkD3vSmx7fTqwa8v5PZNIl8zY qR4XB22l4ZmJeBuQFE8rmQqriKvIS5nbP6SDKIqCcSfCg/jwRXUYVnZyU /5AVnLeHc3SkjKDj/PVqMmdBF0NIkVnUpogSGOVdiItD34qx40reb6ZDy A==; X-CSE-ConnectionGUID: EPVnvw5+ToSfT4kqUantTQ== X-CSE-MsgGUID: MenAP9YhT56PRknjdRhkwQ== X-IronPort-AV: E=McAfee;i="6800,10657,11698"; a="89415215" X-IronPort-AV: E=Sophos;i="6.21,285,1763452800"; d="scan'208";a="89415215" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Feb 2026 14:20:24 -0800 X-CSE-ConnectionGUID: e0KQ5ZhFSSyS1YlNiPY6zg== X-CSE-MsgGUID: AvYTqw8+Sq6229UpaJrKfg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,285,1763452800"; d="scan'208";a="212479589" Received: from guc-pnp-dev-box-1.fm.intel.com ([10.1.39.24]) by orviesa007.jf.intel.com with ESMTP; 11 Feb 2026 14:20:24 -0800 From: Zhanjun Dong To: intel-xe@lists.freedesktop.org Cc: Zhanjun Dong , stable@vger.kernel.org, Matthew Brost Subject: [PATCH v6 5/6] drm/xe/guc: Ensure CT state transitions via STOP before DISABLED Date: Wed, 11 Feb 2026 17:20:19 -0500 Message-Id: <20260211222020.848341-6-zhanjun.dong@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260211222020.848341-1-zhanjun.dong@intel.com> References: <20260211222020.848341-1-zhanjun.dong@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" The GuC CT state transition requires moving to the STOP state before entering the DISABLED state. Update the driver teardown sequence to make the proper state machine transitions. Fixes: ee4b32220a6b ("drm/xe/guc: Add devm release action to safely tear down CT") Cc: stable@vger.kernel.org Signed-off-by: Zhanjun Dong Reviewed-by: Matthew Brost --- drivers/gpu/drm/xe/xe_guc_ct.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/xe/xe_guc_ct.c b/drivers/gpu/drm/xe/xe_guc_ct.c index 8a45573f8812..7e66e9420f5d 100644 --- a/drivers/gpu/drm/xe/xe_guc_ct.c +++ b/drivers/gpu/drm/xe/xe_guc_ct.c @@ -346,6 +346,7 @@ static void guc_action_disable_ct(void *arg) { struct xe_guc_ct *ct = arg; + xe_guc_ct_stop(ct); guc_ct_change_state(ct, XE_GUC_CT_STATE_DISABLED); } -- 2.34.1