accel/habanalabs: remove a useless is_idle TPC flag
authorKoby Elbaz <kelbaz@habana.ai>
Sun, 26 Feb 2023 06:22:45 +0000 (08:22 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Wed, 15 Mar 2023 11:29:15 +0000 (13:29 +0200)
Is appears that the flag -
DCORE0_TPC0_CFG_STATUS_VECTOR_PIPE_EMPTY_MASK, has no actual use when
it comes to querying TPC idleness, since this flag's corresponding bit
turns-off after stalling the engine, and turns back on after resuming
it.

Signed-off-by: Koby Elbaz <kelbaz@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/gaudi2/gaudi2_masks.h

index e9ac878..74bc1da 100644 (file)
@@ -79,7 +79,6 @@
                        DCORE0_MME_CTRL_LO_ARCH_STATUS_QM_RDY_MASK)
 
 #define TPC_IDLE_MASK  (DCORE0_TPC0_CFG_STATUS_SCALAR_PIPE_EMPTY_MASK | \
-                       DCORE0_TPC0_CFG_STATUS_VECTOR_PIPE_EMPTY_MASK | \
                        DCORE0_TPC0_CFG_STATUS_IQ_EMPTY_MASK | \
                        DCORE0_TPC0_CFG_STATUS_SB_EMPTY_MASK | \
                        DCORE0_TPC0_CFG_STATUS_QM_IDLE_MASK | \