]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: retrieve DMA mask indication from firmware
authorOded Gabbay <oded.gabbay@gmail.com>
Sun, 29 Mar 2020 10:18:30 +0000 (13:18 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Sun, 17 May 2020 09:06:22 +0000 (12:06 +0300)
commit1b651aeb40d94db27f1d93b10862f9c02692669e
tree178d02e490c4c090e13c595ad30fb5edbb0245dc
parentee08b25d0ea424d4fdd4ff280f2055db20953f6b
habanalabs: retrieve DMA mask indication from firmware

Retrieve from the firmware the DMA mask value we need to set according to
the device's PCI controller configuration. This is needed when working on
POWER9 machines, as the device's PCI controller is configured in a
different way in those machines.

Reviewed-by: Tomer Tayar <ttayar@habana.ai>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/goya/goya.c
drivers/misc/habanalabs/habanalabs.h
drivers/misc/habanalabs/include/hl_boot_if.h
drivers/misc/habanalabs/pci.c