* megaraid driver always fails to reset adapter
@ 2005-03-01 18:36 Jun'ichi Nomura
0 siblings, 0 replies; 4+ messages in thread
From: Jun'ichi Nomura @ 2005-03-01 18:36 UTC (permalink / raw)
To: linux-scsi
Hello,
I found that the megaraid driver always fails to reset the
adapter with the following message:
megaraid: resetting the host...
megaraid mbox: reset sequence completed successfully
megaraid: fast sync command timed out
megaraid: reservation reset failed
when the "Cluster mode" of the adapter BIOS is enabled.
So, whenever the reset occurs, the adapter goes to
offline and just become unavailable.
Is this a known problem?
I tried 2.6.9 and 2.6.11-rc5 and the results were the same.
I used sg_reset to invoke reset artificially to test this.
The problem doesn't occur if I disabled the "Cluster mode"
parameter in the adapter BIOS.
I'm not sure how well the currenet megaraid driver supports
the "Cluster mode".
I appreciate if you have any idea.
Thanks,
Jun'ichi Nomura
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: megaraid driver always fails to reset adapter
@ 2005-03-01 19:20 Bagalkote, Sreenivas
2005-03-01 20:50 ` Jun'ichi Nomura
0 siblings, 1 reply; 4+ messages in thread
From: Bagalkote, Sreenivas @ 2005-03-01 19:20 UTC (permalink / raw)
To: 'Jun'ichi Nomura', linux-scsi
Please try:
In mbox_post_sync_cmd_fast(...) replace
for (i = 0; i < 0xFFFFF; i++) {
if (mbox->numstatus != 0xFF) break;
}
with
for (i = 0; i < 0xFFFFF; i++) {
if (mbox->numstatus != 0xFF) break;
rmb();
}
Additionally, increase the loop counter to a bigger value.
Thanks,
Sreenivas
LSI LOGIC Corporation
>-----Original Message-----
>From: Jun'ichi Nomura [mailto:jnomura@mtc.biglobe.ne.jp]
>Sent: Tuesday, March 01, 2005 1:36 PM
>To: linux-scsi@vger.kernel.org
>Subject: megaraid driver always fails to reset adapter
>
>Hello,
>
>I found that the megaraid driver always fails to reset the
>adapter with the following message:
> megaraid: resetting the host...
> megaraid mbox: reset sequence completed successfully
> megaraid: fast sync command timed out
> megaraid: reservation reset failed
>when the "Cluster mode" of the adapter BIOS is enabled.
>So, whenever the reset occurs, the adapter goes to
>offline and just become unavailable.
>
>Is this a known problem?
>
>I tried 2.6.9 and 2.6.11-rc5 and the results were the same.
>I used sg_reset to invoke reset artificially to test this.
>
>The problem doesn't occur if I disabled the "Cluster mode"
>parameter in the adapter BIOS.
>
>I'm not sure how well the currenet megaraid driver supports
>the "Cluster mode".
>I appreciate if you have any idea.
>
>Thanks,
>Jun'ichi Nomura
>
>-
>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
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: megaraid driver always fails to reset adapter
2005-03-01 19:20 Bagalkote, Sreenivas
@ 2005-03-01 20:50 ` Jun'ichi Nomura
0 siblings, 0 replies; 4+ messages in thread
From: Jun'ichi Nomura @ 2005-03-01 20:50 UTC (permalink / raw)
To: Bagalkote, Sreenivas; +Cc: linux-scsi
Hi,
thanks for the info.
Adding one more 'F' to the loop counter works.
i.e. 0xFFFFFF.
Just adding rmb() didn't solve the problem though it
may decrease the necessary counter value.
I don't know this value is ok for environments other than mine.
Bagalkote, Sreenivas wrote:
> Please try:
>
> In mbox_post_sync_cmd_fast(...) replace
>
> for (i = 0; i < 0xFFFFF; i++) {
> if (mbox->numstatus != 0xFF) break;
> }
>
> with
>
> for (i = 0; i < 0xFFFFF; i++) {
> if (mbox->numstatus != 0xFF) break;
> rmb();
> }
>
> Additionally, increase the loop counter to a bigger value.
>
> Thanks,
> Sreenivas
> LSI LOGIC Corporation
>
>
>>-----Original Message-----
>>From: Jun'ichi Nomura [mailto:jnomura@mtc.biglobe.ne.jp]
>>Sent: Tuesday, March 01, 2005 1:36 PM
>>To: linux-scsi@vger.kernel.org
>>Subject: megaraid driver always fails to reset adapter
>>
>>Hello,
>>
>>I found that the megaraid driver always fails to reset the
>>adapter with the following message:
>> megaraid: resetting the host...
>> megaraid mbox: reset sequence completed successfully
>> megaraid: fast sync command timed out
>> megaraid: reservation reset failed
>>when the "Cluster mode" of the adapter BIOS is enabled.
>>So, whenever the reset occurs, the adapter goes to
>>offline and just become unavailable.
>>
>>Is this a known problem?
>>
>>I tried 2.6.9 and 2.6.11-rc5 and the results were the same.
>>I used sg_reset to invoke reset artificially to test this.
>>
>>The problem doesn't occur if I disabled the "Cluster mode"
>>parameter in the adapter BIOS.
>>
>>I'm not sure how well the currenet megaraid driver supports
>>the "Cluster mode".
>>I appreciate if you have any idea.
>>
>>Thanks,
>>Jun'ichi Nomura
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: megaraid driver always fails to reset adapter
@ 2005-03-01 21:01 Bagalkote, Sreenivas
0 siblings, 0 replies; 4+ messages in thread
From: Bagalkote, Sreenivas @ 2005-03-01 21:01 UTC (permalink / raw)
To: 'Jun'ichi Nomura'; +Cc: linux-scsi
Great! Can you give us details about your environment?
If it makes sense, we will increase the loop counter in the driver.
Thanks,
Sreenivas
LSI LOGIC Corporation
>-----Original Message-----
>From: Jun'ichi Nomura [mailto:jnomura@mtc.biglobe.ne.jp]
>Sent: Tuesday, March 01, 2005 3:50 PM
>To: Bagalkote, Sreenivas
>Cc: linux-scsi@vger.kernel.org
>Subject: Re: megaraid driver always fails to reset adapter
>
>Hi,
>thanks for the info.
>
>Adding one more 'F' to the loop counter works.
>i.e. 0xFFFFFF.
>
>Just adding rmb() didn't solve the problem though it
>may decrease the necessary counter value.
>
>I don't know this value is ok for environments other than mine.
>
>Bagalkote, Sreenivas wrote:
>> Please try:
>>
>> In mbox_post_sync_cmd_fast(...) replace
>>
>> for (i = 0; i < 0xFFFFF; i++) {
>> if (mbox->numstatus != 0xFF) break;
>> }
>>
>> with
>>
>> for (i = 0; i < 0xFFFFF; i++) {
>> if (mbox->numstatus != 0xFF) break;
>> rmb();
>> }
>>
>> Additionally, increase the loop counter to a bigger value.
>>
>> Thanks,
>> Sreenivas
>> LSI LOGIC Corporation
>>
>>
>>>-----Original Message-----
>>>From: Jun'ichi Nomura [mailto:jnomura@mtc.biglobe.ne.jp]
>>>Sent: Tuesday, March 01, 2005 1:36 PM
>>>To: linux-scsi@vger.kernel.org
>>>Subject: megaraid driver always fails to reset adapter
>>>
>>>Hello,
>>>
>>>I found that the megaraid driver always fails to reset the
>>>adapter with the following message:
>>> megaraid: resetting the host...
>>> megaraid mbox: reset sequence completed successfully
>>> megaraid: fast sync command timed out
>>> megaraid: reservation reset failed
>>>when the "Cluster mode" of the adapter BIOS is enabled.
>>>So, whenever the reset occurs, the adapter goes to
>>>offline and just become unavailable.
>>>
>>>Is this a known problem?
>>>
>>>I tried 2.6.9 and 2.6.11-rc5 and the results were the same.
>>>I used sg_reset to invoke reset artificially to test this.
>>>
>>>The problem doesn't occur if I disabled the "Cluster mode"
>>>parameter in the adapter BIOS.
>>>
>>>I'm not sure how well the currenet megaraid driver supports
>>>the "Cluster mode".
>>>I appreciate if you have any idea.
>>>
>>>Thanks,
>>>Jun'ichi Nomura
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-03-01 21:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-01 18:36 megaraid driver always fails to reset adapter Jun'ichi Nomura
-- strict thread matches above, loose matches on Subject: below --
2005-03-01 19:20 Bagalkote, Sreenivas
2005-03-01 20:50 ` Jun'ichi Nomura
2005-03-01 21:01 Bagalkote, Sreenivas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox