* [patch 03/13] mptbase: reset ioc initiator during PCI resume
@ 2008-02-05 7:53 akpm
2008-02-08 0:41 ` James Bottomley
0 siblings, 1 reply; 3+ messages in thread
From: akpm @ 2008-02-05 7:53 UTC (permalink / raw)
To: James.Bottomley; +Cc: linux-scsi, akpm, djwong
From: "Darrick J. Wong" <djwong@us.ibm.com>
It appears that the LSI SAS 1064E chip needs to be reset after a
suspend/resume cycle before the driver attempts further communications with
the chip. Without this patch, resuming the chip results in this error
message being printed repeatedly and no more disk I/O.
mptbase: ioc0: ERROR - Invalid IOC facts reply, msgLength=0 offsetof=6!
So far it seems to fix suspend/resume on all the MPT Fusion cards I have
(SAS and U320 SCSI) but since I don't know the internals of that chip I
can't say for sure if this is a proper fix.
Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
drivers/message/fusion/mptbase.c | 6 ++++++
1 file changed, 6 insertions(+)
diff -puN drivers/message/fusion/mptbase.c~mptbase-reset-ioc-initiator-during-pci-resume drivers/message/fusion/mptbase.c
--- a/drivers/message/fusion/mptbase.c~mptbase-reset-ioc-initiator-during-pci-resume
+++ a/drivers/message/fusion/mptbase.c
@@ -1829,6 +1829,12 @@ mpt_resume(struct pci_dev *pdev)
(mpt_GetIocState(ioc, 1) >> MPI_IOC_STATE_SHIFT),
CHIPREG_READ32(&ioc->chip->Doorbell));
+ /* put ioc into READY_STATE */
+ if(SendIocReset(ioc, MPI_FUNCTION_IOC_MESSAGE_UNIT_RESET, CAN_SLEEP)) {
+ printk(MYIOC_s_ERR_FMT
+ "pci-resume: IOC msg unit reset failed!\n", ioc->name);
+ }
+
/* bring ioc to operational state */
if ((recovery_state = mpt_do_ioc_recovery(ioc,
MPT_HOSTEVENT_IOC_RECOVER, CAN_SLEEP)) != 0) {
_
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [patch 03/13] mptbase: reset ioc initiator during PCI resume
2008-02-05 7:53 [patch 03/13] mptbase: reset ioc initiator during PCI resume akpm
@ 2008-02-08 0:41 ` James Bottomley
2008-02-08 1:23 ` Darrick J. Wong
0 siblings, 1 reply; 3+ messages in thread
From: James Bottomley @ 2008-02-08 0:41 UTC (permalink / raw)
To: akpm; +Cc: linux-scsi, djwong, Moore, Eric
On Mon, 2008-02-04 at 23:53 -0800, akpm@linux-foundation.org wrote:
> From: "Darrick J. Wong" <djwong@us.ibm.com>
>
> It appears that the LSI SAS 1064E chip needs to be reset after a
> suspend/resume cycle before the driver attempts further communications with
> the chip. Without this patch, resuming the chip results in this error
> message being printed repeatedly and no more disk I/O.
>
> mptbase: ioc0: ERROR - Invalid IOC facts reply, msgLength=0 offsetof=6!
>
> So far it seems to fix suspend/resume on all the MPT Fusion cards I have
> (SAS and U320 SCSI) but since I don't know the internals of that chip I
> can't say for sure if this is a proper fix.
>
> Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Ping on this, please Eric.
James
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [patch 03/13] mptbase: reset ioc initiator during PCI resume
2008-02-08 0:41 ` James Bottomley
@ 2008-02-08 1:23 ` Darrick J. Wong
0 siblings, 0 replies; 3+ messages in thread
From: Darrick J. Wong @ 2008-02-08 1:23 UTC (permalink / raw)
To: James Bottomley; +Cc: akpm, linux-scsi, Moore, Eric
On Thu, Feb 07, 2008 at 06:41:25PM -0600, James Bottomley wrote:
> On Mon, 2008-02-04 at 23:53 -0800, akpm@linux-foundation.org wrote:
> > From: "Darrick J. Wong" <djwong@us.ibm.com>
> >
> > It appears that the LSI SAS 1064E chip needs to be reset after a
> > suspend/resume cycle before the driver attempts further communications with
> > the chip. Without this patch, resuming the chip results in this error
> > message being printed repeatedly and no more disk I/O.
> >
> > mptbase: ioc0: ERROR - Invalid IOC facts reply, msgLength=0 offsetof=6!
> >
> > So far it seems to fix suspend/resume on all the MPT Fusion cards I have
> > (SAS and U320 SCSI) but since I don't know the internals of that chip I
> > can't say for sure if this is a proper fix.
> >
> > Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
> > Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
>
> Ping on this, please Eric.
As far as I can tell, Eric isn't really involved with this patch
anymore, and handed it over to Sathya.Prakash@lsi.com. I received email
from him (her? Apologies, I'm not sufficiently familiar with Indian
names) this morning saying that a modified version of it would go out to
linux-scsi in a day or two.
--D
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-02-08 1:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-05 7:53 [patch 03/13] mptbase: reset ioc initiator during PCI resume akpm
2008-02-08 0:41 ` James Bottomley
2008-02-08 1:23 ` Darrick J. Wong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox