linux_dsm_epyc7002/drivers/scsi/megaraid
Sumit Saxena 11c71cb4ab megaraid_sas: Do not allow PCI access during OCR
This patch will do synhronization between OCR function and AEN function
using "reset_mutex" lock.  reset_mutex will be acquired only in the
first half of the AEN function which issues a DCMD. Second half of the
function which calls SCSI API (scsi_add_device/scsi_remove_device)
should be out of reset_mutex to avoid deadlock between scsi_eh thread
and driver.

During chip reset (inside OCR function), there should not be any PCI
access and AEN function (which is called in delayed context) may be
firing DCMDs (doing PCI writes) when chip reset is happening in parallel
which will cause FW fault. This patch will solve the problem by making
AEN thread and OCR thread mutually exclusive.

Signed-off-by: Sumit Saxena <sumit.saxena@avagotech.com>
Signed-off-by: Kashyap Desai <kashyap.desai@avagotech.com>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2016-02-23 21:27:02 -05:00
..
Kconfig.megaraid
Makefile
mbox_defs.h Fix common misspellings 2011-03-31 11:26:23 -03:00
mega_common.h scsi: use 64-bit LUNs 2014-07-17 22:07:37 +02:00
megaraid_ioctl.h
megaraid_mbox.c scsi: drop reason argument from ->change_queue_depth 2014-11-24 14:45:27 +01:00
megaraid_mbox.h
megaraid_mm.c megaraid: Fix possible NULL pointer deference in mraid_mm_ioctl 2016-01-08 13:03:53 -05:00
megaraid_mm.h
megaraid_sas_base.c megaraid_sas: Do not allow PCI access during OCR 2016-02-23 21:27:02 -05:00
megaraid_sas_fp.c megaraid_sas : Remove debug print from function megasas_update_span_set 2015-11-02 22:58:29 -05:00
megaraid_sas_fusion.c megaraid_sas: Fix sparse warning 2015-11-09 11:07:16 -05:00
megaraid_sas_fusion.h megaraid_sas: Remove PCI id checks 2015-10-29 03:14:54 -04:00
megaraid_sas.h megaraid_sas: Do not allow PCI access during OCR 2016-02-23 21:27:02 -05:00