aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorTomer Tayar <[email protected]>2023-01-22 12:17:02 +0200
committerOded Gabbay <[email protected]>2023-03-15 13:29:12 +0200
commit09524eb8824e102fb57210967bc9d61d7469121c (patch)
treef509d999451adad7519234031aba5965c157e334 /tools/perf/scripts/python/netdev-times.py
parentd43bce6e762f25b25685487630510452feaf7362 (diff)
accel/habanalabs: enforce release order of compute device and dma-buf
When user closes the compute device file descriptor without closing a dma-buf file descriptor, the device will be considered as in use, leading to hard reset and killing the user process, to ensure the release of the dma-buf. Same thing will happen if user first releases the compute device file and only then the dma-buf. The implication of this is the duration of hard reset, during which the device cannot be reacquired. Moreover, this behavior adds a constraint on a user process to follow this order of release operations. To avoid killing the user process and to remove this constraint, enforce the correct order of release operations inside the driver, by incrementing the device file refcount for any dma-buf until it is released. Signed-off-by: Tomer Tayar <[email protected]> Reviewed-by: Oded Gabbay <[email protected]> Signed-off-by: Oded Gabbay <[email protected]> Reviewed-by: Stanislaw Gruszka <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions