mirror of
https://github.com/torvalds/linux.git
synced 2024-11-30 16:11:38 +00:00
habanalabs/gaudi2: remove redundant firmware version check
Firmware 1.7 is the first official firmware, so no need to check if we are running a version below it. Signed-off-by: farah kassabri <fkassabri@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
This commit is contained in:
parent
fe3e88c947
commit
24c983c88f
@ -10358,10 +10358,9 @@ int gaudi2_send_device_activity(struct hl_device *hdev, bool open)
|
||||
{
|
||||
struct gaudi2_device *gaudi2 = hdev->asic_specific;
|
||||
|
||||
if (!(gaudi2->hw_cap_initialized & HW_CAP_CPU_Q) || hdev->fw_major_version < 37)
|
||||
if (!(gaudi2->hw_cap_initialized & HW_CAP_CPU_Q))
|
||||
return 0;
|
||||
|
||||
/* TODO: add check for FW version using minor ver once it's known */
|
||||
return hl_fw_send_device_activity(hdev, open);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user