habanalabs: add asic property of host dma offset
authorOded Gabbay <ogabbay@kernel.org>
Sat, 10 Jul 2021 18:12:45 +0000 (21:12 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Sun, 29 Aug 2021 06:47:47 +0000 (09:47 +0300)
commit2b5bbef5e88c6ffce59f935417e9b729afb44756
tree9afbee74731744eeac56f87adcb250d97c8c9e57
parentd18bf13e225258b6ee5325fc7cce48059c7b871f
habanalabs: add asic property of host dma offset

Each ASIC can have a different offset to add to a host dma address,
to enable the ASIC to access that host memory.

The usage for this can be common code so add this to the asic
property structure.

Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/habanalabs.h
drivers/misc/habanalabs/gaudi/gaudi.c
drivers/misc/habanalabs/goya/goya.c