Skip to content

Commit

Permalink
habanalabs: check if asic secured with asic type
Browse files Browse the repository at this point in the history
[ Upstream commit 190ec49 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
osharabi authored and gregkh committed Jul 20, 2021
1 parent dac25ad commit 4bf6fcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/misc/habanalabs/common/habanalabs_drv.c
Expand Up @@ -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->device);
!is_asic_secured(hdev->asic_type);
else
hdev->asic_prop.fw_security_disabled = true;

Expand Down

0 comments on commit 4bf6fcd

Please sign in to comment.