linux/drivers/accel/habanalabs/common
farah kassabri ac5af9900f habanalabs: fix bug in timestamps registration code
Protect re-using the same timestamp buffer record before actually
adding it to the to interrupt wait list.
Mark ts buff offset as in use in the spinlock protection area of the
interrupt wait list to avoid getting in the re-use section in
ts_buff_get_kernel_ts_record before adding the node to the list.
this scenario might happen when multiple threads are racing on
same offset and one thread could set data in the ts buff in
ts_buff_get_kernel_ts_record then the other thread takes over
and get to ts_buff_get_kernel_ts_record and we will try
to re-use the same ts buff offset then we will try to
delete a non existing node from the list.

Signed-off-by: farah kassabri <fkassabri@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
2023-01-26 11:52:12 +02:00
..
mmu habanalabs: remove unnecessary (void*) conversions 2023-01-26 11:52:12 +02:00
pci habanalabs: trace LBW reads/writes 2023-01-26 11:52:11 +02:00
asid.c
command_buffer.c habanalabs: move some prints to debug level 2023-01-26 11:52:10 +02:00
command_submission.c habanalabs: fix bug in timestamps registration code 2023-01-26 11:52:12 +02:00
context.c
debugfs.c
decoder.c
device.c habanalabs: extend fatal messages to contain PCI info 2023-01-26 11:52:12 +02:00
firmware_if.c habanalabs: add set engines masks ASIC function 2023-01-26 11:52:11 +02:00
habanalabs_drv.c habanalabs: protect access to dynamic mem 'user_mappings' 2023-01-26 11:52:11 +02:00
habanalabs_ioctl.c habanalabs: check pad and reserved fields in ioctls 2023-01-26 11:52:12 +02:00
habanalabs.h habanalabs: add set engines masks ASIC function 2023-01-26 11:52:11 +02:00
hw_queue.c
hwmon.c
irq.c
Makefile
memory_mgr.c habanalabs: verify that kernel CB is destroyed only once 2023-01-26 11:52:10 +02:00
memory.c habanalabs: bugs fixes in timestamps buff alloc 2023-01-26 11:52:12 +02:00
security.c
state_dump.c
sysfs.c