File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 190
190
#define OPAL_NPU_INIT_CONTEXT 146
191
191
#define OPAL_NPU_DESTROY_CONTEXT 147
192
192
#define OPAL_NPU_MAP_LPAR 148
193
- #define OPAL_LAST 148
193
+ #define OPAL_IMC_COUNTERS_INIT 149
194
+ #define OPAL_IMC_COUNTERS_START 150
195
+ #define OPAL_IMC_COUNTERS_STOP 151
196
+ #define OPAL_LAST 151
194
197
195
198
/* Device tree flags */
196
199
@@ -1084,6 +1087,13 @@ enum {
1084
1087
XIVE_DUMP_EMU_STATE = 5 ,
1085
1088
};
1086
1089
1090
+ /* "type" argument options for OPAL_IMC_COUNTERS_* calls */
1091
+ enum {
1092
+ OPAL_IMC_COUNTERS_NEST = 1 ,
1093
+ OPAL_IMC_COUNTERS_CORE = 2 ,
1094
+ };
1095
+
1096
+
1087
1097
#endif /* __ASSEMBLY__ */
1088
1098
1089
1099
#endif /* __OPAL_API_H */
Original file line number Diff line number Diff line change @@ -268,6 +268,11 @@ int64_t opal_xive_free_irq(uint32_t girq);
268
268
int64_t opal_xive_sync (uint32_t type , uint32_t id );
269
269
int64_t opal_xive_dump (uint32_t type , uint32_t id );
270
270
271
+ int64_t opal_imc_counters_init (uint32_t type , uint64_t address ,
272
+ uint64_t cpu_pir );
273
+ int64_t opal_imc_counters_start (uint32_t type , uint64_t cpu_pir );
274
+ int64_t opal_imc_counters_stop (uint32_t type , uint64_t cpu_pir );
275
+
271
276
/* Internal functions */
272
277
extern int early_init_dt_scan_opal (unsigned long node , const char * uname ,
273
278
int depth , void * data );
Original file line number Diff line number Diff line change @@ -310,3 +310,6 @@ OPAL_CALL(opal_xive_dump, OPAL_XIVE_DUMP);
310
310
OPAL_CALL(opal_npu_init_context, OPAL_NPU_INIT_CONTEXT);
311
311
OPAL_CALL(opal_npu_destroy_context, OPAL_NPU_DESTROY_CONTEXT);
312
312
OPAL_CALL(opal_npu_map_lpar, OPAL_NPU_MAP_LPAR);
313
+ OPAL_CALL(opal_imc_counters_init, OPAL_IMC_COUNTERS_INIT);
314
+ OPAL_CALL(opal_imc_counters_start, OPAL_IMC_COUNTERS_START);
315
+ OPAL_CALL(opal_imc_counters_stop, OPAL_IMC_COUNTERS_STOP);
You can’t perform that action at this time.
0 commit comments