From: Lee Duncan <lduncan@suse.com>
To: Hannes Reinecke <hare@suse.de>,
Sumit Saxena <sumit.saxena@avagotech.com>
Cc: Kashyap Desai <kashyap.desai@avagotech.com>,
megaraidlinux.pdl@avagotech.com,
"Martin K. Petersen" <martin.petersen@oracle.com>,
James Bottomley <james.bottomley@hansenpartnership.com>,
linux-scsi@vger.kernel.org
Subject: Re: [PATCH] megaraid_sas: Fallback to older scanning if not disks are found
Date: Fri, 15 Jan 2016 13:59:29 -0800 [thread overview]
Message-ID: <56996BC1.40400@suse.com> (raw)
In-Reply-To: <1452867193-41266-1-git-send-email-hare@suse.de>
On 01/15/2016 06:13 AM, Hannes Reinecke wrote:
> commit 21c9e160a51383d4cb0b882398534b0c95c0cc3b implemented a
> new driver lookup using the MR_DCMD_LD_LIST_QUERY firmware command.
> However, this command might not work properly on older firmware,
> causing the command to return no drives instead of an error.
> This causes a regression on older firmware as the driver will
> no longer detect any drives.
> This patch checks if MR_DCMD_LD_LIST_QUERY return no drives,
> and falls back to the original method if so.
>
> Signed-off-by: Hannes Reinecke <hare@suse.de>
> ---
> drivers/scsi/megaraid/megaraid_sas_base.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c
> index f97ec34..79dff70 100644
> --- a/drivers/scsi/megaraid/megaraid_sas_base.c
> +++ b/drivers/scsi/megaraid/megaraid_sas_base.c
> @@ -4107,6 +4107,10 @@ megasas_ld_list_query(struct megasas_instance *instance, u8 query_type)
> ret = megasas_issue_polled(instance, cmd);
>
> tgtid_count = le32_to_cpu(ci->count);
> + if (tgtid_count == 0) {
> + /* No drives found, try the older LD list DCMD */
> + ret = 1;
> + }
>
> if ((ret == 0) && (tgtid_count <= (instance->fw_supported_vd_count))) {
> memset(instance->ld_ids, 0xff, MEGASAS_MAX_LD_IDS);
>
Reviewed-by: Lee Duncan <lduncan@suse.com>
next prev parent reply other threads:[~2016-01-15 22:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-15 14:13 [PATCH] megaraid_sas: Fallback to older scanning if not disks are found Hannes Reinecke
2016-01-15 21:59 ` Lee Duncan [this message]
2016-01-18 5:14 ` Kashyap Desai
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=56996BC1.40400@suse.com \
--to=lduncan@suse.com \
--cc=hare@suse.de \
--cc=james.bottomley@hansenpartnership.com \
--cc=kashyap.desai@avagotech.com \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=megaraidlinux.pdl@avagotech.com \
--cc=sumit.saxena@avagotech.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.