]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: enable gaudi2 code in driver
authorOded Gabbay <ogabbay@kernel.org>
Mon, 27 Jun 2022 19:32:07 +0000 (22:32 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Tue, 12 Jul 2022 06:09:28 +0000 (09:09 +0300)
commita9e90f1eded50a43c3de406ccecda480d9dfc565
treede2606a8218f84c89d21e91d98ba2a47a1f7e0f8
parent90669370fa8800d911d14dbe21f5531381502801
habanalabs: enable gaudi2 code in driver

Enable the Gaudi2 ASIC code in the pci probe callback of the driver so
the driver will handle Gaudi2 ASICs.

Add the PCI ID to the PCI table and add the ASIC enum value to all
relevant places.

Fixup the device parameters initialization for Gaudi2.

Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/device.c
drivers/misc/habanalabs/common/habanalabs_drv.c
drivers/misc/habanalabs/common/sysfs.c