Patch "[PATCH 063/135] megaraid_sas: Do not allow PCI access during OCR" has been added to the 4.4-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
[PATCH 063/135] megaraid_sas: Do not allow PCI access during OCR
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
0063-megaraid_sas-Do-not-allow-PCI-access-during-OCR.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
b3659ad8b1a778e2e5a2845c40512b2598141159Mon Sep 17 00:00:00 2001
From: Sumit Saxena <[email protected]>
Date: Thu, 28 Jan 2016 21:04:22 +0530
Subject: [PATCH 063/135] megaraid_sas: Do not allow PCI access during OCR
[ Upstream commit 11c71cb4ab7cd901b9d6f0ff267c102778c1c8ef ]
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.
--- drivers/scsi/megaraid/megaraid_sas.h | 2 drivers/scsi/megaraid/megaraid_sas_base.c | 254 +++++++++--------------------- 2 files changed, 82 insertions(+), 174 deletions(-)
drivers/scsi/megaraid/megaraid_sas.h +2 -0
@@ -1083,6 +1083,8 @@ struct megasas_ctrl_info {#define VD_EXT_DEBUG 0 +#define SCAN_PD_CHANNEL 0x1 +#define SCAN_VD_CHANNEL 0x2enum MR_SCSI_CMD_TYPE {READ_WRITE_LDIO =0 ,
drivers/scsi/megaraid/megaraid_sas_base.c +80 -174
331 lines not on this page · raw message
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/0063-megaraid_sas-Do-not-allow-PCI-access-during-OCR.patch queue-4.4/0064-megaraid_sas-Fix-SMAP-issue.patch queue-4.4/0062-megaraid-Fix-possible-NULL-pointer-deference-in-mrai.patch