Skip to contentSkip to conversation

Supporting RAS on XE

PATCH Superseded Himal Prasad Ghimiray 2 participants 8 messages Aug 23, 2023

Subsystems (2)

v4 of 10 Superseded Latest is v10 →

lore
Share & tools
lore
#0 lore raw

v4 cover Supporting RAS on 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

v4
- Use xe_regs.h only for registers, move enums out of it.
- Make sure global data/structures are immutable.
- Avoid adding custom error logging macro's.
- Redesign the registers error name and counter index structures for maintainability. (Nikula)

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/Makefile                  |   1 +
 drivers/gpu/drm/xe/regs/xe_gt_error_regs.h   |  29 ++
 drivers/gpu/drm/xe/regs/xe_regs.h            |   5 +-
 drivers/gpu/drm/xe/regs/xe_tile_error_regs.h |  15 +
 drivers/gpu/drm/xe/xe_device_types.h         |  13 +
 drivers/gpu/drm/xe/xe_gt_types.h             |   7 +
 drivers/gpu/drm/xe/xe_hw_error.c             | 454 +++++++++++++++++++
 drivers/gpu/drm/xe/xe_hw_error.h             | 109 +++++
 drivers/gpu/drm/xe/xe_irq.c                  |   3 +
 9 files changed, 635 insertions(+), 1 deletion(-)
 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
 create mode 100644 drivers/gpu/drm/xe/xe_hw_error.c
 create mode 100644 drivers/gpu/drm/xe/xe_hw_error.h
Signature · 1 line
2.25.1
#1 lore raw

PATCH v4 1/4 drm/xe: Handle errors from various components.

The GFX device can generate numbers of classes of error under the new
infrastructure: correctable, non-fatal, and fatal errors.

The non-fatal and fatal error classes distinguish between levels of severity for uncorrectable errors. Driver will only handle logging of errors and updating counters from various components within the graphics device. Anything more will be handled at system level.

For errors that will route as interrupts, three bits in the Master Interrupt Register will be used to convey the class of error.

For each class of error: Determine source of error (IP block) by reading the Device Error Source Register (RW1C) that
corresponds to the class of error being serviced.

Bspec: 50875, 53073, 53074, 53075

Cc Rodrigo Vivi <[email protected]>
Cc Aravind Iddamsetty <[email protected]>
Cc Matthew Brost <[email protected]>
Cc Matt Roper <[email protected]>
Cc Joonas Lahtinen <[email protected]>
Cc Jani Nikula <[email protected]>
---
 drivers/gpu/drm/xe/Makefile                  |   1 +
 drivers/gpu/drm/xe/regs/xe_regs.h            |   2 +-
 drivers/gpu/drm/xe/regs/xe_tile_error_regs.h |  15 ++
 drivers/gpu/drm/xe/xe_device_types.h         |  12 ++
 drivers/gpu/drm/xe/xe_hw_error.c             | 211 +++++++++++++++++++
 drivers/gpu/drm/xe/xe_hw_error.h             |  64 ++++++
 drivers/gpu/drm/xe/xe_irq.c                  |   3 +
 7 files changed, 307 insertions(+), 1 deletion(-)
 create mode 100644 drivers/gpu/drm/xe/regs/xe_tile_error_regs.h
 create mode 100644 drivers/gpu/drm/xe/xe_hw_error.c
 create mode 100644 drivers/gpu/drm/xe/xe_hw_error.h
drivers/gpu/drm/xe/Makefile +1 -0
index 550cdfed729e..6290c8ce0e84 100644
@@ -75,6 +75,7 @@ xe-y += xe_bb.o \
 	xe_guc_submit.o \
 	xe_hw_engine.o \
 	xe_hw_engine_class_sysfs.o \
+	xe_hw_error.o \
 	xe_hw_fence.o \
 	xe_huc.o \
 	xe_huc_debugfs.o \
drivers/gpu/drm/xe/regs/xe_regs.h +1 -1
index 39d7b0740bf0..e223975a5acf 100644
@@ -88,7 +88,7 @@
 #define   GU_MISC_IRQ				REG_BIT(29)
 #define   DISPLAY_IRQ				REG_BIT(16)
 #define   GT_DW_IRQ(x)				REG_BIT(x)
