habanalabs: remove support to export dmabuf from handle
authorOhad Sharabi <osharabi@habana.ai>
Tue, 29 Nov 2022 12:02:07 +0000 (14:02 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Thu, 26 Jan 2023 08:56:21 +0000 (10:56 +0200)
commit303dad15ed8ccbb1702f3476642d8a43680f97b5
tree7aede3ad1fd28281b11c22ebbe6f37e9d84c0292
parent849591f675120bd0210aa5514dab36c424dbf650
habanalabs: remove support to export dmabuf from handle

The API to the user which allows exporting DMA buffer from handle is
deprecated here. It was never used as it is relevant only for Gaudi2,
and the user stack has yet to add support for dmabuf in Gaudi2.

Looking forward, a modified API to export DMA buffer for ASICs that
supports virtual memory will be added.

Until the new API will be ready- exporting DMA buffer will not be
supported for ASICs with virtual memory.

Signed-off-by: Ohad Sharabi <osharabi@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/habanalabs.h
drivers/misc/habanalabs/common/memory.c