]> asedeno.scripts.mit.edu Git - linux.git/commit
habanalabs: Update the device idle check
authorTomer Tayar <ttayar@habana.ai>
Mon, 1 Jul 2019 13:59:44 +0000 (13:59 +0000)
committerOded Gabbay <oded.gabbay@gmail.com>
Mon, 1 Jul 2019 13:59:44 +0000 (13:59 +0000)
commitac6183ae4b4ef58d6ff8b2ad3c8b876c408020dc
treeb91edf1cb773c48f4233b0ff81ab0ec018d1b3ac
parent4a0ce7764b09044fdb5f92dcf03ec5d8657296f4
habanalabs: Update the device idle check

The patch updates the device idle check:
- Add reading the DMA core status register, because it is possible that
  a QMAN has finished its work but the DMA itself is still running.
- Remove the MME shadow status check, as the MME ARCH status register
  includes the status of all MME shadows.

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/goya/goya.c
drivers/misc/habanalabs/include/goya/asic_reg/dma_ch_0_masks.h [new file with mode: 0644]
drivers/misc/habanalabs/include/goya/asic_reg/goya_regs.h