accel/habanalabs: add support for Gaudi2C device
authorOded Gabbay <ogabbay@kernel.org>
Mon, 30 Oct 2023 10:23:57 +0000 (12:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Feb 2024 20:14:29 +0000 (20:14 +0000)
commit9aa2cba7a275b2c0b10c95ea60aced015a5535e1
treecf544285088eac9b6a2cf47bcf6e45bccb32dbc5
parent3075d01e2719d9d40bbf5ae3086382de51239dd6
accel/habanalabs: add support for Gaudi2C device

[ Upstream commit 42422993cf28d456778ee9168d73758ec037cd51 ]

Gaudi2 with PCI revision ID with the value of '3' represents Gaudi2C
device and should be detected and initialized as Gaudi2.

Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/accel/habanalabs/common/device.c
drivers/accel/habanalabs/common/habanalabs.h
drivers/accel/habanalabs/common/habanalabs_drv.c
drivers/accel/habanalabs/common/mmu/mmu.c
drivers/accel/habanalabs/common/sysfs.c
drivers/accel/habanalabs/include/hw_ip/pci/pci_general.h