[3.13.y-ckt stable] Patch "megaraid_sas: disable interrupt_mask before enabling hardware interrupts" has been added to staging queue

Kamal Mostafa kamal at canonical.com
Tue Mar 31 18:45:19 UTC 2015

This is a note to let you know that I have just added a patch titled

    megaraid_sas: disable interrupt_mask before enabling hardware interrupts

to the linux-3.13.y-queue branch of the 3.13.y-ckt extended stable tree 
which can be found at:


This patch is scheduled to be released in version 3.13.11-ckt18.

If you, or anyone else, feels it should not be added to this tree, please 
reply to this email.

For more information about the 3.13.y-ckt tree, see



>From 909d26449d7fe1400e80ea577ed933d595da0278 Mon Sep 17 00:00:00 2001
From: "Sumit.Saxena at avagotech.com" <Sumit.Saxena at avagotech.com>
Date: Mon, 5 Jan 2015 20:06:13 +0530
Subject: megaraid_sas: disable interrupt_mask before enabling hardware

commit c2ced1719a1b903350955a511e1666e6d05a7f5b upstream.

Update driver "mask_interrupts" before enable/disable hardware interrupt
in order to avoid missing interrupts because of "mask_interrupts" still
set to 1 and hardware interrupts are enabled.

Signed-off-by: Sumit Saxena <sumit.saxena at avagotech.com>
Signed-off-by: Chaitra Basappa <chaitra.basappa at avagotech.com>
Reviewed-by: Martin K. Petersen <martin.petersen at oracle.com>
Signed-off-by: Christoph Hellwig <hch at lst.de>
Signed-off-by: Kamal Mostafa <kamal at canonical.com>
 drivers/scsi/megaraid/megaraid_sas_fusion.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c b/drivers/scsi/megaraid/megaraid_sas_fusion.c
index f655592..a1f04e3 100644
--- a/drivers/scsi/megaraid/megaraid_sas_fusion.c
+++ b/drivers/scsi/megaraid/megaraid_sas_fusion.c
@@ -92,6 +92,8 @@ megasas_enable_intr_fusion(struct megasas_instance *instance)
 	struct megasas_register_set __iomem *regs;
 	regs = instance->reg_set;
+	instance->mask_interrupts = 0;
 	/* For Thunderbolt/Invader also clear intr on enable */
 	writel(~0, &regs->outbound_intr_status);
@@ -100,7 +102,6 @@ megasas_enable_intr_fusion(struct megasas_instance *instance)

 	/* Dummy readl to force pci flush */
-	instance->mask_interrupts = 0;


More information about the kernel-team mailing list