1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2014-2021 Intel Corporation
4  */
5 
6 #ifndef _ABI_GUC_ERRORS_ABI_H
7 #define _ABI_GUC_ERRORS_ABI_H
8 
9 enum xe_guc_response_status {
10 	XE_GUC_RESPONSE_STATUS_SUCCESS                      = 0x0,
11 	XE_GUC_RESPONSE_ERROR_PROTOCOL                      = 0x04,
12 	XE_GUC_RESPONSE_INVALID_STATE                       = 0x0A,
13 	XE_GUC_RESPONSE_UNSUPPORTED_VERSION                 = 0x0B,
14 	XE_GUC_RESPONSE_INVALID_VFID                        = 0x0C,
15 	XE_GUC_RESPONSE_UNPROVISIONED_VF                    = 0x0D,
16 	XE_GUC_RESPONSE_INVALID_EVENT                       = 0x0E,
17 	XE_GUC_RESPONSE_NOT_SUPPORTED                       = 0x20,
18 	XE_GUC_RESPONSE_UNKNOWN_ACTION                      = 0x30,
19 	XE_GUC_RESPONSE_ACTION_ABORTED                      = 0x31,
20 	XE_GUC_RESPONSE_NO_PERMISSION                       = 0x40,
21 	XE_GUC_RESPONSE_CANNOT_COMPLETE_ACTION              = 0x41,
22 	XE_GUC_RESPONSE_INVALID_KLV_DATA                    = 0x50,
23 	XE_GUC_RESPONSE_INVALID_PARAMS                      = 0x60,
24 	XE_GUC_RESPONSE_INVALID_BUFFER_RANGE                = 0x70,
25 	XE_GUC_RESPONSE_INVALID_BUFFER                      = 0x71,
26 	XE_GUC_RESPONSE_INVALID_GGTT_ADDRESS                = 0x80,
27 	XE_GUC_RESPONSE_PENDING_ACTION                      = 0x90,
28 	XE_GUC_RESPONSE_INVALID_SIZE                        = 0x102,
29 	XE_GUC_RESPONSE_MALFORMED_KLV                       = 0x103,
30 	XE_GUC_RESPONSE_INVALID_KLV_KEY                     = 0x105,
31 	XE_GUC_RESPONSE_DATA_TOO_LARGE                      = 0x106,
32 	XE_GUC_RESPONSE_VF_MIGRATED                         = 0x107,
33 	XE_GUC_RESPONSE_NO_ATTRIBUTE_TABLE                  = 0x201,
34 	XE_GUC_RESPONSE_NO_DECRYPTION_KEY                   = 0x202,
35 	XE_GUC_RESPONSE_DECRYPTION_FAILED                   = 0x204,
36 	XE_GUC_RESPONSE_VGT_DISABLED                        = 0x300,
37 	XE_GUC_RESPONSE_CTB_FULL                            = 0x301,
38 	XE_GUC_RESPONSE_VGT_UNAUTHORIZED_REQUEST            = 0x302,
39 	XE_GUC_RESPONSE_CTB_INVALID                         = 0x303,
40 	XE_GUC_RESPONSE_CTB_NOT_REGISTERED                  = 0x304,
41 	XE_GUC_RESPONSE_CTB_IN_USE                          = 0x305,
42 	XE_GUC_RESPONSE_CTB_INVALID_DESC                    = 0x306,
43 	XE_GUC_RESPONSE_CTB_SOURCE_INVALID_DESCRIPTOR       = 0x30D,
44 	XE_GUC_RESPONSE_CTB_DESTINATION_INVALID_DESCRIPTOR  = 0x30E,
45 	XE_GUC_RESPONSE_INVALID_CONFIG_STATE                = 0x30F,
46 	XE_GUC_RESPONSE_STATUS_GENERIC_FAIL                 = 0xF000,
47 };
48 
49 enum xe_guc_load_status {
50 	XE_GUC_LOAD_STATUS_DEFAULT                          = 0x00,
51 	XE_GUC_LOAD_STATUS_START                            = 0x01,
52 	XE_GUC_LOAD_STATUS_ERROR_DEVID_BUILD_MISMATCH       = 0x02,
53 	XE_GUC_LOAD_STATUS_GUC_PREPROD_BUILD_MISMATCH       = 0x03,
54 	XE_GUC_LOAD_STATUS_ERROR_DEVID_INVALID_GUCTYPE      = 0x04,
55 	XE_GUC_LOAD_STATUS_HWCONFIG_START                   = 0x05,
56 	XE_GUC_LOAD_STATUS_HWCONFIG_DONE                    = 0x06,
57 	XE_GUC_LOAD_STATUS_HWCONFIG_ERROR                   = 0x07,
58 	XE_GUC_LOAD_STATUS_GDT_DONE                         = 0x10,
59 	XE_GUC_LOAD_STATUS_IDT_DONE                         = 0x20,
60 	XE_GUC_LOAD_STATUS_LAPIC_DONE                       = 0x30,
61 	XE_GUC_LOAD_STATUS_GUCINT_DONE                      = 0x40,
62 	XE_GUC_LOAD_STATUS_DPC_READY                        = 0x50,
63 	XE_GUC_LOAD_STATUS_DPC_ERROR                        = 0x60,
64 	XE_GUC_LOAD_STATUS_EXCEPTION                        = 0x70,
65 	XE_GUC_LOAD_STATUS_INIT_DATA_INVALID                = 0x71,
66 	XE_GUC_LOAD_STATUS_PXP_TEARDOWN_CTRL_ENABLED        = 0x72,
67 	XE_GUC_LOAD_STATUS_INVALID_INIT_DATA_RANGE_START,
68 	XE_GUC_LOAD_STATUS_MPU_DATA_INVALID                 = 0x73,
69 	XE_GUC_LOAD_STATUS_INIT_MMIO_SAVE_RESTORE_INVALID   = 0x74,
70 	XE_GUC_LOAD_STATUS_INVALID_INIT_DATA_RANGE_END,
71 
72 	XE_GUC_LOAD_STATUS_READY                            = 0xF0,
73 };
74 
75 enum xe_bootrom_load_status {
76 	XE_BOOTROM_STATUS_NO_KEY_FOUND                      = 0x13,
77 	XE_BOOTROM_STATUS_AES_PROD_KEY_FOUND                = 0x1A,
78 	XE_BOOTROM_STATUS_PROD_KEY_CHECK_FAILURE            = 0x2B,
79 	XE_BOOTROM_STATUS_RSA_FAILED                        = 0x50,
80 	XE_BOOTROM_STATUS_PAVPC_FAILED                      = 0x73,
81 	XE_BOOTROM_STATUS_WOPCM_FAILED                      = 0x74,
82 	XE_BOOTROM_STATUS_LOADLOC_FAILED                    = 0x75,
83 	XE_BOOTROM_STATUS_JUMP_PASSED                       = 0x76,
84 	XE_BOOTROM_STATUS_JUMP_FAILED                       = 0x77,
85 	XE_BOOTROM_STATUS_RC6CTXCONFIG_FAILED               = 0x79,
86 	XE_BOOTROM_STATUS_MPUMAP_INCORRECT                  = 0x7A,
87 	XE_BOOTROM_STATUS_EXCEPTION                         = 0x7E,
88 };
89 
90 #endif
91