linux-stable/drivers/misc/habanalabs
Oded Gabbay 75b3cb2bb0 habanalabs: add uapi to retrieve device utilization
Users and sysadmins usually want to know what is the device utilization as
a level 0 indication if they are efficiently using the device.

Add a new opcode to the INFO IOCTL that will return the device utilization
over the last period of 100-1000ms. The return value is 0-100,
representing as percentage the total utilization rate.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Reviewed-by: Omer Shpigelman <oshpigelman@habana.ai>
2019-09-05 14:55:27 +03:00
..
goya habanalabs: Make the Coresight timestamp perpetual 2019-09-05 14:55:27 +03:00
include habanalabs: add uapi to retrieve device utilization 2019-09-05 14:55:27 +03:00
asid.c habanalabs: initialize device CPU queues after MMU init 2019-05-29 14:24:51 +03:00
command_buffer.c habanalabs: rename functions to improve code readability 2019-05-01 11:47:04 +03:00
command_submission.c habanalabs: add uapi to retrieve device utilization 2019-09-05 14:55:27 +03:00
context.c habanalabs: rename user_ctx as compute_ctx 2019-09-05 14:55:26 +03:00
debugfs.c habanalabs: replace __cpu_to_le32/64 with cpu_to_le32/64 2019-09-05 14:55:27 +03:00
device.c habanalabs: add uapi to retrieve device utilization 2019-09-05 14:55:27 +03:00
firmware_if.c habanalabs: fix host memory polling in BE architecture 2019-07-29 11:40:25 +03:00
habanalabs.h habanalabs: add uapi to retrieve device utilization 2019-09-05 14:55:27 +03:00
habanalabs_drv.c habanalabs: create two char devices per ASIC 2019-09-05 14:55:26 +03:00
habanalabs_ioctl.c habanalabs: add uapi to retrieve device utilization 2019-09-05 14:55:27 +03:00
hw_queue.c habanalabs: add uapi to retrieve device utilization 2019-09-05 14:55:27 +03:00
hwmon.c habanalabs: replace __le32_to_cpu with le32_to_cpu 2019-09-05 14:55:27 +03:00
irq.c habanalabs: replace __le32_to_cpu with le32_to_cpu 2019-09-05 14:55:27 +03:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
memory.c habanalabs: fix DRAM usage accounting on context tear down 2019-08-12 09:01:10 +03:00
mmu.c habanalabs: add WARN in case of bad MMU mapping 2019-05-31 18:25:20 +03:00
pci.c habanalabs: increase PCI ELBI timeout for Palladium 2019-05-13 14:44:50 +03:00
sysfs.c habanalabs: replace __cpu_to_le32/64 with cpu_to_le32/64 2019-09-05 14:55:27 +03:00