From: Tomas Henzl <thenzl@redhat.com>
To: "Yang, Bo" <Bo.Yang@lsi.com>
Cc: "'James.Bottomley@HansenPartnership.com'"
<James.Bottomley@HansenPartnership.com>,
"'James.Bottomley@suse.de'" <James.Bottomley@suse.de>,
"'linux-scsi@vger.kernel.org'" <linux-scsi@vger.kernel.org>,
"'akpm@osdl.org'" <akpm@osdl.org>,
"'linux-kernel@vger.kernel.org'" <linux-kernel@vger.kernel.org>,
"Daftardar, Jayant" <Jayant.Daftardar@lsi.com>
Subject: Re: [PATCH 3/7] scsi: megaraid_sas - Online COntroller Reset (OCR) PART-III
Date: Fri, 07 May 2010 14:54:03 +0200 [thread overview]
Message-ID: <4BE40D6B.5020501@redhat.com> (raw)
In-Reply-To: <4B6A08C587958942AA3002690DD4F8C3CDB80BE9@cosmail02.lsi.com>
On 05/06/2010 05:52 PM, Yang, Bo wrote:
> This is third part of the Online Controller Reset. In ISR routine, if driver receive the FW state change interrupt
> And the online controller reset support enabled in FW, driver will read the controller register. Driver will issue
> Controller reset if the FW register state failure. Also driver will back up the pending cmds for the re-fire after
> the reset finished.
>
> Also Driver added the CTIO support to this patch.
>
> Signed-off-by Bo Yang<bo.yang@lsi.com>
>
> +static void
> +process_fw_state_change_wq(struct work_struct *work)
> +{
> + struct megasas_instance *instance =
> + container_of(work, struct megasas_instance, work_init);
> + u32 wait;
> + unsigned long flags;
> +
> + if (instance->adprecovery != MEGASAS_ADPRESET_SM_INFAULT) {
> + printk(KERN_NOTICE "megaraid_sas: error, recovery st %x \n",
> + instance->adprecovery);
> + return ;
> + }
> +
> + if (instance->adprecovery == MEGASAS_ADPRESET_SM_INFAULT) {
> + printk(KERN_NOTICE "megaraid_sas: FW detected to be in fault"
> + "state, restarting it...\n");
> +
> + instance->instancet->disable_intr(instance->reg_set);
> + atomic_set(&instance->fw_outstanding, 0);
> +
> + atomic_set(&instance->fw_reset_no_pci_access, 1);
> + instance->instancet->adp_reset(instance, instance->reg_set);
> + atomic_set(&instance->fw_reset_no_pci_access, 0 );
> +
> + printk(KERN_NOTICE "megaraid_sas: FW restarted successfully,"
> + "initiating next stage...\n");
> +
> + printk(KERN_NOTICE "megaraid_sas: HBA recovery state machine,"
> + "state 2 starting...\n");
> +
> + /*waitting for about 20 second before start the second init*/
> + for (wait = 0; wait < 30; wait++) {
> + msleep(1000);
> + }
>
Hi Bo,
I'm only curios - couldn't be the above loop replaced by ssleep(30);
and have the u32 wait; removed?
+ ssleep(30); /* wait for about 30 second before second init */
I guess you wanted to have a space after the comma in the printk, if yes I think
you should do this -> printk(KERN_NOTICE "megaraid_sas: HBA recovery state machine, "
It might be a problem with my mail reader, but it seems to me that you are using
spaces instead of tabs almost everywhere.
Tomas
next prev parent reply other threads:[~2010-05-07 12:54 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-21 2:21 [PATCH 1/12] scsi: megaraid_sas - tape drive support fix Yang, Bo
2009-09-21 2:21 ` Yang, Bo
2009-09-21 3:40 ` Daniel Walker
2009-09-21 15:22 ` Yang, Bo
2009-09-21 15:57 ` Daniel Walker
2009-09-21 16:04 ` Yang, Bo
2009-10-06 20:12 ` Yang, Bo
2009-10-06 20:12 ` Yang, Bo
2009-12-06 15:24 ` [PATCH 1/4] scsi: megaraid_sas - Zero pad_0 in mfi structure Yang, Bo
2009-12-06 15:30 ` [PATCH 2/4] scsi: megaraid_sas - add the ld list to driver Yang, Bo
2009-12-06 15:39 ` [PATCH 3/4] scsi: megaraid_sas - driver fixed the device update issue Yang, Bo
2009-12-06 15:42 ` [PATCH 4/4] scsi: megaraid_sas - version and documentation update Yang, Bo
[not found] ` <3A916D859199814BBB666188F96EB165013979165E@cosmail02.lsi.com>
2010-05-06 14:42 ` [PATCH 1/7] scsi: megaraid_sas - Online controller Reset Support (OCR) PART-I Yang, Bo
2010-05-06 15:41 ` [PATCH 2/7] scsi: megaraid_sas - Online controller Reset Support (OCR) PART-II Yang, Bo
2010-05-26 16:35 ` [PATCH 2/7] scsi: megaraid_sas - Online controller Reset Support (OCR)-II : Driver return RESET in timeout routine Yang, Bo
2010-06-10 3:25 ` [PATCH 4/12] scsi: megaraid_sas - Online controller Reset Support (OCR) " Yang, Bo
2010-08-05 20:16 ` Yang, Bo
2010-05-06 15:52 ` [PATCH 3/7] scsi: megaraid_sas - Online COntroller Reset (OCR) PART-III Yang, Bo
2010-05-07 12:54 ` Tomas Henzl [this message]
2010-05-18 20:58 ` Yang, Bo
2010-05-06 16:04 ` [PATCH 4/7] scsi: megaraid_sas - support devices update flag Yang, Bo
2010-06-10 4:16 ` [PATCH 9/12] " Yang, Bo
2010-06-18 21:05 ` Yang, Bo
2010-08-05 20:28 ` Yang, Bo
2010-05-06 16:17 ` [PATCH 5/7] scsi: megaraid_sas - Add input parameter for max_sectors Yang, Bo
2010-05-06 16:34 ` [PATCH 6/7] scsi: megaraid_sas - Add three times Online controller reset Yang, Bo
2010-05-25 16:17 ` [PATCH 6/7] scsi: megaraid_sas - Add three times Online controller reset - V2 Tomas Henzl
2010-05-25 17:32 ` James Bottomley
2010-05-26 15:48 ` Tomas Henzl
2010-05-26 21:08 ` Yang, Bo
2010-05-26 21:08 ` Yang, Bo
2010-05-28 13:31 ` Tomas Henzl
2010-06-10 4:21 ` [PATCH 11/12] scsi: megaraid_sas - Add three times Online controller reset Yang, Bo
2010-06-18 21:11 ` Yang, Bo
2010-08-05 20:35 ` Yang, Bo
2010-05-06 16:37 ` [PATCH 7/7] scsi: megaraid_sas - Version and documentation update Yang, Bo
2010-06-10 4:22 ` [PATCH 12/12] " Yang, Bo
2010-06-18 21:13 ` Yang, Bo
2010-08-05 20:38 ` Yang, Bo
2010-05-26 16:25 ` [PATCH 1/7] scsi: megaraid_sas - Online Controller Reset - I: Change the Chips related functions and Add the Chip reset functions Yang, Bo
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=4BE40D6B.5020501@redhat.com \
--to=thenzl@redhat.com \
--cc=Bo.Yang@lsi.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=James.Bottomley@suse.de \
--cc=Jayant.Daftardar@lsi.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
/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.