summaryrefslogtreecommitdiff
path: root/drivers/misc/habanalabs/common/sysfs.c
diff options
context:
space:
mode:
authorOded Gabbay <ogabbay@kernel.org>2022-06-27 22:32:07 +0300
committerOded Gabbay <ogabbay@kernel.org>2022-07-12 09:09:28 +0300
commit6b4e8a12b2b9a5385b89d25ac450deddb8ed9a62 (patch)
treede2606a8218f84c89d21e91d98ba2a47a1f7e0f8 /drivers/misc/habanalabs/common/sysfs.c
parent8aa1e1e605535a0ba7fb80aeeaf94f875a9474c3 (diff)
downloadlinux-6b4e8a12b2b9a5385b89d25ac450deddb8ed9a62.tar.xz
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>
Diffstat (limited to 'drivers/misc/habanalabs/common/sysfs.c')
-rw-r--r--drivers/misc/habanalabs/common/sysfs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/misc/habanalabs/common/sysfs.c b/drivers/misc/habanalabs/common/sysfs.c
index da8181068895..edebdf960785 100644
--- a/drivers/misc/habanalabs/common/sysfs.c
+++ b/drivers/misc/habanalabs/common/sysfs.c
@@ -245,6 +245,12 @@ static ssize_t device_type_show(struct device *dev,
case ASIC_GAUDI_SEC:
str = "GAUDI SEC";
break;
+ case ASIC_GAUDI2:
+ str = "GAUDI2";
+ break;
+ case ASIC_GAUDI2_SEC:
+ str = "GAUDI2 SEC";
+ break;
default:
dev_err(hdev->dev, "Unrecognized ASIC type %d\n",
hdev->asic_type);