File tree Expand file tree Collapse file tree 4 files changed +20
-7
lines changed Expand file tree Collapse file tree 4 files changed +20
-7
lines changed Original file line number Diff line number Diff line change @@ -1161,6 +1161,16 @@ struct lpfc_hba {
1161
1161
uint32_t cfg_hostmem_hgp ;
1162
1162
uint32_t cfg_log_verbose ;
1163
1163
uint32_t cfg_enable_fc4_type ;
1164
+ #define LPFC_ENABLE_FCP 1
1165
+ #define LPFC_ENABLE_NVME 2
1166
+ #define LPFC_ENABLE_BOTH 3
1167
+ #if (IS_ENABLED (CONFIG_NVME_FC ))
1168
+ #define LPFC_MAX_ENBL_FC4_TYPE LPFC_ENABLE_BOTH
1169
+ #define LPFC_DEF_ENBL_FC4_TYPE LPFC_ENABLE_BOTH
1170
+ #else
1171
+ #define LPFC_MAX_ENBL_FC4_TYPE LPFC_ENABLE_FCP
1172
+ #define LPFC_DEF_ENBL_FC4_TYPE LPFC_ENABLE_FCP
1173
+ #endif
1164
1174
uint32_t cfg_aer_support ;
1165
1175
uint32_t cfg_sriov_nr_virtfn ;
1166
1176
uint32_t cfg_request_firmware_upgrade ;
@@ -1182,9 +1192,6 @@ struct lpfc_hba {
1182
1192
uint32_t cfg_ras_fwlog_func ;
1183
1193
uint32_t cfg_enable_bbcr ; /* Enable BB Credit Recovery */
1184
1194
uint32_t cfg_enable_dpp ; /* Enable Direct Packet Push */
1185
- #define LPFC_ENABLE_FCP 1
1186
- #define LPFC_ENABLE_NVME 2
1187
- #define LPFC_ENABLE_BOTH 3
1188
1195
uint32_t cfg_enable_pbde ;
1189
1196
uint32_t cfg_enable_mi ;
1190
1197
struct nvmet_fc_target_port * targetport ;
Original file line number Diff line number Diff line change @@ -3978,8 +3978,8 @@ LPFC_ATTR_R(nvmet_mrq_post,
3978
3978
* 3 - register both FCP and NVME
3979
3979
* Supported values are [1,3]. Default value is 3
3980
3980
*/
3981
- LPFC_ATTR_R (enable_fc4_type , LPFC_ENABLE_BOTH ,
3982
- LPFC_ENABLE_FCP , LPFC_ENABLE_BOTH ,
3981
+ LPFC_ATTR_R (enable_fc4_type , LPFC_DEF_ENBL_FC4_TYPE ,
3982
+ LPFC_ENABLE_FCP , LPFC_MAX_ENBL_FC4_TYPE ,
3983
3983
"Enable FC4 Protocol support - FCP / NVME" );
3984
3984
3985
3985
/*
Original file line number Diff line number Diff line change @@ -2104,7 +2104,7 @@ lpfc_handle_eratt_s4(struct lpfc_hba *phba)
2104
2104
}
2105
2105
if (reg_err1 == SLIPORT_ERR1_REG_ERR_CODE_2 &&
2106
2106
reg_err2 == SLIPORT_ERR2_REG_FW_RESTART ) {
2107
- lpfc_printf_log (phba , KERN_ERR , LOG_TRACE_EVENT ,
2107
+ lpfc_printf_log (phba , KERN_ERR , LOG_SLI ,
2108
2108
"3143 Port Down: Firmware Update "
2109
2109
"Detected\n" );
2110
2110
en_rn_msg = false;
Original file line number Diff line number Diff line change @@ -13363,6 +13363,7 @@ lpfc_sli4_eratt_read(struct lpfc_hba *phba)
13363
13363
uint32_t uerr_sta_hi, uerr_sta_lo;
13364
13364
uint32_t if_type, portsmphr;
13365
13365
struct lpfc_register portstat_reg;
13366
+ u32 logmask;
13366
13367
13367
13368
/*
13368
13369
* For now, use the SLI4 device internal unrecoverable error
@@ -13413,7 +13414,12 @@ lpfc_sli4_eratt_read(struct lpfc_hba *phba)
13413
13414
readl(phba->sli4_hba.u.if_type2.ERR1regaddr);
13414
13415
phba->work_status[1] =
13415
13416
readl(phba->sli4_hba.u.if_type2.ERR2regaddr);
13416
- lpfc_printf_log(phba, KERN_ERR, LOG_TRACE_EVENT,
13417
+ logmask = LOG_TRACE_EVENT;
13418
+ if (phba->work_status[0] ==
13419
+ SLIPORT_ERR1_REG_ERR_CODE_2 &&
13420
+ phba->work_status[1] == SLIPORT_ERR2_REG_FW_RESTART)
13421
+ logmask = LOG_SLI;
13422
+ lpfc_printf_log(phba, KERN_ERR, logmask,
13417
13423
"2885 Port Status Event: "
13418
13424
"port status reg 0x%x, "
13419
13425
"port smphr reg 0x%x, "
You can’t perform that action at this time.
0 commit comments