]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
habanalabs: don't limit packet size for device CPU
authorOded Gabbay <oded.gabbay@gmail.com>
Thu, 16 May 2019 22:08:23 +0000 (01:08 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Thu, 16 May 2019 22:08:23 +0000 (01:08 +0300)
commitcbb10f1e4a722511f668d60f0b467327215f90a2
treed2c2cd38801b5012f3a96ae3406e1f107955d230
parentac742737715078963ae17e8417cfbd32f2825389
habanalabs: don't limit packet size for device CPU

This patch removes a limitation on the maximum packet size that is read by
the device CPU as that limitation is not needed.

Therefore, the patch also removes an elaborate calculation that is based
on this limitation which is also not needed now. Instead, use a fixed
value for the memory pool size of the packets.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/firmware_if.c
drivers/misc/habanalabs/goya/goya.c
drivers/misc/habanalabs/habanalabs.h