diff options
author | Oded Gabbay <ogabbay@kernel.org> | 2022-07-04 12:05:30 +0300 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2022-07-12 09:09:30 +0300 |
commit | ead36b198147711ec2f8fe83b66ec8e30de732db (patch) | |
tree | abc97233270592fea4068533cd8f179dab168198 /drivers/misc | |
parent | cf008f5acb9047891f7fa7c234bd838120fe1b50 (diff) | |
download | lwn-ead36b198147711ec2f8fe83b66ec8e30de732db.tar.gz lwn-ead36b198147711ec2f8fe83b66ec8e30de732db.zip |
habanalabs/gaudi2: remove unused defines
There were some defines that are unused in the current upstreamed
code.
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/habanalabs/gaudi/gaudi.c | 7 | ||||
-rw-r--r-- | drivers/misc/habanalabs/gaudi2/gaudi2.c | 4 | ||||
-rw-r--r-- | drivers/misc/habanalabs/gaudi2/gaudi2_coresight.c | 2 |
3 files changed, 0 insertions, 13 deletions
diff --git a/drivers/misc/habanalabs/gaudi/gaudi.c b/drivers/misc/habanalabs/gaudi/gaudi.c index 31a2589929f2..1f84dd6f3adb 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 02ec68715c4f..257e0c179c53 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 cf70735bf1e3..56c6ab692482 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 |