]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: check for DMA errors when clearing memory
authorMoti Haimovski <mhaimovski@habana.ai>
Wed, 24 Jun 2020 16:40:57 +0000 (19:40 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Fri, 24 Jul 2020 17:31:37 +0000 (20:31 +0300)
commit2d47f97a38d3f91f86985a876ecbb585181c9449
tree7b9be279142498bf05ec44e3ed6968c56db297b5
parente2b15c9817a59bf66326b021fc65769fb10adaf5
habanalabs: check for DMA errors when clearing memory

In GAUDI we use QMAN0 DMA for clearing the MMU memory region
at initialization. if this operation fails it places the DMA in an error
state and then when trying to initialize QMAN0 we fail and erroneously
assume its the QMAN that failed.

This commit adds a check and clear of such DMA errors at initialization so
we will have a better understanding of what went wrong.

Signed-off-by: Moti Haimovski <mhaimovski@habana.ai>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/gaudi/gaudi.c