Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Vitaly Margolin and committed by
Koby Elbaz
5295be6c b4fd8e56

+5
+3
drivers/accel/habanalabs/common/habanalabs_ioctl.c
··· 961 961 case HL_PASSTHROUGH_VERSIONS: 962 962 need_input_buff = false; 963 963 break; 964 + case HL_GET_ERR_COUNTERS_CMD: 965 + need_input_buff = true; 966 + break; 964 967 default: 965 968 return -EINVAL; 966 969 }
+2
include/linux/habanalabs/cpucp_if.h
··· 1425 1425 * from "pkt_subidx" field in struct cpucp_packet. 1426 1426 * 1427 1427 * HL_PASSTHROUGHT_VERSIONS - Fetch all firmware versions. 1428 + * HL_GET_ERR_COUNTERS_CMD - Command to get error counters 1428 1429 */ 1429 1430 enum hl_passthrough_type { 1430 1431 HL_PASSTHROUGH_VERSIONS, 1432 + HL_GET_ERR_COUNTERS_CMD, 1431 1433 }; 1432 1434 1433 1435 #endif /* CPUCP_IF_H */