Commit 200f3cf0 authored by Carmit Carmel's avatar Carmit Carmel Committed by Oded Gabbay

habanalabs/gaudi2: fix log for sob value overflow/underflow

The value in SM_SEI_CAUSE includes the SOB index and not the SOB group
index.
Remove usage of log_mask in sm_sei_cause structure as it was never
used.
Signed-off-by: default avatarCarmit Carmel <ccarmel@habana.ai>
Reviewed-by: default avatarOded Gabbay <ogabbay@kernel.org>
Signed-off-by: default avatarOded Gabbay <ogabbay@kernel.org>
parent ab509d81
...@@ -676,14 +676,13 @@ static const char * const gaudi2_kdma_core_interrupts_cause[GAUDI2_NUM_OF_DMA_CO ...@@ -676,14 +676,13 @@ static const char * const gaudi2_kdma_core_interrupts_cause[GAUDI2_NUM_OF_DMA_CO
struct gaudi2_sm_sei_cause_data { struct gaudi2_sm_sei_cause_data {
const char *cause_name; const char *cause_name;
const char *log_name; const char *log_name;
u32 log_mask;
}; };
static const struct gaudi2_sm_sei_cause_data static const struct gaudi2_sm_sei_cause_data
gaudi2_sm_sei_cause[GAUDI2_NUM_OF_SM_SEI_ERR_CAUSE] = { gaudi2_sm_sei_cause[GAUDI2_NUM_OF_SM_SEI_ERR_CAUSE] = {
{"calculated SO value overflow/underflow", "SOB group ID", 0x7FF}, {"calculated SO value overflow/underflow", "SOB ID"},
{"payload address of monitor is not aligned to 4B", "monitor addr", 0xFFFF}, {"payload address of monitor is not aligned to 4B", "monitor addr"},
{"armed monitor write got BRESP (SLVERR or DECERR)", "AXI id", 0xFFFF}, {"armed monitor write got BRESP (SLVERR or DECERR)", "AXI id"},
}; };
static const char * const static const char * const
...@@ -8418,7 +8417,7 @@ static int gaudi2_handle_sm_err(struct hl_device *hdev, u16 event_type, u8 sm_in ...@@ -8418,7 +8417,7 @@ static int gaudi2_handle_sm_err(struct hl_device *hdev, u16 event_type, u8 sm_in
"err cause: %s. %s: 0x%X\n", "err cause: %s. %s: 0x%X\n",
gaudi2_sm_sei_cause[i].cause_name, gaudi2_sm_sei_cause[i].cause_name,
gaudi2_sm_sei_cause[i].log_name, gaudi2_sm_sei_cause[i].log_name,
sei_cause_log & gaudi2_sm_sei_cause[i].log_mask); sei_cause_log);
error_count++; error_count++;
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment