habanalabs/gaudi2: remove unused defines
authorOded Gabbay <ogabbay@kernel.org>
Mon, 4 Jul 2022 09:05:30 +0000 (12:05 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Tue, 12 Jul 2022 06:09:30 +0000 (09:09 +0300)
There were some defines that are unused in the current upstreamed
code.

Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/gaudi/gaudi.c
drivers/misc/habanalabs/gaudi2/gaudi2.c
drivers/misc/habanalabs/gaudi2/gaudi2_coresight.c

index 31a2589929f2b342cb70e1d6195f6ff31276f1a9..1f84dd6f3adbf23d76938593cb1fe7f01acdd205 100644 (file)
 
 #define GAUDI_ARB_WDT_TIMEOUT          0xEE6b27FF /* 8 seconds */
 
-#define GAUDI_CLK_GATE_DEBUGFS_MASK    (\
-               BIT(GAUDI_ENGINE_ID_MME_0) |\
-               BIT(GAUDI_ENGINE_ID_MME_2) |\
-               GENMASK_ULL(GAUDI_ENGINE_ID_TPC_7, GAUDI_ENGINE_ID_TPC_0))
-
 #define HBM_SCRUBBING_TIMEOUT_US       1000000 /* 1s */
 
-#define GAUDI_PLL_MAX 10
-
 #define BIN_REG_STRING_SIZE    sizeof("0b10101010101010101010101010101010")
 
 #define MONITOR_SOB_STRING_SIZE                256
index 02ec68715c4f912248b8a37c21c21ecca81b2cb9..257e0c179c53310cea47e2a370805f4a3b7cc496 100644 (file)
 #define GAUDI2_NUM_OF_HIF_FATAL_ERR_CAUSE      2
 #define GAUDI2_NUM_OF_AXI_DRAIN_ERR_CAUSE      2
 #define GAUDI2_NUM_OF_HBM_MC_SPI_CAUSE         5
-#define GAUDI2_NUM_OF_NIC_RXB_CORE_SEI_CAUSE   2
-#define GAUDI2_NUM_OF_NIC_RXB_CORE_SPI_CAUSE   6
-#define GAUDI2_NUM_OF_NIC_RXE_SEI_CAUSE                4
-#define GAUDI2_NUM_OF_NIC_RXE_SPI_CAUSE                24
 
 #define GAUDI2_MMU_CACHE_INV_TIMEOUT_USEC      (MMU_CONFIG_TIMEOUT_USEC * 10)
 #define GAUDI2_PLDM_MMU_TIMEOUT_USEC           (MMU_CONFIG_TIMEOUT_USEC * 200)
index cf70735bf1e37098cf6c40e72927011a59c02039..56c6ab692482f975b277b1838f8d81212d5d4f29 100644 (file)
@@ -9,8 +9,6 @@
 
 #define GAUDI2_PLDM_CORESIGHT_TIMEOUT_USEC     (CORESIGHT_TIMEOUT_USEC * 2000)
 #define SPMU_MAX_COUNTERS                      6
-/* SPMU should also include overflow_idx and cycle_cnt_idx */
-#define SPMU_DATA_LEN                          (SPMU_MAX_COUNTERS + 2)
 
 #define COMPONENT_ID_INVALID ((u32)(-1))
 #define MAX_BMONS_PER_UNIT 8