* [RESEND][PATCH][SCSI] mpt2sas: Fix for issue - Unable to boot from the SAS drive connected to HBA
@ 2012-08-21 16:23 sreekanth.reddy
2012-08-21 17:48 ` Rolf Eike Beer
0 siblings, 1 reply; 2+ messages in thread
From: sreekanth.reddy @ 2012-08-21 16:23 UTC (permalink / raw)
To: linux-scsi, Sathya.Prakash, Nagalakshmi.Nandigama, jejb, stable
Cc: sreekanth.reddy
Fix for issue - Unable to boot from the SAS drive connected to HBA
This patch checks whether HBA is SAS2008 B0 controller.
if it is a SAS2008 B0 controller then it use IO-APIC interrupt instead of MSIX,
as SAS2008 B0 controller doesn't support MSIX interrupts.
Signed-off-by: Sreekanth Reddy <sreekanth.reddy@lsi.com>
Cc: <stable@kernel.org>
---
diff --git a/drivers/scsi/mpt2sas/mpt2sas_base.c b/drivers/scsi/mpt2sas/mpt2sas_base.c
index 6102ef2..fd2f4ad 100644
--- a/drivers/scsi/mpt2sas/mpt2sas_base.c
+++ b/drivers/scsi/mpt2sas/mpt2sas_base.c
@@ -1207,6 +1207,15 @@ _base_check_enable_msix(struct MPT2SAS_ADAPTER *ioc)
{
int base;
u16 message_control;
+ u8 revision;
+
+ /* Check whether controller SAS2008 B0 controller,
+ if it is a SAS2008 B0 controller use IO-APIC instead of MSIX */
+ pci_read_config_byte(ioc->pdev, PCI_CLASS_REVISION, &revision);
+ if (ioc->pdev->device == MPI2_MFGPAGE_DEVID_SAS2008 &&
+ revision == 0x01) {
+ return -EINVAL;
+ }
base = pci_find_capability(ioc->pdev, PCI_CAP_ID_MSIX);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [RESEND][PATCH][SCSI] mpt2sas: Fix for issue - Unable to boot from the SAS drive connected to HBA
2012-08-21 16:23 [RESEND][PATCH][SCSI] mpt2sas: Fix for issue - Unable to boot from the SAS drive connected to HBA sreekanth.reddy
@ 2012-08-21 17:48 ` Rolf Eike Beer
0 siblings, 0 replies; 2+ messages in thread
From: Rolf Eike Beer @ 2012-08-21 17:48 UTC (permalink / raw)
To: sreekanth.reddy
Cc: linux-scsi, Sathya.Prakash, Nagalakshmi.Nandigama, jejb, stable
[-- Attachment #1: Type: text/plain, Size: 1213 bytes --]
Am Dienstag 21 August 2012, 21:53:15 schrieb sreekanth.reddy@lsi.com:
> Fix for issue - Unable to boot from the SAS drive connected to HBA
>
> This patch checks whether HBA is SAS2008 B0 controller.
> if it is a SAS2008 B0 controller then it use IO-APIC interrupt instead of
> MSIX, as SAS2008 B0 controller doesn't support MSIX interrupts.
>
> Signed-off-by: Sreekanth Reddy <sreekanth.reddy@lsi.com>
> Cc: <stable@kernel.org>
> ---
>
> diff --git a/drivers/scsi/mpt2sas/mpt2sas_base.c
> b/drivers/scsi/mpt2sas/mpt2sas_base.c index 6102ef2..fd2f4ad 100644
> --- a/drivers/scsi/mpt2sas/mpt2sas_base.c
> +++ b/drivers/scsi/mpt2sas/mpt2sas_base.c
> @@ -1207,6 +1207,15 @@ _base_check_enable_msix(struct MPT2SAS_ADAPTER *ioc)
> {
> int base;
> u16 message_control;
> + u8 revision;
> +
> + /* Check whether controller SAS2008 B0 controller,
> + if it is a SAS2008 B0 controller use IO-APIC instead of MSIX */
> + pci_read_config_byte(ioc->pdev, PCI_CLASS_REVISION, &revision);
Nope. Just use ioc->pdev->revision here.
> + if (ioc->pdev->device == MPI2_MFGPAGE_DEVID_SAS2008 &&
> + revision == 0x01) {
> + return -EINVAL;
> + }
>
>
> base = pci_find_capability(ioc->pdev, PCI_CAP_ID_MSIX);
Eike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-08-21 17:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-21 16:23 [RESEND][PATCH][SCSI] mpt2sas: Fix for issue - Unable to boot from the SAS drive connected to HBA sreekanth.reddy
2012-08-21 17:48 ` Rolf Eike Beer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).