projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e0ca9f
)
habanalabs: check if asic secured with asic type
author
Ohad Sharabi
<osharabi@habana.ai>
Tue, 11 May 2021 13:02:41 +0000
(16:02 +0300)
committer
Oded Gabbay
<ogabbay@kernel.org>
Fri, 18 Jun 2021 12:23:40 +0000
(15:23 +0300)
Fix issue in which the input to the function is_asic_secured was device
PCI_IDS number instead of the asic_type enumeration.
Signed-off-by: Ohad Sharabi <osharabi@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/habanalabs_drv.c
patch
|
blob
|
history
diff --git
a/drivers/misc/habanalabs/common/habanalabs_drv.c
b/drivers/misc/habanalabs/common/habanalabs_drv.c
index dc92401e7a3f65085b0e1f291491a3d378abdf0f..df1e91f810cc22749f672e9fcfc6ddb8b9bbd9e2 100644
(file)
--- a/
drivers/misc/habanalabs/common/habanalabs_drv.c
+++ b/
drivers/misc/habanalabs/common/habanalabs_drv.c
@@
-309,7
+309,7
@@
int create_hdev(struct hl_device **dev, struct pci_dev *pdev,
if (pdev)
hdev->asic_prop.fw_security_disabled =
- !is_asic_secured(
pdev->devic
e);
+ !is_asic_secured(
hdev->asic_typ
e);
else
hdev->asic_prop.fw_security_disabled = true;