+#define   XE_ERROR_IRQ(x)			REG_BIT(26 + (x))
 
 #define PVC_RP_STATE_CAP			XE_REG(0x281014)
-
 #endif
drivers/gpu/drm/xe/regs/xe_tile_error_regs.h new file +15 -0
new file mode 100644
index 000000000000..db78d6687213
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Copyright © 2023 Intel Corporation
+ */
+#ifndef XE_TILE_ERROR_REGS_H_
+#define XE_TILE_ERROR_REGS_H_
+
+#include <linux/stddef.h>
+
+#define _DEV_ERR_STAT_NONFATAL                         0x100178
+#define _DEV_ERR_STAT_CORRECTABLE                      0x10017c
+#define DEV_ERR_STAT_REG(x)                            XE_REG(_PICK_EVEN((x), \
+								_DEV_ERR_STAT_CORRECTABLE, \
+								_DEV_ERR_STAT_NONFATAL))
+#endif
drivers/gpu/drm/xe/xe_device_types.h +12 -0
index dbb732e14606..70c8735917d1 100644
@@ -14,6 +14,7 @@
 
 #include "xe_devcoredump_types.h"
 #include "xe_gt_types.h"
+#include "xe_hw_error.h"
 #include "xe_platform_types.h"
 #include "xe_step_types.h"
 
@@ -172,6 +173,11 @@ struct xe_tile {
 
 	/** @sysfs: sysfs' kobj used by xe_tile_sysfs */
 	struct kobject *sysfs;
+
+	/** @tile_hw_errors: hardware errors reported for the tile */
+	struct tile_hw_errors {
+		unsigned long count[XE_TILE_HW_ERROR_MAX];
+	} errors;
 };
 
 /**
@@ -453,6 +459,12 @@ struct xe_device {
 		const char *vbt_firmware;
 		u32 lvds_channel_mode;
 	} params;
+
+	/** hardware_errors_regs: struct maintaining list of hw error regs*/
+	struct hardware_errors_regs {
+		const struct err_msg_cntr_pair *dev_err_stat[HARDWARE_ERROR_MAX];
+	} hw_err_regs;
+
 #endif
 };
 
drivers/gpu/drm/xe/xe_hw_error.c new file +211 -0

211 lines not on this page · raw message

drivers/gpu/drm/xe/xe_hw_error.h new file +64 -0

64 lines not on this page · raw message

drivers/gpu/drm/xe/xe_irq.c +3 -0
index 1dee3e832eb5..48b933234342 100644
@@ -418,6 +418,7 @@ static irqreturn_t dg1_irq_handler(int irq, void *arg)
 		xe_mmio_write32(mmio, GFX_MSTR_IRQ, master_ctl);
 
 		gt_irq_handler(tile, master_ctl, intr_dw, identity);
