* aacraid broken in git
@ 2008-04-19 1:55 Yinghai Lu
2008-04-19 12:33 ` Mark Salyzyn
0 siblings, 1 reply; 7+ messages in thread
From: Yinghai Lu @ 2008-04-19 1:55 UTC (permalink / raw)
To: Mark_Salyzyn, James.Bottomley; +Cc: linux-kernel, linux-scsi
4/18 2.6-git got
Calling initcall 0xffffffff80f10f97: aac_init+0x0/0x95()
Adaptec aacraid driver 1.1-5[2455]-ms
ACPI: PCI Interrupt 0000:04:00.0[A] -> Link [LNEB] -> GSI 18 (level, low) -> IRQ
18
PCI: Enabling bus mastering for device 0000:04:00.0
PCI: Setting latency timer of device 0000:04:00.0 to 64
AAC0: kernel 5.2-0[15594]
AAC0: monitor 5.2-0[15594]
AAC0: bios 5.2-0[15594]
AAC0: serial AA0009
AAC0: Non-DASD support enabled.
AAC0: 64bit support enabled.
AAC0: 64 Bit DAC enabled
aac_fib_free, XferState != 0, fibptr = 0xffff8108232e0000, XferState = 0x810ad
ACPI: PCI interrupt for device 0000:04:00.0 disabled
aacraid: probe of 0000:04:00.0 failed with error -4
initcall 0xffffffff80f10f97: aac_init+0x0/0x95() returned 0.
initcall 0xffffffff80f10f97 ran for 286 msecs: aac_init+0x0/0x95()
Linux LBSuse 2.6.25-x86-latest.git-01659-g1f8551e #106 SMP Fri Apr 18
18:24:39 PDT 2008 x86_64 x86_64 x86_64 GNU/Linux
YH
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: aacraid broken in git
2008-04-19 1:55 aacraid broken in git Yinghai Lu
@ 2008-04-19 12:33 ` Mark Salyzyn
2008-04-19 20:56 ` Yinghai Lu
2008-04-22 0:42 ` Yinghai Lu
0 siblings, 2 replies; 7+ messages in thread
From: Mark Salyzyn @ 2008-04-19 12:33 UTC (permalink / raw)
To: Yinghai Lu; +Cc: James.Bottomley, linux-kernel, linux-scsi
Why is ACPI disabling the interrupt? Maybe do bisects on the ACPI
subsystem as well.
Sincerely -- Mark Salyzyn
On Apr 18, 2008, at 9:55 PM, Yinghai Lu wrote:
> 4/18 2.6-git got
>
> Calling initcall 0xffffffff80f10f97: aac_init+0x0/0x95()
> Adaptec aacraid driver 1.1-5[2455]-ms
> ACPI: PCI Interrupt 0000:04:00.0[A] -> Link [LNEB] -> GSI 18 (level,
> low) -> IRQ
> 18
> PCI: Enabling bus mastering for device 0000:04:00.0
> PCI: Setting latency timer of device 0000:04:00.0 to 64
> AAC0: kernel 5.2-0[15594]
> AAC0: monitor 5.2-0[15594]
> AAC0: bios 5.2-0[15594]
> AAC0: serial AA0009
> AAC0: Non-DASD support enabled.
> AAC0: 64bit support enabled.
> AAC0: 64 Bit DAC enabled
> aac_fib_free, XferState != 0, fibptr = 0xffff8108232e0000, XferState
> = 0x810ad
> ACPI: PCI interrupt for device 0000:04:00.0 disabled
> aacraid: probe of 0000:04:00.0 failed with error -4
> initcall 0xffffffff80f10f97: aac_init+0x0/0x95() returned 0.
> initcall 0xffffffff80f10f97 ran for 286 msecs: aac_init+0x0/0x95()
>
>
> Linux LBSuse 2.6.25-x86-latest.git-01659-g1f8551e #106 SMP Fri Apr 18
> 18:24:39 PDT 2008 x86_64 x86_64 x86_64 GNU/Linux
>
> YH
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: aacraid broken in git
2008-04-19 12:33 ` Mark Salyzyn
@ 2008-04-19 20:56 ` Yinghai Lu
2008-04-22 0:42 ` Yinghai Lu
1 sibling, 0 replies; 7+ messages in thread
From: Yinghai Lu @ 2008-04-19 20:56 UTC (permalink / raw)
To: Mark Salyzyn; +Cc: James.Bottomley, linux-kernel, linux-scsi
On Sat, Apr 19, 2008 at 5:33 AM, Mark Salyzyn <Mark_Salyzyn@adaptec.com> wrote:
> Why is ACPI disabling the interrupt? Maybe do bisects on the ACPI subsystem
> as well.
probe fail, acpi disable irq routing for it.
YH
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: aacraid broken in git
2008-04-19 12:33 ` Mark Salyzyn
2008-04-19 20:56 ` Yinghai Lu
@ 2008-04-22 0:42 ` Yinghai Lu
2008-04-23 12:16 ` [PATCH] aacraid: Fix down_interruptible() to check the return value take 2 (was: aacraid broken in git) Mark Salyzyn
1 sibling, 1 reply; 7+ messages in thread
From: Yinghai Lu @ 2008-04-22 0:42 UTC (permalink / raw)
To: Mark Salyzyn; +Cc: James.Bottomley, linux-kernel, linux-scsi
bisected to:
yhlu@mpk12-office-77-185:~/xx/xx/kernel/linux-2.6> git-bisect good
e6990c6448ca9359b6d4ad027c0a6efbf4379e64 is first bad commit
commit e6990c6448ca9359b6d4ad027c0a6efbf4379e64
Author: Mark Salyzyn <Mark_Salyzyn@adaptec.com>
Date: Mon Apr 14 14:20:16 2008 -0400
[SCSI] aacraid: Fix down_interruptible() to check the return value
Instead of ignoring the return value in aac_fib_send() return 2 to
indicate to the layers above that fib transmission was aborted due to
timeout.
Signed-off-by: Mark Salyzyn <aacraid@adaptec.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
:040000 040000 2f23bf33d76d6f37c558251003f88537c6e639fe
63d59091ca7ac527b5106540eea06d7b6649862d M drivers
^ permalink raw reply [flat|nested] 7+ messages in thread* [PATCH] aacraid: Fix down_interruptible() to check the return value take 2 (was: aacraid broken in git)
2008-04-22 0:42 ` Yinghai Lu
@ 2008-04-23 12:16 ` Mark Salyzyn
2008-04-23 21:47 ` Yinghai Lu
0 siblings, 1 reply; 7+ messages in thread
From: Mark Salyzyn @ 2008-04-23 12:16 UTC (permalink / raw)
To: Linux-Scsi; +Cc: James Bottomley, linux-kernel, Andrew Morton, Yinghai Lu
[-- Attachment #1: Type: text/plain, Size: 2072 bytes --]
On Apr 21, 2008, at 8:42 PM, Yinghai Lu wrote:
> bisected to:
>
> yhlu@mpk12-office-77-185:~/xx/xx/kernel/linux-2.6> git-bisect good
> e6990c6448ca9359b6d4ad027c0a6efbf4379e64 is first bad commit
> commit e6990c6448ca9359b6d4ad027c0a6efbf4379e64
> Author: Mark Salyzyn <Mark_Salyzyn@adaptec.com>
> Date: Mon Apr 14 14:20:16 2008 -0400
>
> [SCSI] aacraid: Fix down_interruptible() to check the return value
>
> Instead of ignoring the return value in aac_fib_send() return 2 to
> indicate to the layers above that fib transmission was aborted
> due to
> timeout.
>
> Signed-off-by: Mark Salyzyn <aacraid@adaptec.com>
> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com
> >
>
> :040000 040000 2f23bf33d76d6f37c558251003f88537c6e639fe
> 63d59091ca7ac527b5106540eea06d7b6649862d M drivers
The return value for down_interruptible was incorrectly checked!
updated patch enclosed.
This attached patch is against current scsi-misc-2.6 (minus original
down_interruptible patch).
ObligatoryDisclaimer: Please accept my condolences regarding Outlook's
handling of patch attachments (inline gets damaged, please use
attachment).
Signed-off-by: Mark Salyzyn <aacraid@adaptec.com>
drivers/scsi/aacraid/commsup.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff -ru a/drivers/scsi/aacraid/commsup.c b/drivers/scsi/aacraid/
commsup.c
--- a/drivers/scsi/aacraid/commsup.c 2008-04-14 14:08:00.737201138 -0400
+++ b/drivers/scsi/aacraid/commsup.c 2008-04-14 14:09:34.019252960 -0400
@@ -515,10 +515,12 @@
}
udelay(5);
}
- } else
- (void)down_interruptible(&fibptr->event_wait);
+ } else if (down_interruptible(&fibptr->event_wait)) {
+ fibptr->done = 2;
+ up(&fibptr->event_wait);
+ }
spin_lock_irqsave(&fibptr->event_lock, flags);
- if (fibptr->done == 0) {
+ if ((fibptr->done == 0) || (fibptr->done == 2)) {
fibptr->done = 2; /* Tell interrupt we aborted */
spin_unlock_irqrestore(&fibptr->event_lock, flags);
return -EINTR;
Sincerely - Mark Salyzyn
[-- Attachment #2: aacraid_down_interruptible2.patch --]
[-- Type: application/octet-stream, Size: 706 bytes --]
diff -ru a/drivers/scsi/aacraid/commsup.c b/drivers/scsi/aacraid/commsup.c
--- a/drivers/scsi/aacraid/commsup.c 2008-04-14 14:08:00.737201138 -0400
+++ b/drivers/scsi/aacraid/commsup.c 2008-04-14 14:09:34.019252960 -0400
@@ -515,10 +515,12 @@
}
udelay(5);
}
- } else
- (void)down_interruptible(&fibptr->event_wait);
+ } else if (down_interruptible(&fibptr->event_wait)) {
+ fibptr->done = 2;
+ up(&fibptr->event_wait);
+ }
spin_lock_irqsave(&fibptr->event_lock, flags);
- if (fibptr->done == 0) {
+ if ((fibptr->done == 0) || (fibptr->done == 2)) {
fibptr->done = 2; /* Tell interrupt we aborted */
spin_unlock_irqrestore(&fibptr->event_lock, flags);
return -EINTR;
[-- Attachment #3: Type: text/plain, Size: 3 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH] aacraid: Fix down_interruptible() to check the return value take 2 (was: aacraid broken in git)
2008-04-23 12:16 ` [PATCH] aacraid: Fix down_interruptible() to check the return value take 2 (was: aacraid broken in git) Mark Salyzyn
@ 2008-04-23 21:47 ` Yinghai Lu
0 siblings, 0 replies; 7+ messages in thread
From: Yinghai Lu @ 2008-04-23 21:47 UTC (permalink / raw)
To: Mark Salyzyn; +Cc: Linux-Scsi, James Bottomley, linux-kernel, Andrew Morton
On Wed, Apr 23, 2008 at 5:16 AM, Mark Salyzyn <Mark_Salyzyn@adaptec.com> wrote:
> On Apr 21, 2008, at 8:42 PM, Yinghai Lu wrote:
>
>
> > bisected to:
> >
> > yhlu@mpk12-office-77-185:~/xx/xx/kernel/linux-2.6> git-bisect good
> > e6990c6448ca9359b6d4ad027c0a6efbf4379e64 is first bad commit
> > commit e6990c6448ca9359b6d4ad027c0a6efbf4379e64
> > Author: Mark Salyzyn <Mark_Salyzyn@adaptec.com>
> > Date: Mon Apr 14 14:20:16 2008 -0400
> >
> > [SCSI] aacraid: Fix down_interruptible() to check the return value
> >
> > Instead of ignoring the return value in aac_fib_send() return 2 to
> > indicate to the layers above that fib transmission was aborted due to
> > timeout.
> >
> > Signed-off-by: Mark Salyzyn <aacraid@adaptec.com>
> > Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
> >
> > :040000 040000 2f23bf33d76d6f37c558251003f88537c6e639fe
> > 63d59091ca7ac527b5106540eea06d7b6649862d M drivers
> >
>
>
> The return value for down_interruptible was incorrectly checked! updated
> patch enclosed.
>
> This attached patch is against current scsi-misc-2.6 (minus original
> down_interruptible patch).
>
> ObligatoryDisclaimer: Please accept my condolences regarding Outlook's
> handling of patch attachments (inline gets damaged, please use attachment).
>
> Signed-off-by: Mark Salyzyn <aacraid@adaptec.com>
>
> drivers/scsi/aacraid/commsup.c | 8 +++++---
> 1 file changed, 5 insertions(+), 3 deletions(-)
>
> diff -ru a/drivers/scsi/aacraid/commsup.c b/drivers/scsi/aacraid/commsup.c
> --- a/drivers/scsi/aacraid/commsup.c 2008-04-14 14:08:00.737201138 -0400
> +++ b/drivers/scsi/aacraid/commsup.c 2008-04-14 14:09:34.019252960 -0400
> @@ -515,10 +515,12 @@
> }
> udelay(5);
> }
> - } else
> - (void)down_interruptible(&fibptr->event_wait);
> + } else if (down_interruptible(&fibptr->event_wait)) {
> + fibptr->done = 2;
> + up(&fibptr->event_wait);
> + }
> spin_lock_irqsave(&fibptr->event_lock, flags);
> - if (fibptr->done == 0) {
> + if ((fibptr->done == 0) || (fibptr->done == 2)) {
> fibptr->done = 2; /* Tell interrupt we aborted */
> spin_unlock_irqrestore(&fibptr->event_lock, flags);
> return -EINTR;
>
it works.
Thanks
YH
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re:aacraid broken in git
@ 2008-04-19 9:04 devzero
2008-04-19 20:55 ` aacraid " Yinghai Lu
0 siblings, 1 reply; 7+ messages in thread
From: devzero @ 2008-04-19 9:04 UTC (permalink / raw)
To: linux-kernel, linux-scsi
what was the last working kernel for you?
any chance to bisect ?
List: linux-scsi
Subject: aacraid broken in git
From: "Yinghai Lu" <yhlu.kernel () gmail ! com>
Date: 2008-04-19 1:55:42
Message-ID: 86802c440804181855t615a5616g62d083695ca8ea08 () mail ! gmail ! com
[Download message RAW]
4/18 2.6-git got
Calling initcall 0xffffffff80f10f97: aac_init+0x0/0x95()
Adaptec aacraid driver 1.1-5[2455]-ms
ACPI: PCI Interrupt 0000:04:00.0[A] -> Link [LNEB] -> GSI 18 (level, low) -> IRQ
18
PCI: Enabling bus mastering for device 0000:04:00.0
PCI: Setting latency timer of device 0000:04:00.0 to 64
AAC0: kernel 5.2-0[15594]
AAC0: monitor 5.2-0[15594]
AAC0: bios 5.2-0[15594]
AAC0: serial AA0009
AAC0: Non-DASD support enabled.
AAC0: 64bit support enabled.
AAC0: 64 Bit DAC enabled
aac_fib_free, XferState != 0, fibptr = 0xffff8108232e0000, XferState = 0x810ad
ACPI: PCI interrupt for device 0000:04:00.0 disabled
aacraid: probe of 0000:04:00.0 failed with error -4
initcall 0xffffffff80f10f97: aac_init+0x0/0x95() returned 0.
initcall 0xffffffff80f10f97 ran for 286 msecs: aac_init+0x0/0x95()
Linux LBSuse 2.6.25-x86-latest.git-01659-g1f8551e #106 SMP Fri Apr 18
18:24:39 PDT 2008 x86_64 x86_64 x86_64 GNU/Linux
YH
______________________________________________________
Bis 50 MB Dateianhänge? Kein Problem!
http://freemail.web.de/club/landingpage.htm/?mc=025556
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-04-23 21:47 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-19 1:55 aacraid broken in git Yinghai Lu
2008-04-19 12:33 ` Mark Salyzyn
2008-04-19 20:56 ` Yinghai Lu
2008-04-22 0:42 ` Yinghai Lu
2008-04-23 12:16 ` [PATCH] aacraid: Fix down_interruptible() to check the return value take 2 (was: aacraid broken in git) Mark Salyzyn
2008-04-23 21:47 ` Yinghai Lu
2008-04-19 9:04 Re:aacraid broken in git devzero
2008-04-19 20:55 ` aacraid " Yinghai Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®