public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Johannes Thumshirn <jthumshirn@suse.de>
To: Himanshu Madhani <himanshu.madhani@qlogic.com>
Cc: James.Bottomley@HansenPartnership.com,
	martin.petersen@oracle.com, giridhar.malavali@qlogic.com,
	linux-scsi@vger.kernel.org
Subject: Re: [PATCH v2 03/11] qla2xxx: Allow fw to hold status before sending ABTS response.
Date: Thu, 28 Jan 2016 09:35:37 +0100	[thread overview]
Message-ID: <20160128083537.GH27565@c203.arch.suse.de> (raw)
In-Reply-To: <1453914218-380-4-git-send-email-himanshu.madhani@qlogic.com>

On Wed, Jan 27, 2016 at 12:03:30PM -0500, Himanshu Madhani wrote:
> Set bit 12 of additional firmware options 3 to let firmware
> hold status IOCB until ABTS response is received from Target.
> 
> Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
> Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
> ---
>  drivers/scsi/qla2xxx/qla_gbl.h  |    1 +
>  drivers/scsi/qla2xxx/qla_init.c |   11 ++++++++++-
>  drivers/scsi/qla2xxx/qla_os.c   |    7 +++++++
>  3 files changed, 18 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/scsi/qla2xxx/qla_gbl.h b/drivers/scsi/qla2xxx/qla_gbl.h
> index 0103e46..1bfdcdf 100644
> --- a/drivers/scsi/qla2xxx/qla_gbl.h
> +++ b/drivers/scsi/qla2xxx/qla_gbl.h
> @@ -121,6 +121,7 @@ extern int ql2xmdcapmask;
>  extern int ql2xmdenable;
>  extern int ql2xexlogins;
>  extern int ql2xexchoffld;
> +extern int ql2xfwholdabts;
>  
>  extern int qla2x00_loop_reset(scsi_qla_host_t *);
>  extern void qla2x00_abort_all_cmds(scsi_qla_host_t *, int);
> diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c
> index a663ff6..cf487b9 100644
> --- a/drivers/scsi/qla2xxx/qla_init.c
> +++ b/drivers/scsi/qla2xxx/qla_init.c
> @@ -2062,6 +2062,10 @@ qla24xx_update_fw_options(scsi_qla_host_t *vha)
>  	if (IS_P3P_TYPE(ha))
>  		return;
>  
> +	/*  Hold status IOCBs until ABTS response received. */
> +	if (ql2xfwholdabts)
> +		ha->fw_options[3] |= BIT_12;
> +
>  	/* Update Serial Link options. */
>  	if ((le16_to_cpu(ha->fw_seriallink_options24[0]) & BIT_0) == 0)
>  		return;
> @@ -6410,12 +6414,17 @@ qla81xx_update_fw_options(scsi_qla_host_t *vha)
>  {
>  	struct qla_hw_data *ha = vha->hw;
>  
> +	/*  Hold status IOCBs until ABTS response received. */
> +	if (ql2xfwholdabts)
> +		ha->fw_options[3] |= BIT_12;
> +
>  	if (!ql2xetsenable)
> -		return;
> +		goto out;
>  
>  	/* Enable ETS Burst. */
>  	memset(ha->fw_options, 0, sizeof(ha->fw_options));
>  	ha->fw_options[2] |= BIT_9;
> +out:
>  	qla2x00_set_fw_options(vha, ha->fw_options);
>  }
>  
> diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
> index f1788db..d94a236 100644
> --- a/drivers/scsi/qla2xxx/qla_os.c
> +++ b/drivers/scsi/qla2xxx/qla_os.c
> @@ -233,6 +233,13 @@ MODULE_PARM_DESC(ql2xexchoffld,
>  		 "Number of exchanges to offload. "
>  		 "0 (Default)- Disabled.");
>  
> +int ql2xfwholdabts = 0;
> +module_param(ql2xfwholdabts, int, S_IRUGO);
> +MODULE_PARM_DESC(ql2xfwholdabts,
> +		"Allow FW to hold status IOCB until ABTS rsp received. "
> +		"0 (Default) Do not set fw option. "
> +		"1 - Set fw option to hold ABTS.");
> +
>  /*
>   * SCSI host template entry points
>   */
> -- 
> 1.7.7
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
-- 
Johannes Thumshirn                                          Storage
jthumshirn@suse.de                                +49 911 74053 689
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)
Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2016-01-28  8:35 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-27 17:03 [PATCH v2 00/11] qla2xxx: Patches for scsi "misc" branch Himanshu Madhani
2016-01-27 17:03 ` [PATCH v2 01/11] qla2xxx: Remove unneeded link offline message Himanshu Madhani
2016-01-28  8:33   ` Johannes Thumshirn
2016-01-27 17:03 ` [PATCH v2 02/11] qla2xxx: Seed init-cb login timeout from nvram exclusively Himanshu Madhani
2016-01-28  8:34   ` Johannes Thumshirn
2016-01-27 17:03 ` [PATCH v2 03/11] qla2xxx: Allow fw to hold status before sending ABTS response Himanshu Madhani
2016-01-28  8:35   ` Johannes Thumshirn [this message]
2016-01-27 17:03 ` [PATCH v2 04/11] qla2xxx: Add support for online flash update for ISP27XX Himanshu Madhani
2016-01-28  8:56   ` Johannes Thumshirn
2016-01-27 17:03 ` [PATCH v2 05/11] qla2xxx: Add support for buffer to buffer credit value " Himanshu Madhani
2016-01-28  8:57   ` Johannes Thumshirn
2016-01-27 17:03 ` [PATCH v2 06/11] qla2xxx: Add support for Private link statistics counters Himanshu Madhani
2016-01-28  8:59   ` Johannes Thumshirn
2016-01-28 17:34     ` Himanshu Madhani
2016-01-27 17:03 ` [PATCH v2 07/11] qla2xxx: Avoid side effects when using endianizer macros Himanshu Madhani
2016-01-28  9:00   ` Johannes Thumshirn
2016-01-27 17:03 ` [PATCH v2 08/11] qla2xxx: Provide mbx info in BBCR data after mbx failure Himanshu Madhani
2016-01-28  9:00   ` Johannes Thumshirn
2016-01-27 17:03 ` [PATCH v2 09/11] qla2xxx: Enable T10-DIF for ISP27XX Himanshu Madhani
2016-01-28  9:00   ` Johannes Thumshirn
2016-01-27 17:03 ` [PATCH v2 10/11] qla2xxx: Set relogin flag when we fail to queue login requests Himanshu Madhani
2016-01-28  9:01   ` Johannes Thumshirn
2016-01-27 17:03 ` [PATCH v2 11/11] qla2xxx: Update driver version to 8.07.00.33-k Himanshu Madhani
2016-01-28  9:02   ` Johannes Thumshirn
2016-01-28 22:27 ` [PATCH v2 00/11] qla2xxx: Patches for scsi "misc" branch Martin K. Petersen

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=20160128083537.GH27565@c203.arch.suse.de \
    --to=jthumshirn@suse.de \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=giridhar.malavali@qlogic.com \
    --cc=himanshu.madhani@qlogic.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox