]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
habanalabs: remove redundant CB size adjustment
authorOded Gabbay <oded.gabbay@gmail.com>
Wed, 8 May 2019 22:44:13 +0000 (01:44 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Wed, 8 May 2019 22:44:13 +0000 (01:44 +0300)
commitcbe722e41684930c485fd09a161de44e444731f6
tree771304bfcaca1059659884ed36d0a204aebd9629
parent0c169b8afd1def63d95702cad45a0908c643a8c8
habanalabs: remove redundant CB size adjustment

Driver-initiated DMA jobs are synchronized jobs, i.e. the driver polls on
fence object until the job is finished. There is no interrupt from the
device. Therefore, no need to add space for 2 * msg_prot packets to the
end of the CB. Only a single msg_prot is needed (to write the fence).

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