CAC 2017-10-22

debugging deadlock

(gdb) thread apply all bt

Thread 27 (Thread 0x7fb276761700 (LWP 5395)):
#0  pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000044ca4b in cpuRunningWait () at threadz.c:227
#2  0x000000000040d324 in threadz_sim_instr () at dps8_cpu.c:1300
#3  0x000000000040d1db in cpuThreadMain (arg=<optimized out>)
    at dps8_cpu.c:1177
#4  0x00007fb28be9d73a in start_thread (arg=0x7fb276761700)
    at pthread_create.c:333
#5  0x00007fb28b4a4e7f in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 26 (Thread 0x7fb276f62700 (LWP 5394)):
#0  pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000044ca4b in cpuRunningWait () at threadz.c:227
#2  0x000000000040d324 in threadz_sim_instr () at dps8_cpu.c:1300
#3  0x000000000040d1db in cpuThreadMain (arg=<optimized out>)
    at dps8_cpu.c:1177
#4  0x00007fb28be9d73a in start_thread (arg=0x7fb276f62700)
    at pthread_create.c:333
#5  0x00007fb28b4a4e7f in clone ()
---Type <return> to continue, or q <return> to quit---
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 25 (Thread 0x7fb277763700 (LWP 5393)):
#0  pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000044ca4b in cpuRunningWait () at threadz.c:227
#2  0x000000000040d324 in threadz_sim_instr () at dps8_cpu.c:1300
#3  0x000000000040d1db in cpuThreadMain (arg=<optimized out>)
    at dps8_cpu.c:1177
#4  0x00007fb28be9d73a in start_thread (arg=0x7fb277763700)
    at pthread_create.c:333
#5  0x00007fb28b4a4e7f in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 24 (Thread 0x7fb277f64700 (LWP 5392)):
#0  pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000044ca4b in cpuRunningWait () at threadz.c:227
#2  0x000000000040d324 in threadz_sim_instr () at dps8_cpu.c:1300
#3  0x000000000040d1db in cpuThreadMain (arg=<optimized out>)
    at dps8_cpu.c:1177
#4  0x00007fb28be9d73a in start_thread (arg=0x7fb277f64700)
    at pthread_create.c:333
---Type <return> to continue, or q <return> to quit---
#5  0x00007fb28b4a4e7f in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 23 (Thread 0x7fb278765700 (LWP 5391)):
#0  pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000044ca4b in cpuRunningWait () at threadz.c:227
#2  0x000000000040d324 in threadz_sim_instr () at dps8_cpu.c:1300
#3  0x000000000040d1db in cpuThreadMain (arg=<optimized out>)
    at dps8_cpu.c:1177
#4  0x00007fb28be9d73a in start_thread (arg=0x7fb278765700)
    at pthread_create.c:333
#5  0x00007fb28b4a4e7f in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 22 (Thread 0x7fb278f66700 (LWP 5390)):
#0  threadz_sim_instr () at dps8_cpu.c:1793
#1  0x000000000040d1db in cpuThreadMain (arg=<optimized out>)
    at dps8_cpu.c:1177
#2  0x00007fb28be9d73a in start_thread (arg=0x7fb278f66700)
    at pthread_create.c:333
#3  0x00007fb28b4a4e7f in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
---Type <return> to continue, or q <return> to quit---

Thread 21 (Thread 0x7fb279767700 (LWP 5389)):
#0  core_read2 (addr=<optimized out>, even=<optimized out>, 
    odd=<optimized out>, ctx=<optimized out>) at ./dps8_cpu.h:2005
#1  fetchPSDW (segno=<optimized out>) at dps8_append.c:564
#2  doAppendCycle (thisCycle=<optimized out>, data=0x7fb279766e60, 
    nWords=<optimized out>) at dps8_append.c:1490
#3  0x000000000042a5a6 in Read2 (address=690, result=0x7fb279766e60, 
    cyctyp=INSTRUCTION_FETCH) at dps8_iefp.c:187
