accel/habanalabs/gaudi2: add interrupt affinity for user interrupts
authorDani Liberman <dliberman@habana.ai>
Thu, 21 Sep 2023 14:02:33 +0000 (17:02 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 26 Feb 2024 07:30:40 +0000 (09:30 +0200)
commite91c37f19404a1e36046d59f58e0c1fe1cc98cb9
tree8eff51d2ccfd1f9eeab292154ff237843d518e3c
parent40d47c5fb4f2a7c1ef168598f01bdcbd31ba4038
accel/habanalabs/gaudi2: add interrupt affinity for user interrupts

User interrupts are MSIx interrupts coming from Gaudi2, that have
specific range of IDs and are assigned to the sole use of the user
process that opened the Gaudi2 device (reminder: there can be only
a single user process running on Gaudi2 at any given time).

The interrupts are allocated and managed by the driver and therefore,
the user expects the driver to initialize them properly, which also
includes setting the affinity to the related CPU cores of the
device's NUMA node to get maximum performance.

Signed-off-by: Dani Liberman <dliberman@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/common/device.c
drivers/accel/habanalabs/common/habanalabs.h
drivers/accel/habanalabs/gaudi2/gaudi2.c