]> Git Repo - linux.git/commitdiff
accel/habanalabs: fix gaudi2_get_tpc_idle_status() return
authorDan Carpenter <[email protected]>
Mon, 15 May 2023 10:32:18 +0000 (13:32 +0300)
committerOded Gabbay <[email protected]>
Thu, 8 Jun 2023 09:35:55 +0000 (12:35 +0300)
The gaudi2_get_tpc_idle_status() function returned the incorrect variable
so it always returned true.

Fixes: d85f0531b928 ("accel/habanalabs: break is_idle function into per-engine sub-routines")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Oded Gabbay <[email protected]>
Signed-off-by: Oded Gabbay <[email protected]>
drivers/accel/habanalabs/gaudi2/gaudi2.c

index d21ef9997d05c19e9c673684edf8f362005786bc..e900017f4ff7d9de39666011a6d4dfc3e136aa1d 100644 (file)
@@ -7238,7 +7238,7 @@ static bool gaudi2_get_tpc_idle_status(struct hl_device *hdev, u64 *mask_arr, u8
 
        gaudi2_iterate_tpcs(hdev, &tpc_iter);
 
-       return tpc_idle_data.is_idle;
+       return *tpc_idle_data.is_idle;
 }
 
 static bool gaudi2_get_decoder_idle_status(struct hl_device *hdev, u64 *mask_arr, u8 mask_len,
This page took 0.068085 seconds and 4 git commands to generate.