#4  0x000000000042bcac in fetchInstruction (addr=690) at dps8_ins.c:1196
#5  0x000000000040de9a in threadz_sim_instr () at dps8_cpu.c:1629
#6  0x000000000040d1db in cpuThreadMain (arg=<optimized out>)
    at dps8_cpu.c:1177
#7  0x00007fb28be9d73a in start_thread (arg=0x7fb279767700)
    at pthread_create.c:333
#8  0x00007fb28b4a4e7f in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 20 (Thread 0x7fb279f68700 (LWP 5388)):
#0  pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000044cd3b in iomInterruptWait () at threadz.c:331
#2  0x0000000000435996 in iomThreadMain (arg=<optimized out>)
---Type <return> to continue, or q <return> to quit---
    at dps8_iom.c:2706
#3  0x00007fb28be9d73a in start_thread (arg=0x7fb279f68700)
    at pthread_create.c:333
#4  0x00007fb28b4a4e7f in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 19 (Thread 0x7fb27a769700 (LWP 5387)):
#0  pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000044cd3b in iomInterruptWait () at threadz.c:331
#2  0x0000000000435996 in iomThreadMain (arg=<optimized out>)
    at dps8_iom.c:2706
#3  0x00007fb28be9d73a in start_thread (arg=0x7fb27a769700)
    at pthread_create.c:333
#4  0x00007fb28b4a4e7f in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 18 (Thread 0x7fb27af6a700 (LWP 5386)):
#0  pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000044cd3b in iomInterruptWait () at threadz.c:331
#2  0x0000000000435996 in iomThreadMain (arg=<optimized out>)
    at dps8_iom.c:2706
---Type <return> to continue, or q <return> to quit---
#3  0x00007fb28be9d73a in start_thread (arg=0x7fb27af6a700)
    at pthread_create.c:333
#4  0x00007fb28b4a4e7f in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 17 (Thread 0x7fb27b76b700 (LWP 5385)):
#0  pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000044cd3b in iomInterruptWait () at threadz.c:331
#2  0x0000000000435996 in iomThreadMain (arg=<optimized out>)
    at dps8_iom.c:2706
#3  0x00007fb28be9d73a in start_thread (arg=0x7fb27b76b700)
    at pthread_create.c:333
#4  0x00007fb28b4a4e7f in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 16 (Thread 0x7fb27bf6c700 (LWP 5384)):
#0  pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000044d16b in chnConnectWait () at threadz.c:470
#2  0x00000000004355ea in chnThreadMain (arg=<optimized out>)
    at dps8_iom.c:2684
#3  0x00007fb28be9d73a in start_thread (arg=0x7fb27bf6c700)
---Type <return> to continue, or q <return> to quit---
    at pthread_create.c:333
#4  0x00007fb28b4a4e7f in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 15 (Thread 0x7fb27c76d700 (LWP 5383)):
#0  pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000044d16b in chnConnectWait () at threadz.c:470
#2  0x00000000004355ea in chnThreadMain (arg=<optimized out>)
    at dps8_iom.c:2684
#3  0x00007fb28be9d73a in start_thread (arg=0x7fb27c76d700)
    at pthread_create.c:333
#4  0x00007fb28b4a4e7f in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 14 (Thread 0x7fb27cf6e700 (LWP 5382)):
#0  pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000044d16b in chnConnectWait () at threadz.c:470
#2  0x00000000004355ea in chnThreadMain (arg=<optimized out>)
    at dps8_iom.c:2684
#3  0x00007fb28be9d73a in start_thread (arg=0x7fb27cf6e700)
    at pthread_create.c:333
---Type <return> to continue, or q <return> to quit---
#4  0x00007fb28b4a4e7f in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 13 (Thread 0x7fb27d76f700 (LWP 5381)):
#0  pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000044d16b in chnConnectWait () at threadz.c:470
#2  0x00000000004355ea in chnThreadMain (arg=<optimized out>)
    at dps8_iom.c:2684
#3  0x00007fb28be9d73a in start_thread (arg=0x7fb27d76f700)
    at pthread_create.c:333
