]> 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)
commite3af006ca6fdc1150595bbb672402f11d6da1b61
treede2606a8218f84c89d21e91d98ba2a47a1f7e0f8
parent8d0721544c52e06ef67d83b6666c87f7f05aa267
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