accel/habanalabs: modify pci health check
authorOfir Bitton <obitton@habana.ai>
Mon, 12 Feb 2024 12:35:24 +0000 (14:35 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 26 Feb 2024 07:47:32 +0000 (09:47 +0200)
commitfa58b59493665e81454079ad372b11a0ed34bd2d
treebd93c7392dbddbc86b16f5280035bc5efa69b77e
parentc517068349836ae8c090abc1f1a9b540e4370331
accel/habanalabs: modify pci health check

Today we read PCI VENDOR-ID in order to make sure PCI link is
healthy. Apparently the VENDOR-ID might be stored on host and
hence, when we read it we might not access the PCI bus.
In order to make sure PCI health check is reliable, we will start
checking the DEVICE-ID instead.

Signed-off-by: Ofir Bitton <obitton@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/common/device.c