#4  0x00007fb28b4a4e7f in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 12 (Thread 0x7fb27df70700 (LWP 5380)):
#0  pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000044d16b in chnConnectWait () at threadz.c:470
#2  0x00000000004355ea in chnThreadMain (arg=<optimized out>)
    at dps8_iom.c:2684
#3  0x00007fb28be9d73a in start_thread (arg=0x7fb27df70700)
    at pthread_create.c:333
#4  0x00007fb28b4a4e7f in clone ()
---Type <return> to continue, or q <return> to quit---
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 11 (Thread 0x7fb27e771700 (LWP 5379)):
#0  pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000044d16b in chnConnectWait () at threadz.c:470
#2  0x00000000004355ea in chnThreadMain (arg=<optimized out>)
    at dps8_iom.c:2684
#3  0x00007fb28be9d73a in start_thread (arg=0x7fb27e771700)
    at pthread_create.c:333
#4  0x00007fb28b4a4e7f in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 10 (Thread 0x7fb27ef72700 (LWP 5378)):
#0  pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000044d16b in chnConnectWait () at threadz.c:470
#2  0x00000000004355ea in chnThreadMain (arg=<optimized out>)
    at dps8_iom.c:2684
#3  0x00007fb28be9d73a in start_thread (arg=0x7fb27ef72700)
    at pthread_create.c:333
#4  0x00007fb28b4a4e7f in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
---Type <return> to continue, or q <return> to quit---

Thread 9 (Thread 0x7fb27f773700 (LWP 5377)):
#0  pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000044d16b in chnConnectWait () at threadz.c:470
#2  0x00000000004355ea in chnThreadMain (arg=<optimized out>)
    at dps8_iom.c:2684
#3  0x00007fb28be9d73a in start_thread (arg=0x7fb27f773700)
    at pthread_create.c:333
#4  0x00007fb28b4a4e7f in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 8 (Thread 0x7fb27ff74700 (LWP 5376)):
#0  pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000044d16b in chnConnectWait () at threadz.c:470
#2  0x00000000004355ea in chnThreadMain (arg=<optimized out>)
    at dps8_iom.c:2684
#3  0x00007fb28be9d73a in start_thread (arg=0x7fb27ff74700)
    at pthread_create.c:333
#4  0x00007fb28b4a4e7f in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

---Type <return> to continue, or q <return> to quit---
Thread 7 (Thread 0x7fb280775700 (LWP 5375)):
#0  pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000044d16b in chnConnectWait () at threadz.c:470
#2  0x00000000004355ea in chnThreadMain (arg=<optimized out>)
    at dps8_iom.c:2684
#3  0x00007fb28be9d73a in start_thread (arg=0x7fb280775700)
    at pthread_create.c:333
#4  0x00007fb28b4a4e7f in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 6 (Thread 0x7fb280f76700 (LWP 5374)):
#0  pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000044d16b in chnConnectWait () at threadz.c:470
#2  0x00000000004355ea in chnThreadMain (arg=<optimized out>)
    at dps8_iom.c:2684
#3  0x00007fb28be9d73a in start_thread (arg=0x7fb280f76700)
    at pthread_create.c:333
#4  0x00007fb28b4a4e7f in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 5 (Thread 0x7fb281777700 (LWP 5373)):
---Type <return> to continue, or q <return> to quit---
#0  pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000044d16b in chnConnectWait () at threadz.c:470
#2  0x00000000004355ea in chnThreadMain (arg=<optimized out>)
    at dps8_iom.c:2684
#3  0x00007fb28be9d73a in start_thread (arg=0x7fb281777700)
    at pthread_create.c:333
#4  0x00007fb28b4a4e7f in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 4 (Thread 0x7fb281f78700 (LWP 5372)):
#0  pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000044d16b in chnConnectWait () at threadz.c:470
#2  0x00000000004355ea in chnThreadMain (arg=<optimized out>)
    at dps8_iom.c:2684
#3  0x00007fb28be9d73a in start_thread (arg=0x7fb281f78700)
    at pthread_create.c:333
