]> 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)
commit66815b9af0b3d12d8626b14112794a2e6bbd4d77
treec1fcc261c48ab3d60d54815e0e10b07fdccdf46a
parent07a8e66df335f1e4ce450b95f103ee60de7780d5
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