mce.h (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) mce.h (9ca766f9891d23743b4e1a7b1cafdc63723cd6a7)
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * Machine check exception header file.
4 *
5 * Copyright 2013 IBM Corporation
6 * Author: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
7 */
8

--- 16 unchanged lines hidden (view full) ---

25enum MCE_Disposition {
26 MCE_DISPOSITION_RECOVERED = 0,
27 MCE_DISPOSITION_NOT_RECOVERED = 1,
28};
29
30enum MCE_Initiator {
31 MCE_INITIATOR_UNKNOWN = 0,
32 MCE_INITIATOR_CPU = 1,
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * Machine check exception header file.
4 *
5 * Copyright 2013 IBM Corporation
6 * Author: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
7 */
8

--- 16 unchanged lines hidden (view full) ---

25enum MCE_Disposition {
26 MCE_DISPOSITION_RECOVERED = 0,
27 MCE_DISPOSITION_NOT_RECOVERED = 1,
28};
29
30enum MCE_Initiator {
31 MCE_INITIATOR_UNKNOWN = 0,
32 MCE_INITIATOR_CPU = 1,
33 MCE_INITIATOR_PCI = 2,
34 MCE_INITIATOR_ISA = 3,
35 MCE_INITIATOR_MEMORY= 4,
36 MCE_INITIATOR_POWERMGM = 5,
33};
34
35enum MCE_ErrorType {
36 MCE_ERROR_TYPE_UNKNOWN = 0,
37 MCE_ERROR_TYPE_UE = 1,
38 MCE_ERROR_TYPE_SLB = 2,
39 MCE_ERROR_TYPE_ERAT = 3,
40 MCE_ERROR_TYPE_TLB = 4,
41 MCE_ERROR_TYPE_USER = 5,
42 MCE_ERROR_TYPE_RA = 6,
43 MCE_ERROR_TYPE_LINK = 7,
37};
38
39enum MCE_ErrorType {
40 MCE_ERROR_TYPE_UNKNOWN = 0,
41 MCE_ERROR_TYPE_UE = 1,
42 MCE_ERROR_TYPE_SLB = 2,
43 MCE_ERROR_TYPE_ERAT = 3,
44 MCE_ERROR_TYPE_TLB = 4,
45 MCE_ERROR_TYPE_USER = 5,
46 MCE_ERROR_TYPE_RA = 6,
47 MCE_ERROR_TYPE_LINK = 7,
48 MCE_ERROR_TYPE_DCACHE = 8,
49 MCE_ERROR_TYPE_ICACHE = 9,
44};
45
46enum MCE_ErrorClass {
47 MCE_ECLASS_UNKNOWN = 0,
48 MCE_ECLASS_HARDWARE,
49 MCE_ECLASS_HARD_INDETERMINATE,
50 MCE_ECLASS_SOFTWARE,
51 MCE_ECLASS_SOFT_INDETERMINATE,

--- 65 unchanged lines hidden (view full) ---

117 u64 gpr3;
118 u64 srr0;
119 u64 srr1;
120 union {
121 struct {
122 enum MCE_UeErrorType ue_error_type:8;
123 u8 effective_address_provided;
124 u8 physical_address_provided;
50};
51
52enum MCE_ErrorClass {
53 MCE_ECLASS_UNKNOWN = 0,
54 MCE_ECLASS_HARDWARE,
55 MCE_ECLASS_HARD_INDETERMINATE,
56 MCE_ECLASS_SOFTWARE,
57 MCE_ECLASS_SOFT_INDETERMINATE,

--- 65 unchanged lines hidden (view full) ---

123 u64 gpr3;
124 u64 srr0;
125 u64 srr1;
126 union {
127 struct {
128 enum MCE_UeErrorType ue_error_type:8;
129 u8 effective_address_provided;
130 u8 physical_address_provided;
125 u8 reserved_1[5];
131 u8 ignore_event;
132 u8 reserved_1[4];
126 u64 effective_address;
127 u64 physical_address;
128 u8 reserved_2[8];
129 } ue_error;
130
131 struct {
132 enum MCE_SlbErrorType slb_error_type:8;
133 u8 effective_address_provided;

--- 54 unchanged lines hidden (view full) ---

188 enum MCE_UserErrorType user_error_type:8;
189 enum MCE_RaErrorType ra_error_type:8;
190 enum MCE_LinkErrorType link_error_type:8;
191 } u;
192 enum MCE_Severity severity:8;
193 enum MCE_Initiator initiator:8;
194 enum MCE_ErrorClass error_class:8;
195 bool sync_error;
133 u64 effective_address;
134 u64 physical_address;
135 u8 reserved_2[8];
136 } ue_error;
137
138 struct {
139 enum MCE_SlbErrorType slb_error_type:8;
140 u8 effective_address_provided;

--- 54 unchanged lines hidden (view full) ---

195 enum MCE_UserErrorType user_error_type:8;
196 enum MCE_RaErrorType ra_error_type:8;
197 enum MCE_LinkErrorType link_error_type:8;
198 } u;
199 enum MCE_Severity severity:8;
200 enum MCE_Initiator initiator:8;
201 enum MCE_ErrorClass error_class:8;
202 bool sync_error;
203 bool ignore_event;
196};
197
198#define MAX_MC_EVT 100
199
200/* Release flags for get_mce_event() */
201#define MCE_EVENT_RELEASE true
202#define MCE_EVENT_DONTRELEASE false
203

--- 13 unchanged lines hidden ---
204};
205
206#define MAX_MC_EVT 100
207
208/* Release flags for get_mce_event() */
209#define MCE_EVENT_RELEASE true
210#define MCE_EVENT_DONTRELEASE false
211

--- 13 unchanged lines hidden ---