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 0745BC001B0 for ; Thu, 10 Aug 2023 07:21:09 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C802C10E4C8; Thu, 10 Aug 2023 07:21:08 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by gabe.freedesktop.org (Postfix) with ESMTPS id F29C810E4C8 for ; Thu, 10 Aug 2023 07:21:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691652067; x=1723188067; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=L+3Fpf9zStaiBx3HZOelDWyURpz4AE1FKLZqcxP6AAE=; b=Tku08/TCEqUopPr3tqGGJHgcLa8mcAuQL2zgoftRmxppXDNzhtvjvSTf U5rydDBInsYo5Cvg4X6n1uxc1rYVYyIXzj6Qq+FVFA1RUD5fUxcgQHtXz Yfr8VIHMcmkq0Zkn4j3dQbhncwc95pdw15TL+QyZz2kHaZdiq4vnKUdNN /KMNQVoQ2isnh3mfEKZ3yYv6zKJu625zZdrsn632CcPFKQ92Muq76ms24 xu54TiEx5nunohmCrrW+ThaFXgd9xyJdnb4j8o6ts18di8tFwnYGJ+DsH BGXLgOxvCeT6PSDxfAQ1jSxPT2xK4K/XArsjIUuJXMpav21Dv6mLaUR1B g==; X-IronPort-AV: E=McAfee;i="6600,9927,10797"; a="375037423" X-IronPort-AV: E=Sophos;i="6.01,161,1684825200"; d="scan'208";a="375037423" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2023 00:21:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10797"; a="761696654" X-IronPort-AV: E=Sophos;i="6.01,161,1684825200"; d="scan'208";a="761696654" Received: from himal-super-server.iind.intel.com ([10.145.169.168]) by orsmga008.jf.intel.com with ESMTP; 10 Aug 2023 00:21:04 -0700 From: Himal Prasad Ghimiray To: intel-xe@lists.freedesktop.org Date: Thu, 10 Aug 2023 12:56:27 +0530 Message-Id: <20230810072631.722373-1-himal.prasad.ghimiray@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Intel-xe] [PATCH v3 0/4] Supporting RAS on XE 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" Our platforms support Reliability, Availability and Serviceability(RAS). In case of hardware errors, our hardwares provides the causes via sending interrupt or pcie errors. The fatal errors are propogated as pci errors and non fatal errors as MSI. This series focuses on loging and updating counters for these errors, which will be helpful to avoid, detect and repair hardware faults. This [1] series proposes mechanism to expose this counters to userspace. [1]: https://patchwork.freedesktop.org/series/118435/ The error counters exposed by KMD will be used by L0/sysman They will be categorized to specific category of error in sysman: https://spec.oneapi.io/level-zero/latest/sysman/api.html#ras Current version covers the error propagation at tile level and possible causes from GT subsystem. Future patches will cover the possible causes from other subsystems (for example SOC, GSC/CSC). We have very limited capabilities for error injection to validate the code flow. Output of L3 fabric fatal injection from PVC is: xe 0000:8c:00.0: [drm] *ERROR* [Hardware Error]: TILE0 detected GT FATAL error bit[0] is set xe 0000:8c:00.0: [drm] *ERROR* [Hardware Error]: GT0 detected L3 FABRIC FATAL error. ERR_VECT_GT_FATAL_[7]:0x00000087 v2 - Use different headers for error registers. (Nikula) - Correctable errors shouldn't be considered as dmesg errors (Matt) - Limit series to HW errors.(Aravind) v3 - Rebase Himal Prasad Ghimiray (4): drm/xe: Handle errors from various components. drm/xe: Log and count the GT hardware errors. drm/xe: Support GT hardware error reporting for PVC. drm/xe: Process fatal hardware errors. drivers/gpu/drm/xe/regs/xe_gt_error_regs.h | 99 ++++ drivers/gpu/drm/xe/regs/xe_regs.h | 7 + drivers/gpu/drm/xe/regs/xe_tile_error_regs.h | 108 +++++ drivers/gpu/drm/xe/xe_device_types.h | 6 + drivers/gpu/drm/xe/xe_gt_types.h | 6 + drivers/gpu/drm/xe/xe_irq.c | 460 +++++++++++++++++++ 6 files changed, 686 insertions(+) create mode 100644 drivers/gpu/drm/xe/regs/xe_gt_error_regs.h create mode 100644 drivers/gpu/drm/xe/regs/xe_tile_error_regs.h -- 2.25.1