megaraid_sas: megaraid_sas driver init fails in kdump kernel
authorSumit.Saxena@lsi.com <Sumit.Saxena@lsi.com>
Mon, 15 Jul 2013 20:56:05 +0000 (02:26 +0530)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 10 Sep 2013 00:57:19 +0000 (01:57 +0100)
commit8f4b02806149a4d591c60342c3dd6de587a7dd54
treeffc8b01efec8d7b0e72be1c5f48fa22db422f604
parenteb33451dce2704cbd2638e2b950f2c373222ddd5
megaraid_sas: megaraid_sas driver init fails in kdump kernel

commit 6431f5d7c6025f8b007af06ea090de308f7e6881 upstream.

Problem: When Hardware IOMMU is on, megaraid_sas driver initialization fails
in kdump kernel with LSI MegaRAID controller(device id-0x73).

Actually this issue needs fix in firmware, but for firmware running in field,
this driver fix is proposed to resolve the issue.  At firmware initialization
time, if firmware does not come to ready state, driver will reset the adapter
and retry for firmware transition to ready state unconditionally(not only
executed for kdump kernel).

Signed-off-by: Sumit Saxena <sumit.saxena@lsi.com>
Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/scsi/megaraid/megaraid_sas_base.c