linux_dsm_epyc7002/drivers/misc/habanalabs/common
Tomer Tayar eb4154fb61 habanalabs: Call put_pid() when releasing control device
[ Upstream commit 27ac5aada024e0821c86540ad18f37edadd77d5e ]

The refcount of the "hl_fpriv" structure is not used for the control
device, and thus hl_hpriv_put() is not called when releasing this
device.
This results with no call to put_pid(), so add it explicitly in
hl_device_release_ctrl().

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-30 14:31:50 +02:00
..
asid.c
command_buffer.c habanalabs: fix kernel pointer type 2020-11-04 08:56:06 +02:00
command_submission.c habanalabs: allow to wait on CS without sleep 2020-09-22 18:49:53 +03:00
context.c habanalabs: add notice of device not idle 2020-09-25 14:44:21 +03:00
debugfs.c habanalabs: Save context in a command buffer object 2020-09-22 18:49:54 +03:00
device.c habanalabs: Call put_pid() when releasing control device 2021-03-30 14:31:50 +02:00
firmware_if.c habanalabs: zero pci counters packet before submit to FW 2021-02-07 15:37:17 +01:00
habanalabs_drv.c habanalabs: register to pci shutdown callback 2021-01-19 18:27:25 +01:00
habanalabs_ioctl.c habanalabs: fix backward compatibility of idle check 2021-02-07 15:37:17 +01:00
habanalabs.h habanalabs: fix kernel pointer type 2020-11-04 08:56:06 +02:00
hw_queue.c habanalabs: fix kernel pointer type 2020-11-04 08:56:06 +02:00
hwmon.c habanalabs: replace armcp with the generic cpucp 2020-09-22 18:49:51 +03:00
irq.c habanalabs: fix kernel pointer type 2020-11-04 08:56:06 +02:00
Makefile habanalabs: refactor MMU as device-oriented 2020-09-22 18:49:53 +03:00
memory.c habanalabs: free host huge va_range if not used 2020-11-30 10:30:16 +02:00
mmu_v1.c habanalabs: refactor MMU as device-oriented 2020-09-22 18:49:53 +03:00
mmu.c habanalabs: refactor MMU as device-oriented 2020-09-22 18:49:53 +03:00
pci.c habanalabs: adjust pci controller init to new firmware 2021-01-19 18:27:24 +01:00
sysfs.c habanalabs: replace armcp with the generic cpucp 2020-09-22 18:49:51 +03:00