All of lore.kernel.org
 help / color / mirror / Atom feed
From: Himanshu Madhani <himanshu.madhani@oracle.com>
To: Nilesh Javali <njavali@marvell.com>
Cc: Martin Petersen <martin.petersen@oracle.com>,
	linux-scsi <linux-scsi@vger.kernel.org>,
	"GR-QLogic-Storage-Upstream@marvell.com" 
	<GR-QLogic-Storage-Upstream@marvell.com>
Subject: Re: [PATCH 01/11] qla2xxx: Fix IOPS drop seen in some adapters
Date: Wed, 24 Mar 2021 15:46:52 +0000	[thread overview]
Message-ID: <A1070793-F934-4ECD-8A3F-1DC351595F5E@oracle.com> (raw)
In-Reply-To: <20210323044257.26664-2-njavali@marvell.com>



> On Mar 22, 2021, at 11:42 PM, Nilesh Javali <njavali@marvell.com> wrote:
> 
> From: Arun Easi <aeasi@marvell.com>
> 
> Removing the response queue processing in the send path is showing IOPS
> drop. Add back the process_response_queue() call in the send path.
> 

Can you share some details of what effect this change made into IOPS? 

> Signed-off-by: Arun Easi <aeasi@marvell.com>
> Signed-off-by: Nilesh Javali <njavali@marvell.com>
> ---
> drivers/scsi/qla2xxx/qla_iocb.c | 19 +++++++++++++++++++
> 1 file changed, 19 insertions(+)
> 
> diff --git a/drivers/scsi/qla2xxx/qla_iocb.c b/drivers/scsi/qla2xxx/qla_iocb.c
> index 8b41cbaf8535..f26a7a14fce9 100644
> --- a/drivers/scsi/qla2xxx/qla_iocb.c
> +++ b/drivers/scsi/qla2xxx/qla_iocb.c
> @@ -1600,12 +1600,14 @@ qla24xx_start_scsi(srb_t *sp)
> 	uint16_t	req_cnt;
> 	uint16_t	tot_dsds;
> 	struct req_que *req = NULL;
> +	struct rsp_que *rsp;
> 	struct scsi_cmnd *cmd = GET_CMD_SP(sp);
> 	struct scsi_qla_host *vha = sp->vha;
> 	struct qla_hw_data *ha = vha->hw;
> 
> 	/* Setup device pointers. */
> 	req = vha->req;
> +	rsp = req->rsp;
> 
> 	/* So we know we haven't pci_map'ed anything yet */
> 	tot_dsds = 0;
> @@ -1707,6 +1709,11 @@ qla24xx_start_scsi(srb_t *sp)
> 	/* Set chip new ring index. */
> 	wrt_reg_dword(req->req_q_in, req->ring_index);
> 
> +	/* Manage unprocessed RIO/ZIO commands in response queue. */
> +	if (vha->flags.process_response_queue &&
> +	    rsp->ring_ptr->signature != RESPONSE_PROCESSED)
> +		qla24xx_process_response_queue(vha, rsp);
> +
> 	spin_unlock_irqrestore(&ha->hardware_lock, flags);
> 	return QLA_SUCCESS;
> 
> @@ -1897,6 +1904,11 @@ qla24xx_dif_start_scsi(srb_t *sp)
> 	/* Set chip new ring index. */
> 	wrt_reg_dword(req->req_q_in, req->ring_index);
> 
> +	/* Manage unprocessed RIO/ZIO commands in response queue. */
> +	if (vha->flags.process_response_queue &&
> +	    rsp->ring_ptr->signature != RESPONSE_PROCESSED)
> +		qla24xx_process_response_queue(vha, rsp);
> +
> 	spin_unlock_irqrestore(&ha->hardware_lock, flags);
> 
> 	return QLA_SUCCESS;
> @@ -1931,6 +1943,7 @@ qla2xxx_start_scsi_mq(srb_t *sp)
> 	uint16_t	req_cnt;
> 	uint16_t	tot_dsds;
> 	struct req_que *req = NULL;
> +	struct rsp_que *rsp;
> 	struct scsi_cmnd *cmd = GET_CMD_SP(sp);
> 	struct scsi_qla_host *vha = sp->fcport->vha;
> 	struct qla_hw_data *ha = vha->hw;
> @@ -1941,6 +1954,7 @@ qla2xxx_start_scsi_mq(srb_t *sp)
> 
> 	/* Setup qpair pointers */
> 	req = qpair->req;
> +	rsp = qpair->rsp;
> 
> 	/* So we know we haven't pci_map'ed anything yet */
> 	tot_dsds = 0;
> @@ -2041,6 +2055,11 @@ qla2xxx_start_scsi_mq(srb_t *sp)
> 	/* Set chip new ring index. */
> 	wrt_reg_dword(req->req_q_in, req->ring_index);
> 
> +	/* Manage unprocessed RIO/ZIO commands in response queue. */
> +	if (vha->flags.process_response_queue &&
> +	    rsp->ring_ptr->signature != RESPONSE_PROCESSED)
> +		qla24xx_process_response_queue(vha, rsp);
> +
> 	spin_unlock_irqrestore(&qpair->qp_lock, flags);
> 	return QLA_SUCCESS;
> 
> -- 
> 2.19.0.rc0
> 

