Commit ec484931 authored by Dani Liberman's avatar Dani Liberman Committed by Oded Gabbay

accel/habanalabs: change razwi handle after fw fix

FW had one data route for tpc0 and tpc1 when running in secured mode
and a different one when running without secured mode. After fw fixed
this issue, both mode have the same data path.
Signed-off-by: default avatarDani Liberman <dliberman@habana.ai>
Reviewed-by: default avatarOded Gabbay <ogabbay@kernel.org>
Signed-off-by: default avatarOded Gabbay <ogabbay@kernel.org>
parent e1ef053e
...@@ -3547,6 +3547,10 @@ struct hl_ioctl_desc { ...@@ -3547,6 +3547,10 @@ struct hl_ioctl_desc {
hl_ioctl_t *func; hl_ioctl_t *func;
}; };
static inline bool hl_is_fw_ver_below_1_9(struct hl_device *hdev)
{
return (hdev->fw_major_version < 42);
}
/* /*
* Kernel module functions that can be accessed by entire module * Kernel module functions that can be accessed by entire module
......
...@@ -7973,10 +7973,8 @@ static void gaudi2_ack_module_razwi_event_handler(struct hl_device *hdev, ...@@ -7973,10 +7973,8 @@ static void gaudi2_ack_module_razwi_event_handler(struct hl_device *hdev,
case RAZWI_TPC: case RAZWI_TPC:
hbw_rtr_id = gaudi2_tpc_initiator_hbw_rtr_id[module_idx]; hbw_rtr_id = gaudi2_tpc_initiator_hbw_rtr_id[module_idx];
/* TODO : remove this check and depend only on tpc routers table if (hl_is_fw_ver_below_1_9(hdev) &&
* when SW-118828 is resolved !hdev->asic_prop.fw_security_enabled &&
*/
if (!hdev->asic_prop.fw_security_enabled &&
((module_idx == 0) || (module_idx == 1))) ((module_idx == 0) || (module_idx == 1)))
lbw_rtr_id = DCORE0_RTR0; lbw_rtr_id = DCORE0_RTR0;
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment