tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys



On 07/14/16 11:58, Martin Husemann wrote:
On Mon, Jul 11, 2016 at 07:37:00AM +0000, Ryota Ozaki wrote:
Module Name:	src
Committed By:	ozaki-r
Date:		Mon Jul 11 07:37:00 UTC 2016

Modified Files:
	src/sys/net: route.c
	src/sys/netinet: ip_flow.c
	src/sys/netinet6: ip6_flow.c nd6.c

Log Message:
Run timers in workqueue
No idea why, but this change breaks booting my ERLIT-3 with root on NFS.
The machine hangs hard after:

timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
timecounter: Timecounter "mips3_cp0_counter" frequency 500000000 Hz quality 100

(that is just after going !cold, I guess)

It also causes me a problem on my cobalt

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 The NetBSD Foundation, Inc. All rights reserved. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. NetBSD 7.99.34 (GENERIC) #8: Thu Jul 14 06:19:34 BST 2016 nick@zoom:/wrk/binary/iij/obj.cobalt/wrk/binary/iij/netbsd-src/sys/arch/cobalt/compile/GENERIC Cobalt RaQ 2 total memory = 256 MB
avail  memory  =  247  MB
mainbus0  (root)
com0  at  mainbus0  addr  0x1c800000  level  3:  st16650a,  working  fifo
com0:  console
cpu0  at  mainbus0:  QED  RM5200  CPU  (0x28a0)  Rev.  10.0  with  built-in  FPU  Rev.  10.0
cpu0:  48  TLB  entries,  16MB  max  page  size
cpu0:  32KB/32B  2-way  set-associative  L1  instruction  cache
cpu0:  32KB/32B  2-way  set-associative  write-back  L1  data  cache
mcclock0  at  mainbus0  addr  0x10000070:  mc146818  compatible  time-of-day  clock
panel0  at  mainbus0  addr  0x1f000000
gt0  at  mainbus0  addr  0x14000000
pci0  at  gt0
pchb0  at  pci0  dev  0  function  0:  Galileo  GT-64111  System  Controller,  rev  1
tlp0  at  pci0  dev  7  function  0:  DECchip  21143  Ethernet,  pass  4.1
tlp0:  interrupting  at  level  1
tlp0:  Ethernet  address  00:10:e0:00:5c:a6
lxtphy0  at  tlp0  phy  1:  LXT970  10/100  media  interface,  rev.  3
lxtphy0:  10baseT,  10baseT-FDX,  100baseTX,  100baseTX-FDX,  auto
pcib0  at  pci0  dev  9  function  0
pcib0:  vendor  1106  product  0586,  rev  39
viaide0  at  pci0  dev  9  function  1
viaide0:  VIA  Technologies  VT82C586  (Apollo  VP)  ATA33  controller
viaide0:  primary  channel  interrupting  at  irq  14
atabus0  at  viaide0  channel  0
viaide0:  secondary  channel  interrupting  at  irq  15
atabus1  at  viaide0  channel  1
vendor  1106  product  3038  (USB  serial  bus,  UHCI,  revision  0x02)  at  pci0  dev  9  function  2  not  configured

telnet>  send  brk
kernel:  breakpoint  trap
Stopped  in  pid  0.2  (system)  at   netbsd:cpu_Debugger+0x4:         jr       ra
                bdslot:  nop
db>  set  $lines=0
$lines           18  =  0
db>  set  $maxwidth=0
$maxwidth                50  =  0
db>  ps/l
PID     LID  S  CPU      FLAGS        STRUCT  LWP  *                NAME  WAIT
1         1  3    0          0            8fef0300                init  lbolt
0        30  3    0        200            8fef0020               unpgc  unpgc
0        29  3    0        200            8feabd00           nd6_timer  nd6_timer
0        28  3    0        200            8feaba20            rt_timer  rt_timer
0        27  3    0        200            8feab740         vmem_rehash  vmem_rehash
0        18  3    0        200            8fef0e80             atabus1  atainitq
0        17  3    0        200            8fef1160             atabus0  atarst
0        16  3    0        200            8fef1440           cryptoret  crypto_w
0        15  3    0        200            8fef1720          pmfsuspend  pmfsuspend
0        14  3    0        200            8fef1a00            pmfevent  pmfevent
0        13  3    0        200            8fef1ce0          sopendfree  sopendfr
0        12  3    0        200            8ff62000            nfssilly  nfssilly
0        11  3    0        200            8ff622e0             cachegc  cachegc
0        10  3    0        200            8ff625c0               vrele  vrele
0         9  3    0        200            8ff628a0              vdrain  vdrain
0         8  3    0        200            8ff62b80           modunload  mod_unld
0         7  3    0        200            8ff62e60             xcall/0  xcall
0         6  1    0        200            8ff63140           softser/0
0         5  1    0        200            8ff63420           softclk/0
0         4  1    0        200            8ff63700           softbio/0
0         3  1    0        200            8ff639e0           softnet/0
0      >    2  7    0        201            8ff63cc0              idle/0
0         1  3    0        200            805428e0             swapper  cfgmisc
db>  bt  /a  8fef0300
pid  1.1  at  0x808b0000
0x808b1d88:  kernel_text+e4  (0,0,0,0)  ra  802f781c  sz  0
0x808b1d88:  mi_switch+208  (0,0,0,0)  ra  802f40ec  sz  88
0x808b1de0:  sleepq_block+b8  (0,0,0,0)  ra  802c2df0  sz  56
0x808b1e18:  cv_wait+114  (0,0,0,0)  ra  802b8e4c  sz  56
0x808b1e50:  start_init+74  (0,0,0,0)  ra  8000c7cc  sz  248
0x808b1f48:  mips3_lwp_trampoline+18  (0,0,0,0)  ra  0  sz  24
User-level:  pid  0.2
db>  bt  /a  805428e0
pid  0.1  at  0x8060a000
0x8060bdf8:  kernel_text+e4  (0,0,0,0)  ra  802f781c  sz  0
0x8060bdf8:  mi_switch+208  (0,0,0,0)  ra  802f40ec  sz  88
0x8060be50:  sleepq_block+b8  (0,0,0,0)  ra  802c2df0  sz  56
0x8060be88:  cv_wait+114  (0,0,0,0)  ra  80309fec  sz  56
0x8060bec0:  config_finalize+4c  (0,0,0,0)  ra  8040c844  sz  40
0x8060bee8:  main+524  (0,0,0,0)  ra  800010d4  sz  96
0x8060bf48:  kernel_text+d4  (0,0,0,0)  ra  0  sz  0
User-level:  pid  0.2
db>  bt/a  8fef1160
pid  0.17  at  0x8089c000
0x8089db60:  kernel_text+e4  (0,0,0,0)  ra  802f781c  sz  0
0x8089db60:  mi_switch+208  (0,0,0,0)  ra  802f4114  sz  88
0x8089dbb8:  sleepq_block+e0  (0,0,0,0)  ra  80091384  sz  56
0x8089dbf0:  __wdcwait_reset+1c4  (0,3,0,0)  ra  80091728  sz  64
0x8089dc30:  wdcprobe1+32c  (0,3,0,0)  ra  800930b0  sz  64
0x8089dc70:  wdc_drvprobe+84  (0,3,0,0)  ra  80062958  sz  584
0x8089deb8:  atabusconfig+218  (0,3,0,0)  ra  80062a48  sz  72
0x8089df00:  atabus_thread+a4  (0,3,0,0)  ra  8000c7cc  sz  72
0x8089df48:  mips3_lwp_trampoline+18  (0,3,0,0)  ra  0  sz  24
User-level:  pid  0.2
db>  bt/a8fef0e80
0x80879d88:  cpu_Debugger+4  (bc800005,bc800000,7f,7f)  ra  8009049c  sz  0
0x80879d88:  comintr+5a4  (bc800005,bc800000,7f,7f)  ra  8000714c  sz  72
0x80879dd0:  cpu_intr+1d0  (bc800005,bc800000,7f,7f)  ra  8000bd8c  sz  64
0x80879e10:  mips3_kern_intr+cc  (8ff63cc0,4,0,80539430)  ra  8000df40  sz  192
0x80879ed0:  cpu_idle+6c  (8ff63cc0,4,0,80539430)  ra  802d2124  sz  56
0x80879f08:  idle_loop+284  (8ff63cc0,4,0,80539430)  ra  8000c7cc  sz  64
0x80879f48:  mips3_lwp_trampoline+18  (8ff63cc0,4,0,80539430)  ra  0  sz  24
User-level:  pid  0.2
db>  bt/a  8feaba20
pid  0.28  at  0x808ae000
0x808afe50:  kernel_text+e4  (0,0,0,0)  ra  802f781c  sz  0
0x808afe50:  mi_switch+208  (0,0,0,0)  ra  802f40ec  sz  88
0x808afea8:  sleepq_block+b8  (0,0,0,0)  ra  802c2df0  sz  56
0x808afee0:  cv_wait+114  (0,0,0,0)  ra  8032a4b0  sz  56
0x808aff18:  workqueue_worker+58  (0,0,0,0)  ra  8000c7cc  sz  48
0x808aff48:  mips3_lwp_trampoline+18  (0,0,0,0)  ra  0  sz  24
User-level:  pid  0.2
db>  bt/a  8feabd00
pid  0.29  at  0x808aa000
0x808abe50:  kernel_text+e4  (0,0,0,0)  ra  802f781c  sz  0
0x808abe50:  mi_switch+208  (0,0,0,0)  ra  802f40ec  sz  88
0x808abea8:  sleepq_block+b8  (0,0,0,0)  ra  802c2df0  sz  56
0x808abee0:  cv_wait+114  (0,0,0,0)  ra  8032a4b0  sz  56
0x808abf18:  workqueue_worker+58  (0,0,0,0)  ra  8000c7cc  sz  48
0x808abf48:  mips3_lwp_trampoline+18  (0,0,0,0)  ra  0  sz  24
User-level:  pid  0.2
db>  show  event
evcnt  type  0:  busdma  loads  =  1
evcnt  type  0:  busdma  creates  =  129
evcnt  type  0:  pmap  pages  zeroed  =  10
evcnt  type  0:  pmap  protects  =  1
evcnt  type  0:  pmap  updates  =  25
evcnt  type  0:  pmap  deactivations  =  34
evcnt  type  0:  pmap  activations  =  34
evcnt  type  0:  pmap  references  =  4
evcnt  type  0:  pmap  creates  =  1
evcnt  type  0:  pmap  kernel  fast  unmapped  pages  =  2
evcnt  type  0:  pmap  kernel  fast  mapped  pages  =  124
evcnt  type  0:  vmem  static_bt_inuse  =  92
evcnt  type  0:  vmem  static_bt_count  =  200
evcnt  type  0:  softint  clk/0  =  1
evcnt  type  0:  softint  ser/0  =  1
evcnt  type  0:  crosscall  unicast  =  3
evcnt  type  0:  namecache  under  scan  target  =  1
db>  c

telnet>  send  brk
kernel:  breakpoint  trap
Stopped  in  pid  0.2  (system)  at   netbsd:cpu_Debugger+0x4:         jr       ra
                bdslot:  nop
db>  show  event
evcnt  type  0:  busdma  loads  =  1
evcnt  type  0:  busdma  creates  =  129
evcnt  type  0:  pmap  pages  zeroed  =  10
evcnt  type  0:  pmap  protects  =  1
evcnt  type  0:  pmap  updates  =  25
evcnt  type  0:  pmap  deactivations  =  34
evcnt  type  0:  pmap  activations  =  34
evcnt  type  0:  pmap  references  =  4
evcnt  type  0:  pmap  creates  =  1
evcnt  type  0:  pmap  kernel  fast  unmapped  pages  =  2
evcnt  type  0:  pmap  kernel  fast  mapped  pages  =  124
evcnt  type  0:  vmem  static_bt_inuse  =  92
evcnt  type  0:  vmem  static_bt_count  =  200
evcnt  type  0:  softint  clk/0  =  1
evcnt  type  0:  softint  ser/0  =  1
evcnt  type  0:  crosscall  unicast  =  3
evcnt  type  0:  namecache  under  scan  target  =  1
evcnt  type  1:  mips  int  3  =  4
db>
So something messes up clock interrupts and probably more...

Nick



Home | Main Index | Thread Index | Old Index