Skip to content

Commit 9ec7639

Browse files
Dan Carpenterogabbay
authored andcommitted
accel/habanalabs: fix gaudi2_get_tpc_idle_status() return
The gaudi2_get_tpc_idle_status() function returned the incorrect variable so it always returned true. Fixes: d85f053 ("accel/habanalabs: break is_idle function into per-engine sub-routines") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
1 parent cc1eeaa commit 9ec7639

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/accel/habanalabs/gaudi2/gaudi2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7238,7 +7238,7 @@ static bool gaudi2_get_tpc_idle_status(struct hl_device *hdev, u64 *mask_arr, u8
72387238

72397239
gaudi2_iterate_tpcs(hdev, &tpc_iter);
72407240

7241-
return tpc_idle_data.is_idle;
7241+
return *tpc_idle_data.is_idle;
72427242
}
72437243

72447244
static bool gaudi2_get_decoder_idle_status(struct hl_device *hdev, u64 *mask_arr, u8 mask_len,

0 commit comments

Comments
 (0)