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 EF6BCCA6019 for ; Fri, 9 Oct 2026 10:31:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A7A76112057; Fri, 9 Oct 2026 10:31:05 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="ImEHHcSC"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) by gabe.freedesktop.org (Postfix) with ESMTPS id BCD3A112053 for ; Fri, 9 Oct 2026 10:29:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1791541789; x=1823077789; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=lNMdjV2wjrqHYQHfvX2MqsPogOOhdQck0x+JEAfBIC4=; b=ImEHHcSCvv5UvLyq76FIKPcVOCmbxTr1sOl8d1Okc17vacntbVynKk8+ NqLX1k07j44jDK7Yi1DAFRt0je89GDErg9sbvypc4cgjK1VPJTx0K3AMV o2IGO6hU/403Yy36ohxr5CiT6SXVziE/DCRP8uCFkZ9HZVQ6921Kbur9J 4P2t1fYkS+mwNxyKml2EuIIiP/FQEqGt0TwcycmZLCnWyoa53mkWbhR19 xCOy0KsYgImSMepkfejKIrGG4aKtf1WhrtzsJTQ9GCYZr6/5cYdk8QyxG Xck/KHXvjXr/Ov3rHKCQc6aBAG9rRXWYuNWSPnUHq7HVDGb/k6EwdgsKc Q==; X-CSE-ConnectionGUID: c9rGGl4GQYeBnIR9JiWZaA== X-CSE-MsgGUID: NOf8AYLlRCi89JgohcuFaA== X-IronPort-AV: E=McAfee;i="6800,10657,11929"; a="344102" X-IronPort-AV: E=Sophos;i="6.27,148,1787036400"; d="scan'208";a="344102" Received: from fmviesa013.fm.intel.com ([10.60.135.153]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Oct 2026 03:29:49 -0700 X-CSE-ConnectionGUID: phv2IJ1pRrqKDEIBZE9p1Q== X-CSE-MsgGUID: +y2u9OcgRQ2AZtEeEXGjFQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,148,1787036400"; d="scan'208";a="2025623" Received: from bnilawar-desk2.iind.intel.com ([10.190.239.41]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Oct 2026 03:29:45 -0700 From: Badal Nilawar To: intel-xe@lists.freedesktop.org Cc: anshuman.gupta@intel.com, rodrigo.vivi@intel.com, daniele.ceraolospurio@intel.com, raag.jadav@intel.com, riana.tauro@intel.com, mallesh.koujalagi@intel.com, aravind.iddamsetty@intel.com, himal.prasad.ghimiray@intel.com, arvind.yadav@intel.com, syed.abdul.muqthyar.ahmed@intel.com, nitin.r.gote@intel.com, pravalika.gurram@intel.com Subject: [PATCH v4 11/12] drm/xe/xe_ras: Report soc internal errors using SIGID Date: Fri, 9 Oct 2026 16:16:14 +0530 Message-ID: <20261009104602.1075405-25-badal.nilawar@intel.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20261009104602.1075405-14-badal.nilawar@intel.com> References: <20261009104602.1075405-14-badal.nilawar@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" Use xe_log_* helpers to report soc internal errors. Reviewed-by: Rodrigo Vivi Signed-off-by: Badal Nilawar Cc: Riana Tauro --- drivers/gpu/drm/xe/xe_ras.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_ras.c b/drivers/gpu/drm/xe/xe_ras.c index 6647300c7f17..af2970941b59 100644 --- a/drivers/gpu/drm/xe/xe_ras.c +++ b/drivers/gpu/drm/xe/xe_ras.c @@ -366,7 +366,6 @@ static u8 handle_soc_internal_errors(struct xe_device *xe, struct xe_ras_error_a { struct xe_ras_soc_error *info = (void *)arr->details; struct xe_ras_soc_error_source *source = &info->source; - struct xe_ras_error_class *counter = &arr->counter; if (source->csc) { struct xe_ras_csc_error *csc_error = (void *)info->details; @@ -380,9 +379,8 @@ static u8 handle_soc_internal_errors(struct xe_device *xe, struct xe_ras_error_a * is required. */ if (csc_error->hec_fw_error) { - xe_err(xe, "[RAS]: CSC %s detected: 0x%x\n", - sev_to_str(counter->common.severity), - csc_error->hec_fw_error); + xe_log_comp_fatal(xe, SOC_INTERNAL, &arr->counter, sizeof(arr->counter), + "CSC error detected: 0x%x\n", csc_error->hec_fw_error); xe_survivability_mode_runtime_enable(xe); return XE_RAS_RECOVERY_ACTION_DISCONNECT; } @@ -390,9 +388,9 @@ static u8 handle_soc_internal_errors(struct xe_device *xe, struct xe_ras_error_a struct xe_ras_ieh_error *ieh_error = (void *)info->details; if (ieh_error->global_error_status & XE_RAS_SOC_IEH_PUNIT) { - xe_err(xe, "[RAS]: PUNIT %s detected: 0x%x\n", - sev_to_str(counter->common.severity), - ieh_error->global_error_status); + xe_log_comp_fatal(xe, SOC_INTERNAL, &arr->counter, sizeof(arr->counter), + "PUNIT error detected: 0x%x\n", + ieh_error->global_error_status); punit_error_handler(xe); return XE_RAS_RECOVERY_ACTION_DISCONNECT; } -- 2.54.0