+		xe_hw_error_irq_handler(tile, master_ctl);
 
 		/*
 		 * Display interrupts (including display backlight operations
@@ -572,6 +573,8 @@ int xe_irq_install(struct xe_device *xe)
 		return -EINVAL;
 	}
 
+	xe_assign_hw_err_regs(xe);
+
 	xe->irq.enabled = true;
 
 	xe_irq_reset(xe);
Signature · 1 line
2.25.1
#2 lore raw

PATCH v4 2/4 drm/xe: Log and count the GT hardware errors.

In reply to Himal Prasad Ghimiray

For the errors reported by GT unit, read the GT error register. Log and count these errors and clear the error register.

Bspec: 53088, 53089, 53090

Cc Rodrigo Vivi <[email protected]>
Cc Aravind Iddamsetty <[email protected]>
Cc Matthew Brost <[email protected]>
Cc Matt Roper <[email protected]>
Cc Joonas Lahtinen <[email protected]>
Cc Jani Nikula <[email protected]>
---
 drivers/gpu/drm/xe/regs/xe_gt_error_regs.h | 13 +++
 drivers/gpu/drm/xe/xe_device_types.h       |  1 +
 drivers/gpu/drm/xe/xe_gt_types.h           |  7 ++
 drivers/gpu/drm/xe/xe_hw_error.c           | 96 +++++++++++++++++++++-
 drivers/gpu/drm/xe/xe_hw_error.h           | 24 ++++++
 5 files changed, 140 insertions(+), 1 deletion(-)
 create mode 100644 drivers/gpu/drm/xe/regs/xe_gt_error_regs.h
drivers/gpu/drm/xe/regs/xe_gt_error_regs.h new file +13 -0
new file mode 100644
index 000000000000..6180704a6149
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Copyright © 2023 Intel Corporation
+ */
+#ifndef XE_GT_ERROR_REGS_H_
+#define XE_GT_ERROR_REGS_H_
+
+#define _ERR_STAT_GT_COR                0x100160
+#define _ERR_STAT_GT_NONFATAL           0x100164
+#define ERR_STAT_GT_REG(x)              XE_REG(_PICK_EVEN((x), \
+						_ERR_STAT_GT_COR, \
+						_ERR_STAT_GT_NONFATAL))
+#endif
drivers/gpu/drm/xe/xe_device_types.h +1 -0
index 70c8735917d1..44c733c461e4 100644
@@ -463,6 +463,7 @@ struct xe_device {
 	/** hardware_errors_regs: struct maintaining list of hw error regs*/
 	struct hardware_errors_regs {
 		const struct err_msg_cntr_pair *dev_err_stat[HARDWARE_ERROR_MAX];
+		const struct err_msg_cntr_pair *err_stat_gt[HARDWARE_ERROR_MAX];
 	} hw_err_regs;
 
 #endif
drivers/gpu/drm/xe/xe_gt_types.h +7 -0
index 35b8c19fa8bf..5daff5c434c7 100644
@@ -9,10 +9,12 @@
 #include "xe_force_wake_types.h"
 #include "xe_gt_idle_sysfs_types.h"
 #include "xe_hw_engine_types.h"
+#include "xe_hw_error.h"
 #include "xe_hw_fence_types.h"
 #include "xe_reg_sr_types.h"
 #include "xe_sa_types.h"
 #include "xe_uc_types.h"
+#include "regs/xe_gt_error_regs.h"
 
 struct xe_exec_queue_ops;
 struct xe_migrate;
@@ -346,6 +348,11 @@ struct xe_gt {
 		/** @oob: bitmap with active OOB workaroudns */
 		unsigned long *oob;
 	} wa_active;
+
+	/** @gt_hw_errors: hardware errors reported for the gt */
+	struct gt_hw_errors {
+		 unsigned long count[XE_GT_HW_ERROR_MAX];
+	} errors;
 };
 
 #endif
drivers/gpu/drm/xe/xe_hw_error.c +95 -1

131 lines not on this page · raw message

drivers/gpu/drm/xe/xe_hw_error.h +24 -0
index c0c05b9130eb..82c947247c27 100644
@@ -51,6 +51,30 @@ enum xe_tile_hw_errors {
 	XE_TILE_HW_ERROR_MAX,
 };
 
