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 D8D0EC624D4 for ; Thu, 3 Sep 2026 05:46:32 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 865BE10E09C; Thu, 3 Sep 2026 05:46:32 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="fRS3ZoFz"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id 56BDC10E09C for ; Thu, 3 Sep 2026 05:46:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1788414391; x=1819950391; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=mZc/54CUpmb3Wo7t/M+hUydtfdf9ZpLPUar+X/hjoqg=; b=fRS3ZoFzd46HdC9x7jlQiRrX+zLcwH3CpDJ5K/BsMQpVWG9gATSzaVcW yM0QLwANptA4MZ8JfNGfcNlTxRQctAaPDxZTukrJwalIghB2vvqZ3f5RJ 2Ao6kpaHOdwv75cpSiLiwPtePNhZSOpnEQSptR2LTxP30iIe/MqA83MMf b9h/FmMUWr/KZfm4BXbPlY9c2VOco3CehLQTYdNOBweF7WZkG6w9bUbgX RGZXPQSY1uURE/v9a60YTwSJdpnAI/++Y1kmU6nnHmmIj0WBxTkVeLGUp W2s3Mi6atfd8J8ky2OSUFQs0tCwlkW0/AXF7FPElDvaoYwNKAU2vPTPCy Q==; X-CSE-ConnectionGUID: HkHBikJFSpSNz7ZRmCMo0Q== X-CSE-MsgGUID: f5tdkjwOQYiMcmshDRqJUA== X-IronPort-AV: E=McAfee;i="6800,10657,11894"; a="100398814" X-IronPort-AV: E=Sophos;i="6.25,258,1779174000"; d="scan'208";a="100398814" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Sep 2026 22:46:30 -0700 X-CSE-ConnectionGUID: XS9bDFTJQlm8mpgd6qmj7Q== X-CSE-MsgGUID: /JEB2N3CTvyRXh9fNYAtpQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,258,1779174000"; d="scan'208";a="263447020" Received: from varungup-desk.iind.intel.com ([10.190.238.71]) by fmviesa009-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Sep 2026 22:46:27 -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 v7 2/4] drm/xe/guc: Report reset failure using SIGID Date: Thu, 3 Sep 2026 11:16:08 +0530 Message-ID: <20260903054610.3640788-3-arvind.yadav@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260903054610.3640788-1-arvind.yadav@intel.com> References: <20260903054610.3640788-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 submission 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: Rodrigo Vivi Reviewed-by: Michal Wajdeczko Suggested-by: Michal Wajdeczko Signed-off-by: Arvind Yadav --- v7: - Changed "GuC submit" to "GuC submission". (Michal) v6: - Updated the log message to print class/instance as %u:%u and reason as %#x. (Michal) 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..1df6527130f3 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 %u:%u, reason=%#x\n", + guc_class, instance, reason); xe_gt_reset_async(gt); -- 2.43.0