linux/drivers/misc/habanalabs/gaudi
Oded Gabbay a9d4ef6434 habanalabs: fix dma_addr passed to dma_mmap_coherent
When doing dma_alloc_coherent in the driver, we add a certain hard-coded
offset to the DMA address before returning to the callee function. This
offset is needed when our device use this DMA address to perform
outbound transactions to the host.

However, if we want to map the DMA'able memory to the user via
dma_mmap_coherent(), we need to pass the original dma address, without
this offset. Otherwise, we will get erronouos mapping.

Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
2021-01-12 14:59:36 +02:00
..
Makefile habanalabs: fix up absolute include instructions 2020-07-29 08:15:50 +02:00
gaudi.c habanalabs: fix dma_addr passed to dma_mmap_coherent 2021-01-12 14:59:36 +02:00
gaudiP.h habanalabs: remove generic gaudi get_pll_freq function 2020-12-28 08:47:38 +02:00
gaudi_coresight.c habanalabs: adjust pci controller init to new firmware 2020-12-28 08:47:39 +02:00
gaudi_hwmgr.c habanalabs: add 'needs reset' state in driver 2020-11-30 10:47:33 +02:00
gaudi_security.c habanalabs/gaudi: add support for FW security 2020-11-30 10:47:31 +02:00