xref: /aosp_15_r20/external/coreboot/src/soc/intel/common/block/include/intelblocks/cse_telemetry_v2.h (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #ifndef SOC_INTEL_COMMON_CSE_TELEMETRY_V2_H
4 #define SOC_INTEL_COMMON_CSE_TELEMETRY_V2_H
5 
6 enum cse_boot_perf_data_v2 {
7 	/* CSME ROM start execution  */
8 	PERF_DATA_CSME_ROM_START = 0,
9 
10 	/* EC Boot Load Done (CSME ROM starts main execution) */
11 	PERF_DATA_EC_BOOT_LOAD_DONE = 1,
12 
13 	/* CSME ROM completed execution / CSME RBE started */
14 	PERF_DATA_CSME_ROM_COMPLETED = 2,
15 
16 	/* CSME got ISSE Init Done indication from ISSE */
17 	PERF_DATA_CSME_GOT_ISSE_INIT_DONE = 3,
18 
19 	/* CSME RBE started SOC.PMC patch and payloads read from SPI flash */
20 	PERF_DATA_CSME_RBE_SOC_PMC_PATCH_LOADING_START = 4,
21 
22 	/* CSME RBE completed SOC.PMC patch and payloads read from SPI flash */
23 	PERF_DATA_CSME_RBE_SOC_PMC_PATCH_LOADING_COMPLETED = 5,
24 
25 	/* CSME RBE started pushing SOC.PMC patch and payloads */
26 	PERF_DATA_CSME_RBE_SOC_PMC_PATCH_PUSH_START = 6,
27 
28 	/* CSME RBE completed pushing SOC.PMC patch and payloads */
29 	PERF_DATA_CSME_RBE_SOC_PMC_PATCH_PUSH_COMPLETED = 7,
30 
31 	/* CSME RBE set "Boot Stall Done" indication to SOC.PMC */
32 	PERF_DATA_CSME_RBE_BOOT_STALL_DONE_TO_PMC = 8,
33 
34 	/* CSME RBE Started load IOE.PMC patch and payloads */
35 	PERF_DATA_CSME_RBE_IOE_PMC_PATCH_LOADING_START = 9,
36 
37 	/* CSME RBE completed to load IOE.PMC patch and payloads */
38 	PERF_DATA_CSME_RBE_IOE_PMC_PATCH_LOADING_COMPLETED = 10,
39 
40 	/* CSME RBE jumped to CSME Kernel */
41 	PERF_DATA_CSME_RBE_KERNEL_JUMP = 11,
42 
43 	/* CSME BUP start running  */
44 	PERF_DATA_CSME_BUP_START = 12,
45 
46 	/* CSME established IPC channel communication with ISSE */
47 	PERF_DATA_CSME_IPC_CHANNEL_FOR_ISSE_UP = 13,
48 
49 	/* ISSE FW initialization completed */
50 	PERF_DATA_ISSE_FW_INIT_DONE = 14,
51 
52 	/* PMC set PPS */
53 	PERF_DATA_PMC_SET_PPS = 15,
54 
55 	/* CSME got ICC_CFG_START message from PMC */
56 	PERF_DATA_CSME_GOT_ICC_CFG_START_MSG_FROM_PMC = 16,
57 
58 	/* PMC got PCH_PWROK */
59 	PERF_DATA_PMC_GOT_PCH_PWROK = 17,
60 
61 	/* CSME set "Host Boot Prep Done" indication to PMC  */
62 	PERF_DATA_CSME_HOST_BOOT_PREP_DONE = 18,
63 
64 	/* CSME starts PHYs loading - phase 1 - USB, PCIe */
65 	PERF_DATA_CSME_PHASE1_PHY_LOADING_START = 19,
66 
67 	/* CSME completed phase 1 PHYs loading - USB, PCIe */
68 	PERF_DATA_CSME_PHASE1_PHY_LOADING_COMPLETED = 20,
69 
70 	/* PMC indicated CSME that xxPWRGOOD was asserted */
71 	PERF_DATA_PMC_PWRGOOD_ASSERTED = 21,
72 
73 	/* PMC indicated CSME that SYS_PWROK was asserted */
74 	PERF_DATA_PMC_SYS_PWROK_ASSERTED = 22,
75 
76 	/* ISSE sent IPC message to CSME indicating PUnit load completed */
77 	PERF_DATA_ISSE_PUNIT_LOAD_COMPLETED = 23,
78 
79 	/* PMC indicates CSME that xxPLTRST was de-asserted */
80 	PERF_DATA_PMC_PLTRST_DEASSERTED = 24,
81 
82 	/* PMC sent "CPU_BOOT_CONFIG" start message to CSME */
83 	PERF_DATA_PMC_CPU_BOOT_CONFIG_START = 25,
84 
85 	/* CSME starts PHYs loading - phase 2 - UFS */
86 	PERF_DATA_CSME_PHASE2_PHY_LOADING_START = 26,
87 
88 	/* CSME completed phase 2 PHYs loading - UFS */
89 	PERF_DATA_CSME_PHASE2_PHY_LOADING_COMPLETED = 27,
90 
91 	/* CSME sent "CPU_BOOT_CONFIG" done message to PMC */
92 	PERF_DATA_CSME_CPU_BOOT_CONFIG_DONE = 28,
93 
94 	/* PMC sent "Core Reset Done Ack - Sent" message to CSME */
95 	PERF_DATA_PMC_SENT_CRDA = 29,
96 
97 	/* ISSE sent IPC message to CSME indicating DMU load completed */
98 	PERF_DATA_ISSE_DMU_LOAD_COMPLETED = 30,
99 
100 	/* ACM Active indication - ACM started its execution */
101 	PERF_DATA_ACM_START = 31,
102 
103 	/* ACM Done indication - ACM completed execution */
104 	PERF_DATA_ACM_DONE = 32,
105 
106 	/* BIOS sent "Get_BIOS_Seed" message to CSME */
107 	PERF_DATA_BIOS_SEED_MSG_RECEIVED = 33,
108 
109 	/* CSME responded to "Get_BIOS_Seed" message */
110 	PERF_DATA_BIOS_SEED_MSG_REPLIED = 34,
111 
112 	/* BIOS sent DRAM Init Done message */
113 	PERF_DATA_BIOS_DRAM_INIT_DONE = 35,
114 
115 	/* CSME sent DRAM Init Done message back to BIOS */
116 	PERF_DATA_CSME_DRAM_INIT_DONE = 36,
117 
118 	/* CSME started loading TCSS components (IOM, NPHY, TBT) */
119 	PERF_DATA_CSME_LOAD_TCSS_START = 37,
120 
121 	/* CSME start loading ACE */
122 	PERF_DATA_CSME_LOAD_ACE_START = 38,
123 
124 	/* CSME started loading eDP PHY */
125 	PERF_DATA_CSME_LOAD_EDP_PHY_START = 39,
126 
127 	/* CSME completed loading eDP PHY */
128 	PERF_DATA_CSME_LOAD_EDP_PHY_COMPLETED = 40,
129 
130 	/* BIOS sent "Core BIOS Done" message to CSME */
131 	PERF_DATA_BIOS_BIOS_CORE_DONE = 41,
132 
133 	/* CSME sent "Core BIOS Done" ack message back to BIOS */
134 	PERF_DATA_CSME_BIOS_CORE_DONE = 42,
135 
136 	/* BIOS sent "End Of Post" message to CSME */
137 	PERF_DATA_BIOS_END_OF_POST = 43,
138 
139 	/* CSME sent "End Of Post" ack message back to BIOS */
140 	PERF_DATA_CSME_END_OF_POST = 44,
141 
142 	/* CSME started loading ISH Bringup module */
143 	PERF_DATA_PERF_DATA_CSME_LOAD_ISH_BRINGUP_START = 45,
144 
145 	/* CSME completed loading ISH Bringup module */
146 	PERF_DATA_CSME_LOAD_ISH_BRINGUP_DONE = 46,
147 
148 	/* CSME started loading ISH Main module */
149 	PERF_DATA_CSME_LOAD_ISH_MAIN_START = 47,
150 
151 	/* CSME completed loading Main module */
152 	PERF_DATA_CSME_LOAD_ISH_MAIN_DONE = 48,
153 
154 	/* CSME reached Transition Complete */
155 	PERF_DATA_CSME_TRANSITION_COMPLETE = 49,
156 
157 	/* 50 - 62 Reserved */
158 
159 	/* Timestamp when CSME responded to BupGetBootData message itself */
160 	PERF_DATA_CSME_GET_PERF_RESPONSE = 63,
161 };
162 
163 #endif // SOC_INTEL_COMMON_CSE_TELEMETRY_V2_H
164