linux_dsm_epyc7002/drivers/misc/habanalabs/goya
Oded Gabbay 2f2a4c04b8 habanalabs: fix dma_addr passed to dma_mmap_coherent
[ Upstream commit a9d4ef643430d638de1910377f50e0d492d85a43 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-02-07 15:37:14 +01:00
..
goya_coresight.c habanalabs: proper handling of alloc size in coresight 2020-08-22 12:47:57 +03:00
goya_hwmgr.c habanalabs: fix pm manual->auto in GOYA 2020-03-24 10:54:17 +02:00
goya_security.c habanalabs: fix up absolute include instructions 2020-07-29 08:15:50 +02:00
goya.c habanalabs: fix dma_addr passed to dma_mmap_coherent 2021-02-07 15:37:14 +01:00
goyaP.h habanalabs: fix kernel pointer type 2020-11-04 08:56:06 +02:00
Makefile habanalabs: fix up absolute include instructions 2020-07-29 08:15:50 +02:00