[SCSI] mpt2sas : release diagnotic buffers prior host reset
authorEric Moore <eric.moore@lsi.com>
Tue, 21 Apr 2009 21:42:13 +0000 (15:42 -0600)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 27 Apr 2009 15:54:04 +0000 (10:54 -0500)
commit99bb214b1b652c475bb3d79cede47ecb76b758fa
treee9e540c07496b8388c03ea8bf279a71089353200
parent8901cbb45e2a6657adf0e6eea4276ef452dee011
[SCSI] mpt2sas : release diagnotic buffers prior host reset

Diagnostic buffer support is already there in the driver.  This support allows
applications to pull ring buffers from controller firmware for debugging
firmware related issues.

What this patch does is sends reqeust to firmware to release the buffers prior
to host reset.   This will allow what ever debug info is there prior to reset
to be dma'd to host memory. With out this fix, some of the debug data would
been lost.

Signed-off-by: Eric Moore <eric.moore@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/mpt2sas/mpt2sas_ctl.c
drivers/scsi/mpt2sas/mpt2sas_ctl.h