diff options
author | Eric Moore <eric.moore@lsi.com> | 2009-04-21 15:42:13 -0600 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-04-27 10:54:04 -0500 |
commit | 99bb214b1b652c475bb3d79cede47ecb76b758fa (patch) | |
tree | e9e540c07496b8388c03ea8bf279a71089353200 /drivers/scsi/mpt2sas/mpt2sas_ctl.h | |
parent | 8901cbb45e2a6657adf0e6eea4276ef452dee011 (diff) | |
download | kernel_samsung_smdk4412-99bb214b1b652c475bb3d79cede47ecb76b758fa.tar.gz kernel_samsung_smdk4412-99bb214b1b652c475bb3d79cede47ecb76b758fa.tar.bz2 kernel_samsung_smdk4412-99bb214b1b652c475bb3d79cede47ecb76b758fa.zip |
[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>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpt2sas_ctl.h')
-rw-r--r-- | drivers/scsi/mpt2sas/mpt2sas_ctl.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/scsi/mpt2sas/mpt2sas_ctl.h b/drivers/scsi/mpt2sas/mpt2sas_ctl.h index 5bd7d4cfa81..4da11435533 100644 --- a/drivers/scsi/mpt2sas/mpt2sas_ctl.h +++ b/drivers/scsi/mpt2sas/mpt2sas_ctl.h @@ -295,8 +295,9 @@ struct mpt2_ioctl_btdh_mapping { /* status bits for ioc->diag_buffer_status */ -#define MPT2_DIAG_BUFFER_IS_REGISTERED (0x01) -#define MPT2_DIAG_BUFFER_IS_RELEASED (0x02) +#define MPT2_DIAG_BUFFER_IS_REGISTERED (0x01) +#define MPT2_DIAG_BUFFER_IS_RELEASED (0x02) +#define MPT2_DIAG_BUFFER_IS_DIAG_RESET (0x04) /* application flags for mpt2_diag_register, mpt2_diag_query */ #define MPT2_APP_FLAGS_APP_OWNED (0x0001) |