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)
commitcb056b9fd5138748dca7b679ea5f16b6bd24fb6c
tree178d02e490c4c090e13c595ad30fb5edbb0245dc
parentc8aee597bbe2eb7458376cc1116ea4e5a3537764
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