src: add debug API to support GPU core dump
Functions to API added to extract the following information from KFD Runtime information, device info and queues snapshot. Signed-off-by: Alex Sierra <Alex.Sierra@amd.com> Change-Id: If995ecc54497ab61189bb0f209c64af0bbb0f56f
Tá an tiomantas seo le fáil i:
1 tuismitheoir
5e0a32d7b3
tiomantas
0cbf26c148
3 comhad athraithe
+205
Níor tháinig aon chomhaid le do chuardach
@@ -734,6 +734,46 @@ hsaKmtGetRuntimeCapabilities(
|
||||
HSAuint32 *caps_mask // OUT
|
||||
);
|
||||
|
||||
/**
|
||||
Enable debug trap.
|
||||
*/
|
||||
HSAKMT_STATUS
|
||||
HSAKMTAPI
|
||||
hsaKmtDbgEnable(
|
||||
void **runtime_info, //Out
|
||||
HSAuint32 *data_size //Out
|
||||
);
|
||||
|
||||
/**
|
||||
Disable debug trap.
|
||||
*/
|
||||
HSAKMT_STATUS
|
||||
HSAKMTAPI
|
||||
hsaKmtDbgDisable(void);
|
||||
|
||||
/**
|
||||
Get device snapshot.
|
||||
*/
|
||||
HSAKMT_STATUS
|
||||
HSAKMTAPI
|
||||
hsaKmtDbgGetDeviceData(
|
||||
void **data, //Out
|
||||
HSAuint32 *n_entries, //Out
|
||||
HSAuint32 *entry_size //Out
|
||||
);
|
||||
|
||||
/**
|
||||
Get queues snapshot.
|
||||
*/
|
||||
HSAKMT_STATUS
|
||||
HSAKMTAPI
|
||||
hsaKmtDbgGetQueueData(
|
||||
void **data, //Out
|
||||
HSAuint32 *n_entries, //Out
|
||||
HSAuint32 *entry_size, //Out
|
||||
bool suspend_queues //In
|
||||
);
|
||||
|
||||
/**
|
||||
Gets GPU and CPU clock counters for particular Node
|
||||
*/
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir