accel/habanalabs: allow getting HL_INFO_DRAM_USAGE during soft-reset
authorDafna Hirschfeld <dhirschfeld@habana.ai>
Mon, 27 Feb 2023 06:22:54 +0000 (08:22 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Wed, 15 Mar 2023 11:29:15 +0000 (13:29 +0200)
commitc7ac65c881eae0358b91bd2045ab81b452d2e716
treed4937660e0a3560309f6b3903e110053e5bbebea
parent9732d5d0d4813eef76f6904a1da80372924081a7
accel/habanalabs: allow getting HL_INFO_DRAM_USAGE during soft-reset

We can allow userspace to query the dram usage during soft-reset.

Signed-off-by: Dafna Hirschfeld <dhirschfeld@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/common/habanalabs_ioctl.c