+/* Count of GT Correctable and FATAL HW ERRORS */
+enum xe_gt_hw_errors {
+	XE_GT_HW_ERR_L3_SNG_CORR,
+	XE_GT_HW_ERR_GUC_CORR,
+	XE_GT_HW_ERR_SAMPLER_CORR,
+	XE_GT_HW_ERR_SLM_CORR,
+	XE_GT_HW_ERR_EU_IC_CORR,
+	XE_GT_HW_ERR_EU_GRF_CORR,
+	XE_GT_HW_ERR_UNKNOWN_CORR,
+	XE_GT_HW_ERR_ARR_BIST_FATAL,
+	XE_GT_HW_ERR_FPU_FATAL,
+	XE_GT_HW_ERR_L3_DOUB_FATAL,
+	XE_GT_HW_ERR_L3_ECC_CHK_FATAL,
+	XE_GT_HW_ERR_GUC_FATAL,
+	XE_GT_HW_ERR_IDI_PAR_FATAL,
+	XE_GT_HW_ERR_SQIDI_FATAL,
+	XE_GT_HW_ERR_SAMPLER_FATAL,
+	XE_GT_HW_ERR_SLM_FATAL,
+	XE_GT_HW_ERR_EU_IC_FATAL,
+	XE_GT_HW_ERR_EU_GRF_FATAL,
+	XE_GT_HW_ERR_UNKNOWN_FATAL,
+	XE_GT_HW_ERROR_MAX,
+};
+
 struct err_msg_cntr_pair {
 	const char *errmsg;
 	const u32 cntr_indx;
Signature · 1 line
2.25.1
#3 lore raw

PATCH v4 3/4 drm/xe: Support GT hardware error reporting for PVC.

In reply to Himal Prasad Ghimiray

PVC supports GT error reporting via vector registers alongwith error status register. Add support to report these errors and update respective counters.
Incase of Subslice error reported by vector register, process the error status register for applicable bits.

Bspec: 54179, 54177, 53088, 53089

Cc Rodrigo Vivi <[email protected]>
Cc Aravind Iddamsetty <[email protected]>
Cc Matthew Brost <[email protected]>
Cc Matt Roper <[email protected]>
Cc Joonas Lahtinen <[email protected]>
---
 drivers/gpu/drm/xe/regs/xe_gt_error_regs.h |  16 +++
 drivers/gpu/drm/xe/xe_hw_error.c           | 122 ++++++++++++++++++++-
 drivers/gpu/drm/xe/xe_hw_error.h           |  20 ++++
 3 files changed, 154 insertions(+), 4 deletions(-)
drivers/gpu/drm/xe/regs/xe_gt_error_regs.h +16 -0
index 6180704a6149..39ea87914465 100644
@@ -10,4 +10,20 @@
 #define ERR_STAT_GT_REG(x)              XE_REG(_PICK_EVEN((x), \
 						_ERR_STAT_GT_COR, \
 						_ERR_STAT_GT_NONFATAL))
+
+#define _ERR_STAT_GT_COR_VCTR_0         0x1002a0
+#define _ERR_STAT_GT_COR_VCTR_1         0x1002a4
+#define ERR_STAT_GT_COR_VCTR_REG(x)     XE_REG(_PICK_EVEN((x), \
+						_ERR_STAT_GT_COR_VCTR_0, \
+						_ERR_STAT_GT_COR_VCTR_1))
+
+#define _ERR_STAT_GT_FATAL_VCTR_0       0x100260
+#define _ERR_STAT_GT_FATAL_VCTR_1       0x100264
+#define ERR_STAT_GT_FATAL_VCTR_REG(x)   XE_REG(_PICK_EVEN((x), \
+						_ERR_STAT_GT_FATAL_VCTR_0, \
+						_ERR_STAT_GT_FATAL_VCTR_1))
+
+#define ERR_STAT_GT_VCTR_REG(hw_err, x) (hw_err == HARDWARE_ERROR_CORRECTABLE ? \
+						ERR_STAT_GT_COR_VCTR_REG(x) : \
+						ERR_STAT_GT_FATAL_VCTR_REG(x))
 #endif
drivers/gpu/drm/xe/xe_hw_error.c +118 -4

152 lines not on this page · raw message

drivers/gpu/drm/xe/xe_hw_error.h +20 -0
index 82c947247c27..3fcbbcc338fe 100644
@@ -51,8 +51,21 @@ enum xe_tile_hw_errors {
 	XE_TILE_HW_ERROR_MAX,
 };
 