#4  0x00007fb28b4a4e7f in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 3 (Thread 0x7fb282779700 (LWP 5371)):
#0  pthread_cond_wait@@GLIBC_2.3.2 ()
---Type <return> to continue, or q <return> to quit---
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000044d16b in chnConnectWait () at threadz.c:470
#2  0x00000000004355ea in chnThreadMain (arg=<optimized out>)
    at dps8_iom.c:2684
#3  0x00007fb28be9d73a in start_thread (arg=0x7fb282779700)
    at pthread_create.c:333
#4  0x00007fb28b4a4e7f in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 2 (Thread 0x7fb282f7a700 (LWP 5370)):
#0  pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000044d16b in chnConnectWait () at threadz.c:470
#2  0x00000000004355ea in chnThreadMain (arg=<optimized out>)
    at dps8_iom.c:2684
#3  0x00007fb28be9d73a in start_thread (arg=0x7fb282f7a700)
    at pthread_create.c:333
#4  0x00007fb28b4a4e7f in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 1 (Thread 0x7fb28c27e780 (LWP 5347)):
#0  0x00007fb28b46984d in nanosleep () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fb28b49b454 in usleep (useconds=<optimized out>)
---Type <return> to continue, or q <return> to quit---
    at ../sysdeps/posix/usleep.c:32
#2  0x000000000040d13a in sim_instr () at dps8_cpu.c:1109
#3  0x000000000045eef3 in run_cmd (flag=<optimized out>, cptr=<optimized out>)
    at scp.c:6445
#4  0x000000000045372e in do_cmd_label (flag=<optimized out>, 
    fcptr=<optimized out>, label=<optimized out>) at scp.c:2948
#5  0x000000000044da52 in do_cmd (flag=0, fcptr=<optimized out>) at scp.c:2808
#6  main (argc=<optimized out>, argv=<optimized out>) at scp.c:2067
M-> rcf add cpu b

1012.3  start_cpu: Added CPU B.
Ready
M-> rcf add cpu c

CPU A appears to be running:

Thread 21 (Thread 0x7fb279767700 (LWP 5389)):
#0  core_read2 (addr=<optimized out>, even=<optimized out>, 
    odd=<optimized out>, ctx=<optimized out>) at ./dps8_cpu.h:2005
#1  fetchPSDW (segno=<optimized out>) at dps8_append.c:564
#2  doAppendCycle (thisCycle=<optimized out>, data=0x7fb279766e60, 
    nWords=<optimized out>) at dps8_append.c:1490
#3  0x000000000042a5a6 in Read2 (address=690, result=0x7fb279766e60, 
    cyctyp=INSTRUCTION_FETCH) at dps8_iefp.c:187
#4  0x000000000042bcac in fetchInstruction (addr=690) at dps8_ins.c:1196
#5  0x000000000040de9a in threadz_sim_instr () at dps8_cpu.c:1629
#6  0x000000000040d1db in cpuThreadMain (arg=<optimized out>)
    at dps8_cpu.c:1177
#7  0x00007fb28be9d73a in start_thread (arg=0x7fb279767700)
    at pthread_create.c:333
#8  0x00007fb28b4a4e7f in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

CPU B seems to running

Thread 22 (Thread 0x7fb278f66700 (LWP 5390)):
#0  threadz_sim_instr () at dps8_cpu.c:1793
#1  0x000000000040d1db in cpuThreadMain (arg=<optimized out>)
    at dps8_cpu.c:1177
#2  0x00007fb28be9d73a in start_thread (arg=0x7fb278f66700)
    at pthread_create.c:333
#3  0x00007fb28b4a4e7f in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

CPU C has not been started

Thread 23 (Thread 0x7fb278765700 (LWP 5391)):
#0  pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000044ca4b in cpuRunningWait () at threadz.c:227
#2  0x000000000040d324 in threadz_sim_instr () at dps8_cpu.c:1300
#3  0x000000000040d1db in cpuThreadMain (arg=<optimized out>)
    at dps8_cpu.c:1177
#4  0x00007fb28be9d73a in start_thread (arg=0x7fb278765700)
    at pthread_create.c:333
#5  0x00007fb28b4a4e7f in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

IOM A is waiting for an interrupt

