summaryrefslogtreecommitdiff
path: root/drivers/misc/habanalabs/common/device.c
diff options
context:
space:
mode:
authorfarah kassabri <fkassabri@habana.ai>2022-08-17 17:43:43 +0300
committerOded Gabbay <ogabbay@kernel.org>2022-09-19 15:08:37 +0300
commit4745b2f0d0d4b291ec69619c815f53fd8a968d9a (patch)
tree2b3fdedc710fb13b32125d15fbe1483caeddb4de /drivers/misc/habanalabs/common/device.c
parent0855bf8b17374fef702844664af70454fa6951ef (diff)
downloadlinux-4745b2f0d0d4b291ec69619c815f53fd8a968d9a.tar.xz
habanalabs: send device active message to f/w
As part of the RAS that is done by the f/w, we should send a message to the f/w when a user either acquires or releases the device. Signed-off-by: farah kassabri <fkassabri@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/misc/habanalabs/common/device.c')
-rw-r--r--drivers/misc/habanalabs/common/device.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/habanalabs/common/device.c b/drivers/misc/habanalabs/common/device.c
index 230b7eeef962..d6df0bd55e9f 100644
--- a/drivers/misc/habanalabs/common/device.c
+++ b/drivers/misc/habanalabs/common/device.c
@@ -470,6 +470,8 @@ static int hl_device_release(struct inode *inode, struct file *filp)
hdev->last_open_session_duration_jif =
jiffies - hdev->last_successful_open_jif;
+ hdev->asic_funcs->send_device_activity(hdev, false);
+
return 0;
}