@@ -416,8 +416,7 @@ lpfc_debugfs_commonxripools_data(struct lpfc_hba *phba, char *buf, int size)
416416 qp = & phba -> sli4_hba .hdwq [lpfc_debugfs_last_xripool ];
417417
418418 len += scnprintf (buf + len , size - len , "HdwQ %d Info " , i );
419- spin_lock_irqsave (& qp -> abts_scsi_buf_list_lock , iflag );
420- spin_lock (& qp -> abts_nvme_buf_list_lock );
419+ spin_lock_irqsave (& qp -> abts_io_buf_list_lock , iflag );
421420 spin_lock (& qp -> io_buf_list_get_lock );
422421 spin_lock (& qp -> io_buf_list_put_lock );
423422 out = qp -> total_io_bufs - (qp -> get_io_bufs + qp -> put_io_bufs +
@@ -430,8 +429,7 @@ lpfc_debugfs_commonxripools_data(struct lpfc_hba *phba, char *buf, int size)
430429 qp -> abts_nvme_io_bufs , out );
431430 spin_unlock (& qp -> io_buf_list_put_lock );
432431 spin_unlock (& qp -> io_buf_list_get_lock );
433- spin_unlock (& qp -> abts_nvme_buf_list_lock );
434- spin_unlock_irqrestore (& qp -> abts_scsi_buf_list_lock , iflag );
432+ spin_unlock_irqrestore (& qp -> abts_io_buf_list_lock , iflag );
435433
436434 lpfc_debugfs_last_xripool ++ ;
437435 if (lpfc_debugfs_last_xripool >= phba -> cfg_hdw_queue )
@@ -533,9 +531,7 @@ lpfc_debugfs_multixripools_data(struct lpfc_hba *phba, char *buf, int size)
533531 continue ;
534532 pbl_pool = & multixri_pool -> pbl_pool ;
535533 pvt_pool = & multixri_pool -> pvt_pool ;
536- txcmplq_cnt = qp -> fcp_wq -> pring -> txcmplq_cnt ;
537- if (qp -> nvme_wq )
538- txcmplq_cnt += qp -> nvme_wq -> pring -> txcmplq_cnt ;
534+ txcmplq_cnt = qp -> io_wq -> pring -> txcmplq_cnt ;
539535
540536 scnprintf (tmp , sizeof (tmp ),
541537 "%03d: %4d %4d %4d %4d | %10d %10d " ,
@@ -3786,23 +3782,13 @@ lpfc_idiag_wqs_for_cq(struct lpfc_hba *phba, char *wqtype, char *pbuffer,
37863782 int qidx ;
37873783
37883784 for (qidx = 0 ; qidx < phba -> cfg_hdw_queue ; qidx ++ ) {
3789- qp = phba -> sli4_hba .hdwq [qidx ].fcp_wq ;
3785+ qp = phba -> sli4_hba .hdwq [qidx ].io_wq ;
37903786 if (qp -> assoc_qid != cq_id )
37913787 continue ;
37923788 * len = __lpfc_idiag_print_wq (qp , wqtype , pbuffer , * len );
37933789 if (* len >= max_cnt )
37943790 return 1 ;
37953791 }
3796- if (phba -> cfg_enable_fc4_type & LPFC_ENABLE_NVME ) {
3797- for (qidx = 0 ; qidx < phba -> cfg_hdw_queue ; qidx ++ ) {
3798- qp = phba -> sli4_hba .hdwq [qidx ].nvme_wq ;
3799- if (qp -> assoc_qid != cq_id )
3800- continue ;
3801- * len = __lpfc_idiag_print_wq (qp , wqtype , pbuffer , * len );
3802- if (* len >= max_cnt )
3803- return 1 ;
3804- }
3805- }
38063792 return 0 ;
38073793}
38083794
@@ -3868,38 +3854,21 @@ lpfc_idiag_cqs_for_eq(struct lpfc_hba *phba, char *pbuffer,
38683854 struct lpfc_queue * qp ;
38693855 int rc ;
38703856
3871- qp = phba -> sli4_hba .hdwq [eqidx ].fcp_cq ;
3857+ qp = phba -> sli4_hba .hdwq [eqidx ].io_cq ;
38723858
3873- * len = __lpfc_idiag_print_cq (qp , "FCP " , pbuffer , * len );
3859+ * len = __lpfc_idiag_print_cq (qp , "IO " , pbuffer , * len );
38743860
38753861 /* Reset max counter */
38763862 qp -> CQ_max_cqe = 0 ;
38773863
38783864 if (* len >= max_cnt )
38793865 return 1 ;
38803866
3881- rc = lpfc_idiag_wqs_for_cq (phba , "FCP " , pbuffer , len ,
3867+ rc = lpfc_idiag_wqs_for_cq (phba , "IO " , pbuffer , len ,
38823868 max_cnt , qp -> queue_id );
38833869 if (rc )
38843870 return 1 ;
38853871
3886- if (phba -> cfg_enable_fc4_type & LPFC_ENABLE_NVME ) {
3887- qp = phba -> sli4_hba .hdwq [eqidx ].nvme_cq ;
3888-
3889- * len = __lpfc_idiag_print_cq (qp , "NVME" , pbuffer , * len );
3890-
3891- /* Reset max counter */
3892- qp -> CQ_max_cqe = 0 ;
3893-
3894- if (* len >= max_cnt )
3895- return 1 ;
3896-
3897- rc = lpfc_idiag_wqs_for_cq (phba , "NVME" , pbuffer , len ,
3898- max_cnt , qp -> queue_id );
3899- if (rc )
3900- return 1 ;
3901- }
3902-
39033872 if ((eqidx < phba -> cfg_nvmet_mrq ) && phba -> nvmet_support ) {
39043873 /* NVMET CQset */
39053874 qp = phba -> sli4_hba .nvmet_cqset [eqidx ];
@@ -4348,7 +4317,7 @@ lpfc_idiag_queacc_write(struct file *file, const char __user *buf,
43484317 if (phba -> sli4_hba .hdwq ) {
43494318 for (qidx = 0 ; qidx < phba -> cfg_hdw_queue ;
43504319 qidx ++ ) {
4351- qp = phba -> sli4_hba .hdwq [qidx ].fcp_cq ;
4320+ qp = phba -> sli4_hba .hdwq [qidx ].io_cq ;
43524321 if (qp && qp -> queue_id == queid ) {
43534322 /* Sanity check */
43544323 rc = lpfc_idiag_que_param_check (
@@ -4360,22 +4329,6 @@ lpfc_idiag_queacc_write(struct file *file, const char __user *buf,
43604329 }
43614330 }
43624331 }
4363- /* NVME complete queue */
4364- if (phba -> sli4_hba .hdwq ) {
4365- qidx = 0 ;
4366- do {
4367- qp = phba -> sli4_hba .hdwq [qidx ].nvme_cq ;
4368- if (qp && qp -> queue_id == queid ) {
4369- /* Sanity check */
4370- rc = lpfc_idiag_que_param_check (
4371- qp , index , count );
4372- if (rc )
4373- goto error_out ;
4374- idiag .ptr_private = qp ;
4375- goto pass_check ;
4376- }
4377- } while (++ qidx < phba -> cfg_hdw_queue );
4378- }
43794332 goto error_out ;
43804333 break ;
43814334 case LPFC_IDIAG_MQ :
@@ -4419,20 +4372,7 @@ lpfc_idiag_queacc_write(struct file *file, const char __user *buf,
44194372 if (phba -> sli4_hba .hdwq ) {
44204373 /* FCP/SCSI work queue */
44214374 for (qidx = 0 ; qidx < phba -> cfg_hdw_queue ; qidx ++ ) {
4422- qp = phba -> sli4_hba .hdwq [qidx ].fcp_wq ;
4423- if (qp && qp -> queue_id == queid ) {
4424- /* Sanity check */
4425- rc = lpfc_idiag_que_param_check (
4426- qp , index , count );
4427- if (rc )
4428- goto error_out ;
4429- idiag .ptr_private = qp ;
4430- goto pass_check ;
4431- }
4432- }
4433- /* NVME work queue */
4434- for (qidx = 0 ; qidx < phba -> cfg_hdw_queue ; qidx ++ ) {
4435- qp = phba -> sli4_hba .hdwq [qidx ].nvme_wq ;
4375+ qp = phba -> sli4_hba .hdwq [qidx ].io_wq ;
44364376 if (qp && qp -> queue_id == queid ) {
44374377 /* Sanity check */
44384378 rc = lpfc_idiag_que_param_check (
@@ -6442,12 +6382,7 @@ lpfc_debug_dump_all_queues(struct lpfc_hba *phba)
64426382 lpfc_debug_dump_wq (phba , DUMP_NVMELS , 0 );
64436383
64446384 for (idx = 0 ; idx < phba -> cfg_hdw_queue ; idx ++ )
6445- lpfc_debug_dump_wq (phba , DUMP_FCP , idx );
6446-
6447- if (phba -> cfg_enable_fc4_type & LPFC_ENABLE_NVME ) {
6448- for (idx = 0 ; idx < phba -> cfg_hdw_queue ; idx ++ )
6449- lpfc_debug_dump_wq (phba , DUMP_NVME , idx );
6450- }
6385+ lpfc_debug_dump_wq (phba , DUMP_IO , idx );
64516386
64526387 lpfc_debug_dump_hdr_rq (phba );
64536388 lpfc_debug_dump_dat_rq (phba );
@@ -6459,12 +6394,7 @@ lpfc_debug_dump_all_queues(struct lpfc_hba *phba)
64596394 lpfc_debug_dump_cq (phba , DUMP_NVMELS , 0 );
64606395
64616396 for (idx = 0 ; idx < phba -> cfg_hdw_queue ; idx ++ )
6462- lpfc_debug_dump_cq (phba , DUMP_FCP , idx );
6463-
6464- if (phba -> cfg_enable_fc4_type & LPFC_ENABLE_NVME ) {
6465- for (idx = 0 ; idx < phba -> cfg_hdw_queue ; idx ++ )
6466- lpfc_debug_dump_cq (phba , DUMP_NVME , idx );
6467- }
6397+ lpfc_debug_dump_cq (phba , DUMP_IO , idx );
64686398
64696399 /*
64706400 * Dump Event Queues (EQs)
0 commit comments