Patch itself looks good. After you add more details in commit message you can add 

Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>

--
Himanshu Madhani	 Oracle Linux Engineering


  reply	other threads:[~2021-03-24 15:47 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-23  4:42 [PATCH 00/11] qla2xxx driver bug fixes Nilesh Javali
2021-03-23  4:42 ` [PATCH 01/11] qla2xxx: Fix IOPS drop seen in some adapters Nilesh Javali
2021-03-24 15:46   ` Himanshu Madhani [this message]
2021-03-26  0:53     ` Arun Easi
2021-03-26 13:38       ` Himanshu Madhani
2021-03-23  4:42 ` [PATCH 02/11] qla2xxx: Add H:C:T info in the log message for fc ports Nilesh Javali
2021-03-24 15:48   ` Himanshu Madhani
2021-03-23  4:42 ` [PATCH 03/11] qla2xxx: fix stuck session Nilesh Javali
2021-03-23 16:31   ` Bart Van Assche
2021-03-24 15:53     ` Himanshu Madhani
2021-03-26 17:46       ` Quinn Tran
2021-03-26 17:53         ` Himanshu Madhani
2021-03-23  4:42 ` [PATCH 04/11] qla2xxx: consolidate zio threshold setting for both fcp & nvme Nilesh Javali
2021-03-24 15:55   ` Himanshu Madhani
2021-03-23  4:42 ` [PATCH 05/11] qla2xxx: Fix use after free in bsg Nilesh Javali
2021-03-24 15:57   ` Himanshu Madhani
2021-03-23  4:42 ` [PATCH 06/11] qla2xxx: Fix crash in qla2xxx_mqueuecommand Nilesh Javali
2021-03-24 15:57   ` Himanshu Madhani
2021-03-23  4:42 ` [PATCH 07/11] qla2xxx: fix RISC RESET completion polling Nilesh Javali
2021-03-24 16:03   ` Himanshu Madhani
2021-03-23  4:42 ` [PATCH 08/11] qla2xxx: fix crash in PCIe error handling Nilesh Javali
2021-03-24 16:21   ` Himanshu Madhani
2021-03-23  4:42 ` [PATCH 09/11] qla2xxx: fix mailbox recovery during PCIe error Nilesh Javali
2021-03-24 16:23   ` Himanshu Madhani
2021-03-23  4:42 ` [PATCH 10/11] qla2xxx: include AER debug mask to default Nilesh Javali
2021-03-24 16:24   ` Himanshu Madhani
2021-03-23  4:42 ` [PATCH 11/11] qla2xxx: Update version to 10.02.00.106-k Nilesh Javali
2021-03-24 16:24   ` Himanshu Madhani
2021-03-24 20:55 ` [PATCH 00/11] qla2xxx driver bug fixes Laurence Oberman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=A1070793-F934-4ECD-8A3F-1DC351595F5E@oracle.com \
    --to=himanshu.madhani@oracle.com \
    --cc=GR-QLogic-Storage-Upstream@marvell.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    --cc=njavali@marvell.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.