+enum gt_vctr_registers {
+	ERR_STAT_GT_VCTR0 = 0,
+	ERR_STAT_GT_VCTR1,
+	ERR_STAT_GT_VCTR2,
+	ERR_STAT_GT_VCTR3,
+	ERR_STAT_GT_VCTR4,
+	ERR_STAT_GT_VCTR5,
+	ERR_STAT_GT_VCTR6,
+	ERR_STAT_GT_VCTR7,
+};
+
 /* Count of GT Correctable and FATAL HW ERRORS */
 enum xe_gt_hw_errors {
+	XE_GT_HW_ERR_SUBSLICE_CORR,
+	XE_GT_HW_ERR_L3BANK_CORR,
 	XE_GT_HW_ERR_L3_SNG_CORR,
 	XE_GT_HW_ERR_GUC_CORR,
 	XE_GT_HW_ERR_SAMPLER_CORR,
@@ -60,6 +73,8 @@ enum xe_gt_hw_errors {
 	XE_GT_HW_ERR_EU_IC_CORR,
 	XE_GT_HW_ERR_EU_GRF_CORR,
 	XE_GT_HW_ERR_UNKNOWN_CORR,
+	XE_GT_HW_ERR_SUBSLICE_FATAL,
+	XE_GT_HW_ERR_L3BANK_FATAL,
 	XE_GT_HW_ERR_ARR_BIST_FATAL,
 	XE_GT_HW_ERR_FPU_FATAL,
 	XE_GT_HW_ERR_L3_DOUB_FATAL,
@@ -71,10 +86,15 @@ enum xe_gt_hw_errors {
 	XE_GT_HW_ERR_SLM_FATAL,
 	XE_GT_HW_ERR_EU_IC_FATAL,
 	XE_GT_HW_ERR_EU_GRF_FATAL,
+	XE_GT_HW_ERR_TLB_FATAL,
+	XE_GT_HW_ERR_L3_FABRIC_FATAL,
 	XE_GT_HW_ERR_UNKNOWN_FATAL,
 	XE_GT_HW_ERROR_MAX,
 };
 
+#define ERR_STAT_GT_COR_VCTR_LEN (4)
+#define ERR_STAT_GT_FATAL_VCTR_LEN (8)
+
 struct err_msg_cntr_pair {
 	const char *errmsg;
 	const u32 cntr_indx;
Signature · 1 line
2.25.1
#4 lore raw

PATCH v4 4/4 drm/xe: Process fatal hardware errors.

In reply to Himal Prasad Ghimiray

Fatal errors are reported as PCIe errors. When a PCIe error is asserted, the OS will perform a device warm reset which causes the driver to reload. The error registers are sticky and the values are maintained through a warm reset. We read these registers during the boot flow of the driver and increment the respective error counters.

Bspec: 53076

Cc Rodrigo Vivi <[email protected]>
Cc Aravind Iddamsetty <[email protected]>
Cc Matthew Brost <[email protected]>
Cc Matt Roper <[email protected]>
Cc Joonas Lahtinen <[email protected]>
---
 drivers/gpu/drm/xe/regs/xe_regs.h |  3 +++
 drivers/gpu/drm/xe/xe_hw_error.c  | 37 ++++++++++++++++++++++++++++++-
 drivers/gpu/drm/xe/xe_hw_error.h  |  3 ++-
 drivers/gpu/drm/xe/xe_irq.c       |  2 +-
 4 files changed, 42 insertions(+), 3 deletions(-)
drivers/gpu/drm/xe/regs/xe_regs.h +3 -0
index e223975a5acf..b8f2b1762d3f 100644
@@ -90,5 +90,8 @@
 #define   GT_DW_IRQ(x)				REG_BIT(x)
 #define   XE_ERROR_IRQ(x)			REG_BIT(26 + (x))
 
+#define DEV_PCIEERR_STATUS			XE_REG(0x100180)
+#define   DEV_PCIEERR_IS_FATAL(x)		REG_BIT(x * 4 + 2)
+
 #define PVC_RP_STATE_CAP			XE_REG(0x281014)
 #endif
drivers/gpu/drm/xe/xe_hw_error.c +36 -1
index deb020a509d2..9595e3369656 100644
@@ -183,7 +183,7 @@ static const struct err_msg_cntr_pair err_stat_gt_correctable_vectr_reg[] = {
 	[2 ... 3]         = {"L3BANK",		XE_GT_HW_ERR_L3BANK_CORR},
 };
 
-void xe_assign_hw_err_regs(struct xe_device *xe)
+static void xe_assign_hw_err_regs(struct xe_device *xe)
 {
 	const struct err_msg_cntr_pair **dev_err_stat = xe->hw_err_regs.dev_err_stat;
 	const struct err_msg_cntr_pair **err_stat_gt = xe->hw_err_regs.err_stat_gt;
@@ -417,3 +417,38 @@ xe_hw_error_irq_handler(struct xe_tile *tile, const u32 master_ctl)
 			xe_hw_error_source_handler(tile, hw_err);
 	}
 }
+
+/**
+ * process_hw_errors - checks for the occurrence of HW errors
+ *
+ * This checks for the HW Errors including FATAL errors that might
+ * have occurred in the previous boot of the driver which will
+ * initiate PCIe FLR reset of the device and cause the
+ * driver to reload.
+ */
+void xe_process_hw_errors(struct xe_device *xe)
+{
+	struct xe_tile *root_tile = xe_device_get_root_tile(xe);
+	struct xe_gt *root_mmio = root_tile->primary_gt;
+
+	u32 dev_pcieerr_status, master_ctl;
+	struct xe_tile *tile;
+	int i;
+
+	xe_assign_hw_err_regs(xe);
+
+	dev_pcieerr_status = xe_mmio_read32(root_mmio, DEV_PCIEERR_STATUS);
+
+	for_each_tile(tile, xe, i) {
+		struct xe_gt *mmio = tile->primary_gt;
+
+		if (dev_pcieerr_status & DEV_PCIEERR_IS_FATAL(i))
+			xe_hw_error_source_handler(tile, HARDWARE_ERROR_FATAL);
+
+		master_ctl = xe_mmio_read32(mmio, GFX_MSTR_IRQ);
+		xe_hw_error_irq_handler(tile, master_ctl);
+		xe_mmio_write32(mmio, GFX_MSTR_IRQ, master_ctl);
+	}
+	if (dev_pcieerr_status)
+		xe_mmio_write32(root_mmio, DEV_PCIEERR_STATUS, dev_pcieerr_status);
+}
drivers/gpu/drm/xe/xe_hw_error.h +2 -1
index 3fcbbcc338fe..2812407dd4bf 100644
@@ -104,5 +104,6 @@ struct xe_device;
 struct xe_tile;
 
 void xe_hw_error_irq_handler(struct xe_tile *tile, const u32 master_ctl);
-void xe_assign_hw_err_regs(struct xe_device *xe);
+void xe_process_hw_errors(struct xe_device *xe);
+
 #endif
drivers/gpu/drm/xe/xe_irq.c +1 -1
index 48b933234342..be152ebd6ce9 100644
@@ -573,7 +573,7 @@ int xe_irq_install(struct xe_device *xe)
 		return -EINVAL;
 	}
 
-	xe_assign_hw_err_regs(xe);
+	xe_process_hw_errors(xe);
 
 	xe->irq.enabled = true;
 
Signature · 1 line
2.25.1
#5 lore raw

[Intel-xe] ✓ CI.Patch_applied: success for Supporting RAS on XE (rev3)

In reply to Himal Prasad Ghimiray
== Series Details ==

== Series Details ==

Series: Supporting RAS on XE (rev3)
URL : https://patchwork.freedesktop.org/series/122257/
State : success

== Summary ==

=== Applying kernel patches on branch 'drm-xe-next' with base: === Base commit: 3a964d065 drm/xe/lnl: Hook up MOCS table === git am output follows ===
Applying: drm/xe: Handle errors from various components.
Applying: drm/xe: Log and count the GT hardware errors.
Applying: drm/xe: Support GT hardware error reporting for PVC.
Applying: drm/xe: Process fatal hardware errors.

#6 lore raw

[Intel-xe] ✗ CI.checkpatch: warning for Supporting RAS on XE (rev3)

In reply to Himal Prasad Ghimiray
== Series Details ==

== Series Details ==

Series: Supporting RAS on XE (rev3)
URL : https://patchwork.freedesktop.org/series/122257/
State : warning

== Summary ==

+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master e700ea2f248a75138759bcb443affeef4a2d1991
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 16ad0150648e72eb8a9a040784873092b2c04765

Author: Himal Prasad Ghimiray <[email protected]>
Date:   Wed Aug 23 11:10:15 2023 +0530

drm/xe: Process fatal hardware errors.

Fatal errors are reported as PCIe errors. When a PCIe error is asserted, the OS will perform a device warm reset which causes the driver to reload. The error registers are sticky and the values are maintained through a warm reset. We read these registers during the boot flow of the driver and increment the respective error counters.

Bspec: 53076

Cc Rodrigo Vivi <[email protected]>
Cc Aravind Iddamsetty <[email protected]>
Cc Matthew Brost <[email protected]>
Cc Matt Roper <[email protected]>
Cc Joonas Lahtinen <[email protected]>

+ /mt/dim checkpatch 3a964d06598874329aab6f8db7fd52840135d568 drm-intel /mt/dim: line 50: /root/.dimrc: No such file or directory

#7 lore raw

[Intel-xe] ✗ CI.KUnit: failure for Supporting RAS on XE (rev3)

In reply to Himal Prasad Ghimiray
== Series Details ==

== Series Details ==

Series: Supporting RAS on XE (rev3)
URL : https://patchwork.freedesktop.org/series/122257/
State : failure

== Summary ==

+ trap cleanup EXIT
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig ERROR:root:../drivers/gpu/drm/xe/xe_hw_error.c: In function ‘xe_assign_hw_err_regs’:
../drivers/gpu/drm/xe/xe_hw_error.c:188:52: error: ‘struct xe_device’ has no member named ‘hw_err_regs’
188 | const struct err_msg_cntr_pair **dev_err_stat = xe->hw_err_regs.dev_err_stat;
| ^~
../drivers/gpu/drm/xe/xe_hw_error.c:189:51: error: ‘struct xe_device’ has no member named ‘hw_err_regs’
189 | const struct err_msg_cntr_pair **err_stat_gt = xe->hw_err_regs.err_stat_gt;
| ^~
../drivers/gpu/drm/xe/xe_hw_error.c: In function ‘xe_gt_hw_error_status_reg_handler’:
../drivers/gpu/drm/xe/xe_hw_error.c:227:26: error: ‘struct xe_device’ has no member named ‘hw_err_regs’
227 | err_regs = &gt_to_xe(gt)->hw_err_regs;
| ^~
../drivers/gpu/drm/xe/xe_hw_error.c:248:20: error: dereferencing pointer to incomplete type ‘struct hardware_errors_regs’
248 | errstat = err_regs->err_stat_gt[hw_err];
| ^~
../drivers/gpu/drm/xe/xe_hw_error.c: In function ‘xe_hw_error_source_handler’:
../drivers/gpu/drm/xe/xe_hw_error.c:361:30: error: ‘struct xe_device’ has no member named ‘hw_err_regs’
361 | err_regs = &tile_to_xe(tile)->hw_err_regs;
| ^~
../drivers/gpu/drm/xe/xe_hw_error.c:362:20: error: dereferencing pointer to incomplete type ‘const struct hardware_errors_regs’
362 | errstat = err_regs->dev_err_stat[hw_err];
| ^~
make[6]: *** [../scripts/Makefile.build:252: drivers/gpu/drm/xe/xe_hw_error.o] Error 1
make[6]: *** Waiting for unfinished jobs....
make[5]: *** [../scripts/Makefile.build:494: drivers/gpu/drm/xe] Error 2
make[4]: *** [../scripts/Makefile.build:494: drivers/gpu/drm] Error 2
make[3]: *** [../scripts/Makefile.build:494: drivers/gpu] Error 2
make[2]: *** [../scripts/Makefile.build:494: drivers] Error 2
make[1]: *** [/kernel/Makefile:2026: .] Error 2
make: *** [Makefile:226: __sub-make] Error 2

[06:26:44] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:

$ make ARCH=um O=.kunit olddefconfig
[06:26:49] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make ARCH=um O=.kunit --jobs=48
+ cleanup
++ stat -c %u:%g /kernel
+ chown -R 1003:1003 /kernel