]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: get card type, location from F/W
authorOmer Shpigelman <oshpigelman@habana.ai>
Sun, 3 May 2020 14:35:54 +0000 (17:35 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 19 May 2020 11:48:41 +0000 (14:48 +0300)
commitfca72fbb661f95bed34aff2b9eb8806acab4643e
treec1fcc261c48ab3d60d54815e0e10b07fdccdf46a
parentca62433f53d1ff48a4f77ef96332122558f90ad3
habanalabs: get card type, location from F/W

For Gaudi the driver gets two new additional properties from the F/W:
1. The card's type - PCI or PMC
2. The card's location in the Gaudi's box (relevant only for PMC).

The card's location is also passed to the user in the HW IP info structure
as it needs this property for establishing communication between Gaudis.

Signed-off-by: Omer Shpigelman <oshpigelman@habana.ai>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/habanalabs_ioctl.c
drivers/misc/habanalabs/include/armcp_if.h
include/uapi/misc/habanalabs.h