From 81ed1b6d0080d0aef9cb9536a1c632db88a4b016 Mon Sep 17 00:00:00 2001 From: Oded Gabbay Date: Mon, 4 Jul 2022 12:05:30 +0300 Subject: [PATCH] habanalabs/gaudi2: remove unused defines There were some defines that are unused in the current upstreamed code. Signed-off-by: Oded Gabbay --- drivers/misc/habanalabs/gaudi/gaudi.c | 7 ------- drivers/misc/habanalabs/gaudi2/gaudi2.c | 4 ---- drivers/misc/habanalabs/gaudi2/gaudi2_coresight.c | 2 -- 3 files changed, 13 deletions(-) diff --git a/drivers/misc/habanalabs/gaudi/gaudi.c b/drivers/misc/habanalabs/gaudi/gaudi.c index 31a2589929f2b..1f84dd6f3adbf 100644 --- a/drivers/misc/habanalabs/gaudi/gaudi.c +++ b/drivers/misc/habanalabs/gaudi/gaudi.c @@ -97,15 +97,8 @@ #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 diff --git a/drivers/misc/habanalabs/gaudi2/gaudi2.c b/drivers/misc/habanalabs/gaudi2/gaudi2.c index 02ec68715c4f9..257e0c179c533 100644 --- a/drivers/misc/habanalabs/gaudi2/gaudi2.c +++ b/drivers/misc/habanalabs/gaudi2/gaudi2.c @@ -74,10 +74,6 @@ #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) diff --git a/drivers/misc/habanalabs/gaudi2/gaudi2_coresight.c b/drivers/misc/habanalabs/gaudi2/gaudi2_coresight.c index cf70735bf1e37..56c6ab692482f 100644 --- a/drivers/misc/habanalabs/gaudi2/gaudi2_coresight.c +++ b/drivers/misc/habanalabs/gaudi2/gaudi2_coresight.c @@ -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 -- 2.39.5