Sym2 scsi hang on boot on sparc64
3.16 scsi worked fine, 3.17-rc1 misbehaves on 3 of my sparc64 test machines. E220R and E420R are with onboard 5c3875, V210 is with onboarc 53c1010 and all behave the same. Any ideas whre to dig deeper? bisection might be nontrivial, because of sparc64 changes that are OK on 3.17-rc1 again - but is possible if nothing else helps.
[ 164.639697] PCI: Enabling device: (0000:00:03.0), cmd 147 [ 164.705076] sym0: <875> rev 0x14 at pci 0000:00:03.0 irq 13 [ 164.858446] sym0: No NVRAM, ID 7, Fast-20, SE, parity checking [ 164.935031] sym0: SCSI BUS has been reset. [ 164.983113] scsi host0: sym-2.2.3 [ 165.026358] PCI: Enabling device: (0000:00:03.1), cmd 3 [ 165.089634] sym1: <875> rev 0x14 at pci 0000:00:03.1 irq 14 [ 165.242820] sym1: No NVRAM, ID 7, Fast-20, SE, parity checking [ 165.319227] sym1: SCSI BUS has been reset. [ 165.367281] scsi host1: sym-2.2.3 [...] [ 388.835999] INFO: task swapper/0:1 blocked for more than 120 seconds. [ 388.912181] Not tainted 3.17.0-rc1 #46 [ 388.963187] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 389.056953] swapper/0 D 0000000000483958 7584 1 0 0x200000001000000 [ 389.148575] Call Trace: [ 389.177747] [000000000082e5fc] schedule+0x1c/0x80 [ 389.235024] [0000000000483958] async_synchronize_cookie_domain+0x58/0x100 [ 389.317301] [0000000000483a28] async_synchronize_full+0x8/0x20 [ 389.388133] [00000000006ebe04] wait_for_device_probe+0x64/0x80 [ 389.458938] [00000000009dcffc] prepare_namespace+0x4/0x1b8 [ 389.525590] [00000000009dcbac] kernel_init_freeable+0x1c0/0x1d8 [ 389.597450] [00000000008298e4] kernel_init+0x4/0x100 [ 389.657868] [00000000004060c4] ret_from_fork+0x1c/0x2c [ 389.720324] [0000000000000000] (null) [ 389.775518] no locks held by swapper/0/1.
Signature · 1 line
Meelis Roos ([email protected])
James Bottomley
maintainerQuoted 5 lines · Meelis Roos
3.16 scsi worked fine, 3.17-rc1 misbehaves on 3 of my sparc64 test machines. E220R and E420R are with onboard 5c3875, V210 is with onboarc 53c1010 and all behave the same. Any ideas whre to dig deeper? bisection might be nontrivial, because of sparc64 changes that are OK on 3.17-rc1 again - but is possible if nothing else helps.
We've got a parisc with an 875 as a root SCSI bus ... I haven't got around to building for it yet, but I might find time to try today.
Quoted 10 lines
[ 164.639697] PCI: Enabling device: (0000:00:03.0), cmd 147 [ 164.705076] sym0: <875> rev 0x14 at pci 0000:00:03.0 irq 13 [ 164.858446] sym0: No NVRAM, ID 7, Fast-20, SE, parity checking [ 164.935031] sym0: SCSI BUS has been reset. [ 164.983113] scsi host0: sym-2.2.3 [ 165.026358] PCI: Enabling device: (0000:00:03.1), cmd 3 [ 165.089634] sym1: <875> rev 0x14 at pci 0000:00:03.1 irq 14 [ 165.242820] sym1: No NVRAM, ID 7, Fast-20, SE, parity checking [ 165.319227] sym1: SCSI BUS has been reset. [ 165.367281] scsi host1: sym-2.2.3
Does it detect drives in the bit you cut? I ask because one of the symptoms of a misrouted irq is random problems with bring up. However, if anything is detected, then the irq must be OK.
James
Quoted 25 lines
[ 388.835999] INFO: task swapper/0:1 blocked for more than 120 seconds. [ 388.912181] Not tainted 3.17.0-rc1 #46 [ 388.963187] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 389.056953] swapper/0 D 0000000000483958 7584 1 0 0x200000001000000 [ 389.148575] Call Trace: [ 389.177747] [000000000082e5fc] schedule+0x1c/0x80 [ 389.235024] [0000000000483958] async_synchronize_cookie_domain+0x58/0x100 [ 389.317301] [0000000000483a28] async_synchronize_full+0x8/0x20 [ 389.388133] [00000000006ebe04] wait_for_device_probe+0x64/0x80 [ 389.458938] [00000000009dcffc] prepare_namespace+0x4/0x1b8 [ 389.525590] [00000000009dcbac] kernel_init_freeable+0x1c0/0x1d8 [ 389.597450] [00000000008298e4] kernel_init+0x4/0x100 [ 389.657868] [00000000004060c4] ret_from_fork+0x1c/0x2c [ 389.720324] [0000000000000000] (null) [ 389.775518] no locks held by swapper/0/1.Signature · 5 lines
Meelis Roos ([email protected]) -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 8 lines
Quoted 5 lines
3.16 scsi worked fine, 3.17-rc1 misbehaves on 3 of my sparc64 test machines. E220R and E420R are with onboard 5c3875, V210 is with onboarc 53c1010 and all behave the same. Any ideas whre to dig deeper? bisection might be nontrivial, because of sparc64 changes that are OK on 3.17-rc1 again - but is possible if nothing else helps.
We've got a parisc with an 875 as a root SCSI bus ... I haven't got around to building for it yet, but I might find time to try today.
Come to think of it, I have couple parsisc with 875 too, will try.
Quoted 11 lines
Quoted 10 lines
[ 164.639697] PCI: Enabling device: (0000:00:03.0), cmd 147 [ 164.705076] sym0: <875> rev 0x14 at pci 0000:00:03.0 irq 13 [ 164.858446] sym0: No NVRAM, ID 7, Fast-20, SE, parity checking [ 164.935031] sym0: SCSI BUS has been reset. [ 164.983113] scsi host0: sym-2.2.3 [ 165.026358] PCI: Enabling device: (0000:00:03.1), cmd 3 [ 165.089634] sym1: <875> rev 0x14 at pci 0000:00:03.1 irq 14 [ 165.242820] sym1: No NVRAM, ID 7, Fast-20, SE, parity checking [ 165.319227] sym1: SCSI BUS has been reset. [ 165.367281] scsi host1: sym-2.2.3
Quoted 3 lines
Does it detect drives in the bit you cut? I ask because one of the symptoms of a misrouted irq is random problems with bring up. However, if anything is detected, then the irq must be OK.
No, nothing scsi related - rtc detection etc.
Quoted 30 lines
James
Quoted 25 lines
[ 388.835999] INFO: task swapper/0:1 blocked for more than 120 seconds. [ 388.912181] Not tainted 3.17.0-rc1 #46 [ 388.963187] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 389.056953] swapper/0 D 0000000000483958 7584 1 0 0x200000001000000 [ 389.148575] Call Trace: [ 389.177747] [000000000082e5fc] schedule+0x1c/0x80 [ 389.235024] [0000000000483958] async_synchronize_cookie_domain+0x58/0x100 [ 389.317301] [0000000000483a28] async_synchronize_full+0x8/0x20 [ 389.388133] [00000000006ebe04] wait_for_device_probe+0x64/0x80 [ 389.458938] [00000000009dcffc] prepare_namespace+0x4/0x1b8 [ 389.525590] [00000000009dcbac] kernel_init_freeable+0x1c0/0x1d8 [ 389.597450] [00000000008298e4] kernel_init+0x4/0x100 [ 389.657868] [00000000004060c4] ret_from_fork+0x1c/0x2c [ 389.720324] [0000000000000000] (null) [ 389.775518] no locks held by swapper/0/1.Signature · 5 lines
Meelis Roos ([email protected]) -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 1 line
Meelis Roos ([email protected])
Quoted 9 lines · Meelis Roos
Quoted 5 lines
3.16 scsi worked fine, 3.17-rc1 misbehaves on 3 of my sparc64 test machines. E220R and E420R are with onboard 5c3875, V210 is with onboarc 53c1010 and all behave the same. Any ideas whre to dig deeper? bisection might be nontrivial, because of sparc64 changes that are OK on 3.17-rc1 again - but is possible if nothing else helps.
We've got a parisc with an 875 as a root SCSI bus ... I haven't got around to building for it yet, but I might find time to try today.
Same on parisc:
sym0: <1010-66> rev 0x1 at pci 0000:20:01.0 irq 22
sym0: PA-RISC Firmware, ID 7, Fast-80, LVD, parity checking
sym0: SCSI BUS has been reset.
scsi host0: sym-2.2.3
random: nonblocking pool is initialized
and hangs here. So hopefully it is reproducible for you.
Signature · 1 line
Meelis Roos ([email protected])
James Bottomley
maintainerQuoted 12 lines · Meelis Roos
Quoted 9 lines · Meelis Roos
Quoted 5 lines
3.16 scsi worked fine, 3.17-rc1 misbehaves on 3 of my sparc64 test machines. E220R and E420R are with onboard 5c3875, V210 is with onboarc 53c1010 and all behave the same. Any ideas whre to dig deeper? bisection might be nontrivial, because of sparc64 changes that are OK on 3.17-rc1 again - but is possible if nothing else helps.
We've got a parisc with an 875 as a root SCSI bus ... I haven't got around to building for it yet, but I might find time to try today.
Same on parisc:
Quoted 7 lines
sym0: <1010-66> rev
0x1at pci 0000:20:01.0 irq 22
sym0: PA-RISC Firmware, ID 7, Fast-80, LVD, parity checking
sym0: SCSI BUS has been reset.
scsi host0: sym-2.2.3
random: nonblocking pool is initializedand hangs here. So hopefully it is reproducible for you.
And also independent of the sparc changes. The only other change in the window you quote is 64 bit luns.
James
Hi,
Quoted 19 lines · James Bottomley
Quoted 18 lines · Meelis Roos
Quoted 9 lines · Meelis Roos
Quoted 5 lines
3.16 scsi worked fine, 3.17-rc1 misbehaves on 3 of my sparc64 test machines. E220R and E420R are with onboard 5c3875, V210 is with onboarc 53c1010 and all behave the same. Any ideas whre to dig deeper? bisection might be nontrivial, because of sparc64 changes that are OK on 3.17-rc1 again - but is possible if nothing else helps.
We've got a parisc with an 875 as a root SCSI bus ... I haven't got around to building for it yet, but I might find time to try today.
Same on parisc:
sym0: <1010-66> rev
0x1at pci 0000:20:01.0 irq 22
sym0: PA-RISC Firmware, ID 7, Fast-80, LVD, parity checking
sym0: SCSI BUS has been reset.
scsi host0: sym-2.2.3
random: nonblocking pool is initialized
Quoted 4 lines
Quoted 1 line
and hangs here. So hopefully it is reproducible for you.
And also independent of the sparc changes. The only other change in the window you quote is 64 bit luns.
Bisection (on PA-RISC) points to:
71e75c97f97a9645d25fbf3d8e4165a558f18747 is the first bad commit commit 71e75c97f97a9645d25fbf3d8e4165a558f18747
Author: Christoph Hellwig <[email protected]> Date: Fri Apr 11 19:07:01 2014 +0200
scsi: convert device_busy to atomic_t
A.
Quoted 27 lines · Aaro Koskinen
Hi,
Quoted 19 lines · James Bottomley
Quoted 18 lines · Meelis Roos
Quoted 9 lines · Meelis Roos
Quoted 5 lines
3.16 scsi worked fine, 3.17-rc1 misbehaves on 3 of my sparc64 test machines. E220R and E420R are with onboard 5c3875, V210 is with onboarc 53c1010 and all behave the same. Any ideas whre to dig deeper? bisection might be nontrivial, because of sparc64 changes that are OK on 3.17-rc1 again - but is possible if nothing else helps.
We've got a parisc with an 875 as a root SCSI bus ... I haven't got around to building for it yet, but I might find time to try today.
Same on parisc:
sym0: <1010-66> rev
0x1at pci 0000:20:01.0 irq 22
sym0: PA-RISC Firmware, ID 7, Fast-80, LVD, parity checking
sym0: SCSI BUS has been reset.
scsi host0: sym-2.2.3
random: nonblocking pool is initializedQuoted 4 lines
Quoted 1 line
and hangs here. So hopefully it is reproducible for you.
And also independent of the sparc changes. The only other change in the window you quote is 64 bit luns.
Quoted 8 lines
Bisection (on PA-RISC) points to:
71e75c97f97a9645d25fbf3d8e4165a558f18747is the first bad commit commit71e75c97f97a9645d25fbf3d8e4165a558f18747Author: Christoph Hellwig <[email protected]> Date: Fri Apr 11 19:07:01 2014 +0200scsi: convert
device_busytoatomic_t
I guess you need this fix:
drivers/scsi/scsi_lib.c +1 -1
@@ -1774,7 +1774,7 @@ static void scsi_request_fn(struct request_queue *q)blk_requeue_request (q, req);atomic_dec (&sdev->device_busy); out_delay: -if (atomic_read (&sdev->device_busy) && !scsi_device_blocked (sdev)) +if (!atomic_read (&sdev->device_busy) && !scsi_device_blocked (sdev))blk_delay_queue (q,SCSI_QUEUE_DELAY ); }
James already sent it to Linus.
Sam
James Bottomley
maintainerQuoted 27 lines · Aaro Koskinen
Hi,
Quoted 19 lines · James Bottomley
Quoted 18 lines · Meelis Roos
Quoted 9 lines · Meelis Roos
Quoted 5 lines
3.16 scsi worked fine, 3.17-rc1 misbehaves on 3 of my sparc64 test machines. E220R and E420R are with onboard 5c3875, V210 is with onboarc 53c1010 and all behave the same. Any ideas whre to dig deeper? bisection might be nontrivial, because of sparc64 changes that are OK on 3.17-rc1 again - but is possible if nothing else helps.
We've got a parisc with an 875 as a root SCSI bus ... I haven't got around to building for it yet, but I might find time to try today.
Same on parisc:
sym0: <1010-66> rev
0x1at pci 0000:20:01.0 irq 22
sym0: PA-RISC Firmware, ID 7, Fast-80, LVD, parity checking
sym0: SCSI BUS has been reset.
scsi host0: sym-2.2.3
random: nonblocking pool is initializedQuoted 4 lines
Quoted 1 line
and hangs here. So hopefully it is reproducible for you.
And also independent of the sparc changes. The only other change in the window you quote is 64 bit luns.
Quoted 8 lines
Bisection (on PA-RISC) points to:
71e75c97f97a9645d25fbf3d8e4165a558f18747is the first bad commit commit71e75c97f97a9645d25fbf3d8e4165a558f18747Author: Christoph Hellwig <[email protected]> Date: Fri Apr 11 19:07:01 2014 +0200scsi: convert
device_busytoatomic_t
That's fixed upstream:
commit 480cadc2b7e0fa2bbab20141efb547dfe0c3707c
Author: Guenter Roeck <[email protected]> Date: Sun Aug 10 05:54:25 2014 -0700
scsi: Fix qemu boot hang problem
Could you try with a kernel that has that fix?
Thanks,
James
Hi,
Quoted 12 lines · James Bottomley
Quoted 8 lines · Aaro Koskinen
Bisection (on PA-RISC) points to:
71e75c97f97a9645d25fbf3d8e4165a558f18747is the first bad commit commit71e75c97f97a9645d25fbf3d8e4165a558f18747Author: Christoph Hellwig <[email protected]> Date: Fri Apr 11 19:07:01 2014 +0200scsi: convert
device_busytoatomic_tThat's fixed upstream:
Quoted 7 lines
commit
480cadc2b7e0fa2bbab20141efb547dfe0c3707cAuthor: Guenter Roeck <[email protected]> Date: Sun Aug 10 05:54:25 2014 -0700scsi: Fix qemu boot hang problem
Could you try with a kernel that has that fix?
Yes, the box boots now fine with the fix.
Thanks,
A.
Hello,
Quoted 9 lines · Aaro Koskinen
Quoted 7 lines
commit
480cadc2b7e0fa2bbab20141efb547dfe0c3707cAuthor: Guenter Roeck <[email protected]> Date: Sun Aug 10 05:54:25 2014 -0700scsi: Fix qemu boot hang problem
Could you try with a kernel that has that fix?
Yes, the box boots now fine with the fix.
Unfortunately only the scsi is fixed on an UP
Sun (TM) Enterprise 250 (UltraSPARC-II 296MHz), OpenBoot 3.30, 512 MB memory
here, later during startup the machine get a RED STATE exception and reboots.
Any ideas ?
Thanks,
Hermann
...
[ ok ] Starting enhanced syslogd: rsyslogd
CPU0 RED State Exception
CPUVersion: 0017.0011.2000.0507
UPAConfig: 0000.06b6.34c0.803b
LSU-Control: 0000.0000.0000.0000
ECErrEnable: 0000.0000.0000.0007
AFAR: 0000.01fe.0180.2800
AFSR: 0000.0000.0000.0000
DMMU SFAR: 0000.0000.f786.8004 DMMU SFSR: 0000.0000.0000.0000 IMMU SFSR: 0000.0000.0000.0011
TL 00.0000.0000.0005 TT 00.0000.0000.0064
TPC 00.0000.0042.4c80 TnPC 00.0000.0042.4c84 TSTATE 00.0000.1104.1402
TL 00.0000.0000.0004 TT 00.0000.0000.0064
TPC 00.0000.0042.4c80 TnPC 00.0000.0042.4c84 TSTATE 00.0000.1104.1402
TL 00.0000.0000.0003 TT 00.0000.0000.0064
TPC 00.0000.0042.4c80 TnPC 00.0000.0042.4c84 TSTATE 00.0000.1104.1402
TL 00.0000.0000.0002 TT 00.0000.0000.0064
TPC 00.0000.0042.0c80 TnPC 00.0000.0042.0c84 TSTATE 00.0000.1104.1402
TL 00.0000.0000.0001 TT 00.0000.0000.0064
� TPC 00.0000.0044.cac0 TnPC 00.0000.0044.cac4 TSTATE 00.0000.1100.1602
Signature · 4 lines
Netzwerkadministration/Zentrale Dienste, Interdiziplinaeres Zentrum fuer wissenschaftliches Rechnen der Universitaet Heidelberg IWR; INF 368; 69120 Heidelberg; Tel: (06221)54-8236 Fax: -5224 Email: [email protected]
Quoted 7 lines · Aaro Koskinen
Quoted 6 lines
Quoted 6 lines
commit
480cadc2b7e0fa2bbab20141efb547dfe0c3707cAuthor: Guenter Roeck <[email protected]> Date: Sun Aug 10 05:54:25 2014 -0700scsi: Fix qemu boot hang problem
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Could you try with a kernel that has that fix?
Yes, the box boots now fine with the fix.
Unfortunately only the scsi is fixed on an UP
Sun (TM) Enterprise 250 (UltraSPARC-II 296MHz), OpenBoot 3.30, 512 MB memory
here, later during startup the machine get a RED STATE exception and reboots.
Runtime fatal interrupts is what I started getting on V480. Haver not tried my E250 yet since it has no RSC - but RED state exceptions on reboot started showing more consistently on multiple sparc64 machines.
Quoted 34 lines
Any ideas ?
Thanks,
Hermann...
[ ok ] Starting enhanced syslogd: rsyslogd
CPU0 RED State ExceptionCPUVersion: 0017.0011.2000.0507
UPAConfig: 0000.06b6.34c0.803b
LSU-Control: 0000.0000.0000.0000
ECErrEnable: 0000.0000.0000.0007AFAR: 0000.01fe.0180.2800
AFSR: 0000.0000.0000.0000DMMU SFAR: 0000.0000.f786.8004 DMMU SFSR: 0000.0000.0000.0000 IMMU SFSR: 0000.0000.0000.0011TL 00.0000.0000.0005 TT 00.0000.0000.0064
TPC 00.0000.0042.4c80 TnPC 00.0000.0042.4c84 TSTATE 00.0000.1104.1402
TL 00.0000.0000.0004 TT 00.0000.0000.0064
TPC 00.0000.0042.4c80 TnPC 00.0000.0042.4c84 TSTATE 00.0000.1104.1402
TL 00.0000.0000.0003 TT 00.0000.0000.0064
TPC 00.0000.0042.4c80 TnPC 00.0000.0042.4c84 TSTATE 00.0000.1104.1402
TL 00.0000.0000.0002 TT 00.0000.0000.0064
TPC 00.0000.0042.0c80 TnPC 00.0000.0042.0c84 TSTATE 00.0000.1104.1402
TL 00.0000.0000.0001 TT 00.0000.0000.0064
??? TPC 00.0000.0044.cac0 TnPC 00.0000.0044.cac4 TSTATE 00.0000.1100.1602
Signature · 1 line
Meelis Roos ([email protected]) http://www.cs.ut.ee/~mroos/
Quoted 7 lines
Quoted 7 lines
Bisection (on PA-RISC) points to:
71e75c97f97a9645d25fbf3d8e4165a558f18747is the first bad commit commit71e75c97f97a9645d25fbf3d8e4165a558f18747Author: Christoph Hellwig <[email protected]> Date: Fri Apr 11 19:07:01 2014 +0200
Quoted 5 lines
Quoted 1 line
scsi: convert
device_busytoatomic_tThat's fixed upstream:
commit
480cadc2b7e0fa2bbab20141efb547dfe0c3707c
Yes, works for both sparc64 and parisc.
Signature · 1 line
Meelis Roos ([email protected])