xref: /linux/drivers/gpu/drm/xe/regs/xe_hw_error_regs.h (revision 4f38da1f027ea2c9f01bb71daa7a299c191b6940)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2025 Intel Corporation
4  */
5 
6 #ifndef _XE_HW_ERROR_REGS_H_
7 #define _XE_HW_ERROR_REGS_H_
8 
9 #define HEC_UNCORR_ERR_STATUS(base)                    XE_REG((base) + 0x118)
10 #define    UNCORR_FW_REPORTED_ERR                      BIT(6)
11 
12 #define HEC_UNCORR_FW_ERR_DW0(base)                    XE_REG((base) + 0x124)
13 
14 #define DEV_ERR_STAT_NONFATAL			0x100178
15 #define DEV_ERR_STAT_CORRECTABLE		0x10017c
16 #define DEV_ERR_STAT_REG(x)			XE_REG(_PICK_EVEN((x), \
17 								  DEV_ERR_STAT_CORRECTABLE, \
18 								  DEV_ERR_STAT_NONFATAL))
19 #define   XE_CSC_ERROR				BIT(17)
20 #endif
21