NetBSD-Bugs archive

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

Re: kern/52419: mvsata fails to disable edma



The following reply was made to PR kern/52419; it has been noted by GNATS.

From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: kern/52419: mvsata fails to disable edma
Date: Tue, 30 Apr 2019 04:38:56 +0900

 > I upgraded this machine from netbsd-7 to netbsd-8 yesterday and started 
 > rebuilding all pkgs (only few installed). During the first day and only
 > moderate disk activity (the pkg rebuild) it "crashed" four times
 > like this:
 > 
 > "something" went wrong in disk access, I get the "unable to stop EDMA"
 > error printed on the console and from that point all disk transfers
 > fail - I have to hard reset the machine.
 
 I see the similar "unable to stop EDMA" messages on my HP T5325
 with SATA SSD:
 
 >> cpu0 at mainbus0 core 0: Sheeva 88SV131 rev 1 (ARM9E-S V5TE core)
  :
 >> mvsata0 at mvsoc0 unit 0 offset 0x80000-0x87fff irq 21: Marvell Serial-ATA Host Controller (SATAHC)
 >> mvsata0: GenIIe, 1hc, 2port/hc
  :
 >> atabus1 at mvsata0 channel 1
  :
 >> mvsata0 port 1: device present, speed: 3.0Gb/s
 >> wd1 at atabus1 drive 0
 >> wd1: <SUNEAST SSD SE800 mSATA 256GB>
 >> wd1: 238 GB, 496149 cyl, 16 head, 63 sec, 512 bytes/sect x 500118192 sectors
  :
 >> wd1a: device timeout writing fsbn 329886296 of 329886296-329886303 (wd1 bn 330934872; cn 328308 tn 6 sn 30), retrying
 >> mvsata0:0:1: device disconnect
 >> mvsata0:0:1: EDMA self disable happen 0x88
 >> mvsata0:0:1: unable to stop EDMA
 
 I have not tried netbsd-7 branch kernels, but NetBSD/evbarm 6.1.5 kernel
 worked without problem to build pkgsrc binaries for weeks.
 
 It looks there is ~no functional changes in mvsata.c between 7.x and 8.x.
 Maybe critical timing issue, or compiler related bugs?
 
 Whole boot messages is here:
 
 ---
        _   _     .____    
       | |_| |    |  _ \  
       |  _  |    | (_))   
       | |-| |    | |      
       |_| |_|    |_|  ..  
  _   _     ____              _
 | | | |   | __ )  ___   ___ | |_ 
 | | | |___|  _ \ / _ \ / _ \| __| 
 | |_| |___| |_) | (_) | (_) | |_ 
  \___/    |____/ \___/ \___/ \__| 
  ** LOADER **
  ** BOARD: DB-88F6281A-BP LE 
 
 U-Boot 1.1.4 (Jan  8 2010 - 14:03:56) MIC version : 3.4.19-16
 
 U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CD4E0
 
 Soc: 88F6281 A1 (DDR2)
 CPU running @ 1200Mhz L2 running @ 400Mhz
 SysClock = 400Mhz , TClock = 200Mhz 
 
 DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
 DRAM CS[0] base 0x00000000   size 256MB 
 DRAM CS[1] base 0x10000000   size 256MB 
 DRAM Total size 512MB  16bit width
 Addresses 8M - 0M are saved for the U-Boot usage.
 Mem malloc Initialization (8M - 7M): Done
 [1024kB@f8000000] Flash:  1 MB
 
 CPU : Marvell Feroceon (Rev 1)
 
 Streaming disabled 
 Write allocate disabled
 
 
 USB 0: host mode
 PEX 0: PCI Express Root Complex Interface
 PEX interface detected Link X1
 Net:   egiga0 [PRIME], egiga1
 Hit any key to stop autoboot: 0 
 HP>> usb start
 (Re)start USB...
 USB:   scanning bus for devices... 3 USB Device(s) found
 Waiting for storage device(s) to settle before scanning...
 1 Storage Device(s) found
 HP>> fatload usb 0:1 0x00800000 netbsd.ub; bootm 0x00800000
 reading netbsd.ub
 ............................................................................................................................................................................................................
 ...................................................
 ..................................................................................................................................................................................................................................................................
 
 5274324 bytes read
 ## Booting image at 00800000 ...
    Image Name:   NetBSD/hpt5325 8.0
    Created:      2019-04-29  18:46:03 UTC
    Image Type:   ARM NetBSD Kernel Image (uncompressed)
    Data Size:    5274260 Bytes =  5 MB
    Load Address: 00008000
    Entry Point:  00008000
    Verifying Checksum ... OK
 OK
 ## Transferring control to NetBSD stage-2 loader (at address 00008000) ...
 
 NetBSD/evbarm (hpt5325) booting ...
 [ Kernel symbol table missing! ]
 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
     2018 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 8.0 (HPT5325) #6: Tue Apr 30 03:45:49 JST 2019
 	tsutsui@mirage:/s/src/sys/arch/evbarm/compile/HPT5325
 total memory = 512 MB
 avail memory = 496 MB
 sysctl_createv: sysctl_create(machine_arch) returned 17
 mainbus0 (root)
 cpu0 at mainbus0 core 0: Sheeva 88SV131 rev 1 (ARM9E-S V5TE core)
 cpu0: DC enabled IC enabled WB enabled EABT branch prediction enabled
 cpu0: 16KB/32B 4-way L1 VIVT Instruction cache
 cpu0: 16KB/32B 4-way write-back-locking-C L1 VIVT Data cache
 mvsoc0 at mainbus0: Marvell 88F6281 Rev. A1  Kirkwood
 mvsoc0: CPU Clock 1200.000 MHz  SysClock 400.000 MHz  TClock 200.000 MHz
 mvsoctmr0 at mvsoc0 unit 0 offset 0x20300-0x203ff irq 65: Marvell SoC Timer
 mvsocgpp0 at mvsoc0 unit 0 offset 0x10100-0x101ff irq 35: Marvell SoC General Purpose I/O Port Interface
 mvsocgpp0: 50 gpio pins
 mvsocgpp0: interrupts 96..103, intr 35
 mvsocgpp0: interrupts 104..111, intr 36
 mvsocgpp0: interrupts 112..119, intr 37
 mvsocgpp0: interrupts 120..127, intr 38
 mvsocgpp0: interrupts 128..135, intr 39
 mvsocgpp0: interrupts 136..143, intr 40
 mvsocgpp0: interrupts 144..151, intr 41
 mvsocgpp0:   Data Out:                 	0x00000000
 mvsocgpp0:   Data Out Enable Control:  	0x00000000
 mvsocgpp0:   Data Blink Enable:        	0x00000000
 mvsocgpp0:   Data In Polarity:         	0x00000000
 mvsocgpp0:   Data In:                  	0x00000000
 mvsocgpp0:   Interrupt Cause:          	0x00000000
 mvsocgpp0:   Interrupt Mask:           	0x00000000
 mvsocgpp0:   Interrupt Level Mask:     	0x00000000
 mvsocgpp0:   High Data Out:            	0x0000d000
 mvsocgpp0:   High Data Out Enable Ctrl:	0xfffe2fff
 mvsocgpp0:   High Blink Enable:        	0x00000000
 mvsocgpp0:   High Data In Polarity:    	0x00000040
 mvsocgpp0:   High Data In:             	0x0002f040
 mvsocgpp0:   High Interrupt Cause:     	0x00000000
 mvsocgpp0:   High Interrupt Mask:      	0x00000000
 mvsocgpp0:   High Interrupt Level Mask:	0x00000000
 gpio0 at mvsocgpp0: 50 pins
 mvsocrtc0 at mvsoc0 unit 0 offset 0x10300-0x10317: Marvell SoC Real Time Clock
 com0 at mvsoc0 unit 0 offset 0x12000-0x1201f irq 33: ns16550a, working fifo
 com0: console
 com1 at mvsoc0 unit 1 offset 0x12100-0x1211f irq 34: ns16550a, working fifo
 ehci0 at mvsoc0 unit 0 offset 0x50000-0x50fff irq 19: Marvell USB 2.0 Interface
 usb0 at ehci0: USB revision 2.0
 gtidmac0 at mvsoc0 unit 0 offset 0x60000-0x60fff: Marvell IDMA Controller/XOR Engine
 gtidmac0: XOR Engine 4 channels, intr 5, 6, 7, 8
 gttwsi0 at mvsoc0 unit 0 offset 0x11000-0x110ff irq 29: Marvell TWSI controller
 iic0 at gttwsi0: I2C bus
 mvcesa0 at mvsoc0 unit 0 offset 0x3d000-0x3dfff irq 22: Marvell Cryptographic Engines and Security Accelerator
 mvgbec0 at mvsoc0 unit 0 offset 0x70000-0x73fff: Marvell Gigabit Ethernet Controller
 mvgbe0 at mvgbec0 port 0 irq 11
 mvgbe0: Ethernet address f4:ce:46:24:b2:ed
 ukphy0 at mvgbe0 phy 8: OUI 0x000ac2, model 0x0022, rev. 0
 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 mvgbec1 at mvsoc0 unit 1 offset 0x74000-0x77fff: Marvell Gigabit Ethernet Controller
 mvgbe at mvgbec1 port 0 not configured
 mvpex0 at mvsoc0 unit 0 offset 0x40000-0x41fff irq 9: Marvell PCI Express Interface
 extent_alloc(0xc2b7e410, 0x4000000, 0x4) returned 35
 extent `pexmem' (0xe0000000 - 0xe0ffffff), flags = 0x0
 PCI: bus 0, device 1, function 0: Failed to allocate PCI memory space (67108864 req)
 PCI bus configuration failed: unable to assign all I/O and memory ranges.
 pci0 at mvpex0
 vendor 11ab product 6281 (miscellaneous memory, revision 0x03) at pci0 dev 0 function 0 not configured
 vendor 18ca product 0027 (VGA display) at pci0 dev 1 function 0 not configured
 mvsata0 at mvsoc0 unit 0 offset 0x80000-0x87fff irq 21: Marvell Serial-ATA Host Controller (SATAHC)
 mvsata0: GenIIe, 1hc, 2port/hc
 atabus0 at mvsata0 channel 0
 atabus1 at mvsata0 channel 1
 mvsdio at mvsoc0 unit 0 not configured
 uhub0 at usb0: Marvell (0000) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1
 mvsata0 port 0: device present, speed: 3.0Gb/s
 mvsata0 port 1: device present, speed: 3.0Gb/s
 wd0 at atabus0 drive 0
 wd0: <SM224>
 wd0: 463 MB, 942 cyl, 16 head, 63 sec, 512 bytes/sect x 949536 sectors
 wd1 at atabus1 drive 0
 wd1: <SUNEAST SSD SE800 mSATA 256GB>
 wd1: 238 GB, 496149 cyl, 16 head, 63 sec, 512 bytes/sect x 500118192 sectors
 uhub1 at uhub0 port 1: SMSC (0x424) USB 2.0 4-Port Hub (0x2514), class 9/0, rev 2.00/0.00, addr 2
 uhub1: multiple transaction translators
 umass0 at uhub1 port 4 configuration 1 interface 0
 umass0: JMicron (0x152d) USB to ATA/ATAPI Bridge (0x2338), rev 2.00/1.00, addr 3
 scsibus0 at umass0: 2 targets, 1 lun per target
 sd0 at scsibus0 target 0 lun 0: <WDC WD80, 0JD-75MSA3, 1E04> disk fixed
 sd0: 76293 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 156250000 sectors
 boot device: <unknown>
 root device: sd0
 dump device (default sd0b): 
 file system (default generic): 
 root on sd0a dumps on sd0b
 root file system type: ffs
 kern.module.path=/stand/evbarm/8.0/modules
 init path (default /sbin/init): 
 init: trying /sbin/init
 /etc/rc: WARNING: $rc_configured is not set properly - see rc.conf(5).
 /etc/rc.conf is not configured.  Multiuser boot aborted.
 Enter pathname of shell or RETURN for /bin/sh: 
 Terminal type is vt100.
 We recommend that you create a non-root account and use su(1) for root access.
 # mount /tmp
 # swapon /dev/sd0b
 # newfs -b 16384 -f 4096 -i 8192 /dev/rwd1a
 /dev/rwd1a: 241664.0MB (494927872 sectors) block size 16384, fragment size 4096
 	using 833 cylinder groups of 290.12MB, 18568 blks, 36608 inodes.
 super-block backups (for fsck_ffs -b #) at:
 32, 594208, 1188384, 1782560, 2376736, 2970912, 3565088, 4159264, 4753440,
 ...............................................................................
 # mount -o log /dev/wd1a /mnt
 # dump 0f - /dev/rsd0a | (cd /mnt; restore xf -)
   DUMP: Date of this level 0 dump: Tue Apr 30 04:13:11 2019
   DUMP: Date of last level 0 dump: the epoch
   DUMP: Dumping /dev/rsd0a (an unlisted file system) to standard output
   DUMP: Label: none
   DUMP: mapping (Pass I) [regular files]
   DUMP: mapping (Pass II) [directories]
   DUMP: estimated 10389943 tape blocks.
   DUMP: Volume 1 started at: Tue Apr 30 04:13:36 2019
   DUMP: dumping (Pass III) [directories]
   DUMP: dumping (Pass IV) [regular files]
   DUMP: 3.35% done, finished in 2:28
 wd1a: device timeout writing fsbn 329886296 of 329886296-329886303 (wd1 bn 330934872; cn 328308 tn 6 sn 30), retrying
 mvsata0:0:1: device disconnect
 mvsata0:0:1: EDMA self disable happen 0x88
 mvsata0:0:1: unable to stop EDMA
 wd1a: device timeout writing fsbn 329886296 of 329886296-329886303 (wd1 bn 330934872; cn 328308 tn 6 sn 30), retrying
 mvsata0:0:1: unable to stop EDMA
 wd1a: device timeout writing fsbn 329886296 of 329886296-329886303 (wd1 bn 330934872; cn 328308 tn 6 sn 30), retrying
 mvsata0:0:1: unable to stop EDMA
 wd1a: device timeout writing fsbn 329886296 of 329886296-329886303 (wd1 bn 330934872; cn 328308 tn 6 sn 30), retrying
 mvsata0:0:1: unable to stop EDMA
 mvsata0: channel 1: drive 0 recal drive fault
 mvsata0:0:1: unable to stop EDMA
 wd1a: device fault writing fsbn 329886296 of 329886296-329886303 (wd1 bn 330934872; cn 328308 tn 6 sn 30), retrying
 mvsata0:0:1: unable to stop EDMA
 mvsata0: channel 1: drive 0 recal drive fault
 mvsata0:0:1: unable to stop EDMA
 wd1a: device fault writing fsbn 329886296 of 329886296-329886303 (wd1 bn 330934872; cn 328308 tn 6 sn 30)
 mvsata0:0:1: unable to stop EDMA
 wd1a: device timeout writing fsbn 329886304 of 329886304-329886319 (wd1 bn 330934880; cn 328308 tn 6 sn 38), retrying
 
 ---
 Izumi Tsutsui
 


Home | Main Index | Thread Index | Old Index