Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1578047 > unrolled thread
| Started by | "Andrey Jr. Melnikov" <temnota.am@gmail.com> |
|---|---|
| First post | 2017-02-10 00:40 +0100 |
| Last post | 2017-02-10 12:20 +0100 |
| Articles | 4 — 3 participants |
Back to article view | Back to linux.kernel
Re: aacraid: kernel: AAC: Host adapter dead -1 (bisected) "Andrey Jr. Melnikov" <temnota.am@gmail.com> - 2017-02-10 00:40 +0100
Re: aacraid: kernel: AAC: Host adapter dead -1 (bisected) Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-02-10 11:30 +0100
Re: aacraid: kernel: AAC: Host adapter dead -1 (bisected) Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-02-10 12:00 +0100
Re: aacraid: kernel: AAC: Host adapter dead -1 (bisected) Andrey Melnikov <temnota.am@gmail.com> - 2017-02-10 12:20 +0100
| From | "Andrey Jr. Melnikov" <temnota.am@gmail.com> |
|---|---|
| Date | 2017-02-10 00:40 +0100 |
| Subject | Re: aacraid: kernel: AAC: Host adapter dead -1 (bisected) |
| Message-ID | <t96tH-49k-1@gated-at.bofh.it> |
In article <201701151205.37563.a.miskiewicz@gmail.com> you wrote:
> Newsgroups: gmane.linux.kernel
> Hi.
> There is a bug with handling of adaptec raid cards (in my case it is Adaptec
> 3405) where kernel logs hundreds of "AAC: Host adapter dead -1" messages.
> Bug was reported previously on lkml but there was no progres in solving it.
> There is also bugzilla entry:
> https://bugzilla.kernel.org/show_bug.cgi?id=151661
> I've bisected that to commit bellow and indeed, reverting it from kernel 4.9.3
> makes messages go away.
Don't try to switch Adaptec 3405/3805 RAID cards to MSI-X interrupt mode.
Fix https://bugzilla.kernel.org/show_bug.cgi?id=151661
Signed-off-by: Andrey Jr. Melnikov <temnota.am@gmail.com>
---
diff --git a/drivers/scsi/aacraid/aacraid.h b/drivers/scsi/aacraid/aacraid.h
index 969c312de1be..2ad8403dea40 100644
--- a/drivers/scsi/aacraid/aacraid.h
+++ b/drivers/scsi/aacraid/aacraid.h
@@ -12,6 +12,9 @@
* D E F I N E S
*----------------------------------------------------------------------------*/
+#define AAC_SUBID_3805 0x02bc
+#define AAC_SUBID_3405 0x02bb
+
#define AAC_MAX_MSIX 32 /* vectors */
#define AAC_PCI_MSI_ENABLE 0x8000
diff --git a/drivers/scsi/aacraid/comminit.c b/drivers/scsi/aacraid/comminit.c
index 341ea327ae79..a61138504927 100644
--- a/drivers/scsi/aacraid/comminit.c
+++ b/drivers/scsi/aacraid/comminit.c
@@ -52,6 +52,11 @@ static inline int aac_is_msix_mode(struct aac_dev *dev)
{
u32 status;
+ /* Don't allow switch 3405/3805 cards to MSI-X interrupt mode */
+ if (dev->pdev->subsystem_device == AAC_SUBID_3405 ||
+ dev->pdev->subsystem_device == AAC_SUBID_3405)
+ return 0;
+
status = src_readl(dev, MUnit.OMR);
return (status & AAC_INT_MODE_MSIX);
}
[toc] | [next] | [standalone]
| From | Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
|---|---|
| Date | 2017-02-10 11:30 +0100 |
| Message-ID | <t9gCK-2aq-27@gated-at.bofh.it> |
| In reply to | #1578047 |
On Fri, Feb 10, 2017 at 02:25:26AM +0300, Andrey Jr. Melnikov wrote: > In article <201701151205.37563.a.miskiewicz@gmail.com> you wrote: > > Newsgroups: gmane.linux.kernel > > > > Hi. > > > There is a bug with handling of adaptec raid cards (in my case it is Adaptec > > 3405) where kernel logs hundreds of "AAC: Host adapter dead -1" messages. > > > Bug was reported previously on lkml but there was no progres in solving it. > > > There is also bugzilla entry: > > https://bugzilla.kernel.org/show_bug.cgi?id=151661 > > > I've bisected that to commit bellow and indeed, reverting it from kernel 4.9.3 > > makes messages go away. > > > Don't try to switch Adaptec 3405/3805 RAID cards to MSI-X interrupt mode. > Fix https://bugzilla.kernel.org/show_bug.cgi?id=151661 > > Signed-off-by: Andrey Jr. Melnikov <temnota.am@gmail.com> > > --- > > diff --git a/drivers/scsi/aacraid/aacraid.h b/drivers/scsi/aacraid/aacraid.h > index 969c312de1be..2ad8403dea40 100644 > --- a/drivers/scsi/aacraid/aacraid.h > +++ b/drivers/scsi/aacraid/aacraid.h <snip> Why are you sending this to me and not the scsi developers who can actually do something with this patch? Please fix up and resend. thanks, greg k-h
[toc] | [prev] | [next] | [standalone]
| From | Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
|---|---|
| Date | 2017-02-10 12:00 +0100 |
| Subject | Re: aacraid: kernel: AAC: Host adapter dead -1 (bisected) |
| Message-ID | <t9h5M-2lX-5@gated-at.bofh.it> |
| In reply to | #1578363 |
On Fri, Feb 10, 2017 at 01:45:06PM +0300, Andrey Melnikov wrote: > Cc: linux-scsi@vger.kernel.org > > 2017-02-10 13:24 GMT+03:00 Greg Kroah-Hartman <gregkh@linuxfoundation.org>: > > On Fri, Feb 10, 2017 at 02:25:26AM +0300, Andrey Jr. Melnikov wrote: > >> In article <201701151205.37563.a.miskiewicz@gmail.com> you wrote: > >> > Newsgroups: gmane.linux.kernel > >> > >> > >> > Hi. > >> > >> > There is a bug with handling of adaptec raid cards (in my case it is Adaptec > >> > 3405) where kernel logs hundreds of "AAC: Host adapter dead -1" messages. > >> > >> > Bug was reported previously on lkml but there was no progres in solving it. > >> > >> > There is also bugzilla entry: > >> > https://bugzilla.kernel.org/show_bug.cgi?id=151661 > >> > >> > I've bisected that to commit bellow and indeed, reverting it from kernel 4.9.3 > >> > makes messages go away. > >> > >> > >> Don't try to switch Adaptec 3405/3805 RAID cards to MSI-X interrupt mode. > >> Fix https://bugzilla.kernel.org/show_bug.cgi?id=151661 > >> > >> Signed-off-by: Andrey Jr. Melnikov <temnota.am@gmail.com> > >> > >> --- > >> > >> diff --git a/drivers/scsi/aacraid/aacraid.h b/drivers/scsi/aacraid/aacraid.h > >> index 969c312de1be..2ad8403dea40 100644 > >> --- a/drivers/scsi/aacraid/aacraid.h > >> +++ b/drivers/scsi/aacraid/aacraid.h > > > > <snip> > > > > Why are you sending this to me and not the scsi developers who can > > actually do something with this patch? > > Bug in bugzilla open half year ago, microsemi maintainer slowly read > his fine docs about his hardware, broken driver fills our log with > useless messages every 10 seconds. > So, make decision - apply this patch to stable 4.9.x/4.4.x tree or > revert commit 78cbccd3bd683c295a44af8050797dc4a41376ff from it. I don't understand, that's not how the stable kernels work, please read Documentation/stable_kernel_rules.txt for how the process works. Please get a patch accepted into Linus's tree and then we will be glad to apply it to the stable kernel trees. thanks, greg k-h
[toc] | [prev] | [next] | [standalone]
| From | Andrey Melnikov <temnota.am@gmail.com> |
|---|---|
| Date | 2017-02-10 12:20 +0100 |
| Subject | Re: aacraid: kernel: AAC: Host adapter dead -1 (bisected) |
| Message-ID | <t9h5M-2lX-7@gated-at.bofh.it> |
| In reply to | #1578363 |
Cc: linux-scsi@vger.kernel.org 2017-02-10 13:24 GMT+03:00 Greg Kroah-Hartman <gregkh@linuxfoundation.org>: > On Fri, Feb 10, 2017 at 02:25:26AM +0300, Andrey Jr. Melnikov wrote: >> In article <201701151205.37563.a.miskiewicz@gmail.com> you wrote: >> > Newsgroups: gmane.linux.kernel >> >> >> > Hi. >> >> > There is a bug with handling of adaptec raid cards (in my case it is Adaptec >> > 3405) where kernel logs hundreds of "AAC: Host adapter dead -1" messages. >> >> > Bug was reported previously on lkml but there was no progres in solving it. >> >> > There is also bugzilla entry: >> > https://bugzilla.kernel.org/show_bug.cgi?id=151661 >> >> > I've bisected that to commit bellow and indeed, reverting it from kernel 4.9.3 >> > makes messages go away. >> >> >> Don't try to switch Adaptec 3405/3805 RAID cards to MSI-X interrupt mode. >> Fix https://bugzilla.kernel.org/show_bug.cgi?id=151661 >> >> Signed-off-by: Andrey Jr. Melnikov <temnota.am@gmail.com> >> >> --- >> >> diff --git a/drivers/scsi/aacraid/aacraid.h b/drivers/scsi/aacraid/aacraid.h >> index 969c312de1be..2ad8403dea40 100644 >> --- a/drivers/scsi/aacraid/aacraid.h >> +++ b/drivers/scsi/aacraid/aacraid.h > > <snip> > > Why are you sending this to me and not the scsi developers who can > actually do something with this patch? Bug in bugzilla open half year ago, microsemi maintainer slowly read his fine docs about his hardware, broken driver fills our log with useless messages every 10 seconds. So, make decision - apply this patch to stable 4.9.x/4.4.x tree or revert commit 78cbccd3bd683c295a44af8050797dc4a41376ff from it.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web