]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
habanalabs: configure maximum queues per asic
authorOfir Bitton <obitton@habana.ai>
Tue, 23 Jun 2020 11:50:39 +0000 (14:50 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Fri, 24 Jul 2020 17:31:36 +0000 (20:31 +0300)
commit3abc99bb7dcbc0704972dae6c6ba92fbb1fbf191
treee43e3d2b0405afc9a8c7ccb744679d81e83f4716
parent12ae3133d2df4d5091cbf6a966a98f5e07c31b56
habanalabs: configure maximum queues per asic

Currently the amount of maximum queues is statically configured.
Using a static value is causing redundunt cycles when traversing
all queues and consumes more memory than actually needed.
In this patch we configure each asic with the exact number of
queues needed.

Signed-off-by: Ofir Bitton <obitton@habana.ai>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/command_submission.c
drivers/misc/habanalabs/gaudi/gaudi.c
drivers/misc/habanalabs/goya/goya.c
drivers/misc/habanalabs/goya/goyaP.h
drivers/misc/habanalabs/habanalabs.h
drivers/misc/habanalabs/hw_queue.c