mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
accel/habanalabs: add generic message type to get error counters
Add a new CPUCP generic message type to retrieve HBM, SRAM and critical error counters from the device. Signed-off-by: Vitaly Margolin <vitaly.margolin@intel.com> Reviewed-by: Koby Elbaz <koby.elbaz@intel.com> Signed-off-by: Koby Elbaz <koby.elbaz@intel.com>
This commit is contained in:
parent
b4fd8e56c9
commit
5295be6c4e
|
|
@ -961,6 +961,9 @@ static int send_fw_generic_request(struct hl_device *hdev, struct hl_info_args *
|
|||
case HL_PASSTHROUGH_VERSIONS:
|
||||
need_input_buff = false;
|
||||
break;
|
||||
case HL_GET_ERR_COUNTERS_CMD:
|
||||
need_input_buff = true;
|
||||
break;
|
||||
default:
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1425,9 +1425,11 @@ struct cpucp_monitor_dump {
|
|||
* from "pkt_subidx" field in struct cpucp_packet.
|
||||
*
|
||||
* HL_PASSTHROUGHT_VERSIONS - Fetch all firmware versions.
|
||||
* HL_GET_ERR_COUNTERS_CMD - Command to get error counters
|
||||
*/
|
||||
enum hl_passthrough_type {
|
||||
HL_PASSTHROUGH_VERSIONS,
|
||||
HL_GET_ERR_COUNTERS_CMD,
|
||||
};
|
||||
|
||||
#endif /* CPUCP_IF_H */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user