Thread 17 (Thread 0x7fb27b76b700 (LWP 5385)):
#0  pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000000044cd3b in iomInterruptWait () at threadz.c:331
#2  0x0000000000435996 in iomThreadMain (arg=<optimized out>)
    at dps8_iom.c:2706
#3  0x00007fb28be9d73a in start_thread (arg=0x7fb27b76b700)
    at pthread_create.c:333
#4  0x00007fb28b4a4e7f in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

All of the channels are in connect wait

Not sure what the issue is; let it run some more….

 5389 cac       20   0  629036 137776   2840 R 87.3  1.7   1:55.80 CPU a        
 5390 cac       20   0  629036 137776   2840 R 86.3  1.7   1:06.34 CPU b        
 5347 cac       20   0  629036 137776   2840 S  0.7  1.7   0:04.52 dps8
(gdb) p cpus[0].events .XIP 
$1 = {false, false, false, false, false, false, false, false}

(gdb) p scu[0].cells
$2 = {0 <repeats 12 times>, 1, 0 <repeats 15 times>, 1, 0, 0, 0}

(gdb) p scu[0].mask_enable 
$6 = {1, 1}

(gdb) p scu[0].mask_assignment 
$7 = {7, 6}

(gdb) p scu[0].ports[7].type
$8 = ADEV_CPU
(gdb) p scu[0].ports[6].type
$9 = ADEV_CPU

(gdb) p scu[0].ports[7].is_exp 
$11 = false
(gdb) p scu[0].ports[6].is_exp 
$12 = false
(gdb) b 1843
Breakpoint 1 at 0x44019c: file dps8_scu.c, line 1843.
(gdb) c
Continuing.

XIP is not getting set…

(gdb) b 1826
Breakpoint 2 at 0x440159: file dps8_scu.c, line 1826.
(gdb) c

mask isn't being tested.

deliver interrupts isn't being called.

scu_smic isn't being called.

I suspect I have a race condition around XIP.

Debugging scu lock:

Thread 21 (Thread 0x7fffe548a700 (LWP 16393)):
#0  __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007ffff7bc2e7d in __GI___pthread_mutex_lock (mutex=0x9db620 <iomThreadz+64>) at ../nptl/pthread_mutex_lock.c:80
#2  0x000000000044cf9a in iomDoneWait (iomNum=<optimized out>) at threadz.c:384
#3  0x00000000004413ae in scu_cioc (cpuUnitIdx=<optimized out>, scuUnitIdx=0, scu_port_num=<optimized out>,
    expander_command=<optimized out>, sub_mask=5) at dps8_scu.c:1739
#4  0x0000000000432ae8 in DoBasicInstruction () at dps8_ins.c:7582

CPU A is waiting for the IOM 

Thread 17 (Thread 0x7fffe748e700 (LWP 16389)):
#0  __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007ffff7bc2e7d in __GI___pthread_mutex_lock (mutex=0x9d42c8 <chnThreadz+1272>) at ../nptl/pthread_mutex_lock.c:80
#2  0x000000000044d3f8 in setChnConnect (iomNum=<optimized out>, chnNum=128) at threadz.c:523
#3  0x0000000000435bac in doConnectChan (iomUnitIdx=<optimized out>) at dps8_iom.c:2440

IOM A is waiting for the Channel

Thread 2 (Thread 0x7fffeec9d700 (LWP 16374)):
#0  pthread_spin_lock () at ../sysdeps/x86_64/nptl/pthread_spin_lock.S:31
#1  0x000000000044c8cb in lock_scu () at threadz.c:109
#2  0x000000000044154a in scu_set_interrupt (scuUnitIdx=0, inum=12) at dps8_scu.c:1868
#3  0x0000000000435a3e in send_terminate_interrupt (iomUnitIdx=<optimized out>, chan=<optimized out>) at dps8_iom.c:2643
#4  doPayloadChan (iomUnitIdx=<optimized out>, chan=<optimized out>) at dps8_iom.c:2383
#5  chnThreadMain (arg=<optimized out>) at dps8_iom.c:2686

The channel is waiting for the SCU

Meh. My whole IOM scheduler is broken.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License