OSDN Git Service

habanalabs: support device memory memset > 4GB
authorOded Gabbay <oded.gabbay@gmail.com>
Thu, 16 May 2019 07:39:10 +0000 (10:39 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Thu, 16 May 2019 07:39:10 +0000 (10:39 +0300)
commitac742737715078963ae17e8417cfbd32f2825389
tree6861eb60b1a2e5c645dcf046d883ad2018c21e8d
parent460696ed4c07e00306bdd01fcbf5dc85a9b770f1
habanalabs: support device memory memset > 4GB

This patch adds support to the goya memset function to perform memset to
device memory with size larger then 4GB. In this case, we need to use
multiple LIN_DMA packets because a single packet supports up to 4GB.

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