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 AD402C61DD3 for ; Mon, 31 Aug 2026 08:05:29 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 55ABE10E6EA; Mon, 31 Aug 2026 08:05:29 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="LWCIl/Tb"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3078E10E6E8 for ; Mon, 31 Aug 2026 08:05:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1788163528; x=1819699528; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=8pIdM2+CwL8VippzUM0FfY745cyg1koxfLdKNDqPDZE=; b=LWCIl/Tb7CFNpDNCoeYrDPjB05vQ4QEKiBA3w+yZli7mQn/qFrS9c850 JQjnEg2pO6OcgZHqkphaVpD0/EVELUz72Y4n8KMayR7tADPBpYfuASN6U QuLvvwXCUs5bOAtpo+A11jRo6pr8If5ExrHikot9ut1oLHL19ThmslxIa myRy+Q6IjevfX6WhtnQcubUTiuQ0BVuKgbcXuBWkjeSDevkTNxXmdLXCL IyVp6A6YH4UInvJmNvVvibZrQtYn3fLYkuR93d0Q3pV+0qizT8FFrRYYB alnnN82gMhPoqAq1dpA3vVaFGY7P3gawWX8+moR2QRMgGF/nGRhI3suTA A==; X-CSE-ConnectionGUID: iV5OmwPjR6eZpzsbX5mSHw== X-CSE-MsgGUID: PpW7b5koRRGztsckUrm/pQ== X-IronPort-AV: E=McAfee;i="6800,10657,11891"; a="92251038" X-IronPort-AV: E=Sophos;i="6.25,252,1779174000"; d="scan'208";a="92251038" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2026 01:05:28 -0700 X-CSE-ConnectionGUID: Ymo4sAkMRuyAa4z0lm7yhg== X-CSE-MsgGUID: mxlT0UewRiKC1qZ2XU8rJQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,252,1779174000"; d="scan'208";a="268172158" Received: from varungup-desk.iind.intel.com ([10.190.238.71]) by orviesa008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2026 01:05:25 -0700 From: Arvind Yadav To: intel-xe@lists.freedesktop.org Cc: rodrigo.vivi@intel.com, badal.nilawar@intel.com, michal.wajdeczko@intel.com, himal.prasad.ghimiray@intel.com, dnyaneshwar.bhadane@intel.com, mallesh.koujalagi@intel.com, matthew.brost@intel.com Subject: [PATCH v5 2/4] drm/xe/guc: Report reset failure using SIGID Date: Mon, 31 Aug 2026 13:35:05 +0530 Message-ID: <20260831080507.2364687-3-arvind.yadav@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260831080507.2364687-1-arvind.yadav@intel.com> References: <20260831080507.2364687-1-arvind.yadav@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" Route the GuC submit engine reset failure through the structured SIGID logging helper. Use the GUCSUBMIT component, which maps to XE_SIGID_GT_TDR, and pass -EIO as the errno value. Cc: Mallesh Koujalagi Cc: Badal Nilawar Cc: Matthew Brost Cc: Himal Prasad Ghimiray Cc: Michal Wajdeczko Cc: Rodrigo Vivi Suggested-by: Michal Wajdeczko Signed-off-by: Arvind Yadav --- v5: - Added GUCSUBMIT component and mapped it to XE_SIGID_GT_TDR. (Michal) - Used GUCSUBMIT instead of GT for the GuC submit reset failure. (Michal) - Dropped "request" from the reset failure message. (Michal) v4: - Clarified that the GT component maps to XE_SIGID_GT_TDR and -EIO is only the errno value. (Sashiko) v3: - Split the GuC reset-request failure conversion into a separate patch. (Michal) - Dropped GuC job-timeout warning conversions to avoid changing warn-level logs into error-level SIGID reports. (Michal) - Kept only the existing error path that maps naturally to GT_TDR. (Michal) v2: - Rebased on the latest structured SIGID logging series. - Switched from the old xe_ras_log_() helpers to the new xe_log_() helpers. - Dropped paths already covered by the base SIGID series. drivers/gpu/drm/xe/xe_guc_submit.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_guc_submit.c b/drivers/gpu/drm/xe/xe_guc_submit.c index 99d8c807ff05..543cf7baae96 100644 --- a/drivers/gpu/drm/xe/xe_guc_submit.c +++ b/drivers/gpu/drm/xe/xe_guc_submit.c @@ -34,6 +34,7 @@ #include "xe_guc_klv_helpers.h" #include "xe_guc_submit_types.h" #include "xe_hw_engine.h" +#include "xe_log.h" #include "xe_lrc.h" #include "xe_macros.h" #include "xe_map.h" @@ -3494,8 +3495,9 @@ int xe_guc_exec_queue_reset_failure_handler(struct xe_guc *guc, u32 *msg, u32 le reason = msg[2]; /* Unexpected failure of a hardware feature, log an actual error */ - xe_gt_err(gt, "GuC engine reset request failed on %d:%d because 0x%08X", - guc_class, instance, reason); + xe_log_err(gt, GUCSUBMIT, -EIO, + "engine reset failed on %d:%d because 0x%08X\n", + guc_class, instance, reason); xe_gt_reset_async(gt); -- 2.43.0