summaryrefslogtreecommitdiff
path: root/drivers/misc/habanalabs/include/hl_boot_if.h
diff options
context:
space:
mode:
authorOded Gabbay <oded.gabbay@gmail.com>2020-03-29 13:18:30 +0300
committerOded Gabbay <oded.gabbay@gmail.com>2020-05-17 12:06:22 +0300
commitcb056b9fd5138748dca7b679ea5f16b6bd24fb6c (patch)
tree178d02e490c4c090e13c595ad30fb5edbb0245dc /drivers/misc/habanalabs/include/hl_boot_if.h
parentc8aee597bbe2eb7458376cc1116ea4e5a3537764 (diff)
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>
Diffstat (limited to 'drivers/misc/habanalabs/include/hl_boot_if.h')
-rw-r--r--drivers/misc/habanalabs/include/hl_boot_if.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/misc/habanalabs/include/hl_boot_if.h b/drivers/misc/habanalabs/include/hl_boot_if.h
index 660550604362..7106315fc92e 100644
--- a/drivers/misc/habanalabs/include/hl_boot_if.h
+++ b/drivers/misc/habanalabs/include/hl_boot_if.h
@@ -9,6 +9,7 @@
#define HL_BOOT_IF_H
#define LKD_HARD_RESET_MAGIC 0xED7BD694
+#define HL_POWER9_HOST_MAGIC 0x1DA30009
/*
* CPU error bits in BOOT_ERROR registers