NetBSD-Bugs archive

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

kern/52419: mvsata fails to disable edma



>Number:         52419
>Category:       kern
>Synopsis:       mvsata fails to disable edma
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 18 06:35:00 +0000 2017
>Originator:     Martin Husemann
>Release:        NetBSD 8.0_BETA
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD plug.duskware.de 8.0_BETA NetBSD 8.0_BETA (PLUG) #1: Mon Jul 17 11:57:48 CEST 2017 martin%seven-days-to-the-wolves.aprisoft.de@localhost:/work/src-8/sys/arch/evbarm/compile/PLUG evbarm
Architecture: earm
Machine: evbarm
>Description:

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.

The messages comes from mvsata_edma_disable():

                if (ms == timeout) {
                        aprint_error("%s:%d:%d: unable to stop EDMA\n",
                            device_xname(MVSATA_DEV2(mvport)), 
                            mvport->port_hc->hc, mvport->port);
                        return EBUSY;
                }

dmesg is:

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017
    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_BETA (PLUG) #1: Mon Jul 17 11:57:48 CEST 2017
	martin%seven-days-to-the-wolves.aprisoft.de@localhost:/work/src-8/sys/arch/evbarm/compile/PLUG
total memory = 512 MB
avail memory = 498 MB
sysctl_createv: sysctl_create(machine_arch) returned 17
timecounter: Timecounters tick every 10.000 msec
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:  	0xffffffff
mvsocgpp0:   Data Blink Enable:        	0x00000000
mvsocgpp0:   Data In Polarity:         	0x00000000
mvsocgpp0:   Data In:                  	0x00000080
mvsocgpp0:   Interrupt Cause:          	0x00000000
mvsocgpp0:   Interrupt Mask:           	0x00000000
mvsocgpp0:   Interrupt Level Mask:     	0x00000000
mvsocgpp0:   High Data Out:            	0x000f0000
mvsocgpp0:   High Data Out Enable Ctrl:	0xffffffff
mvsocgpp0:   High Blink Enable:        	0x00000000
mvsocgpp0:   High Data In Polarity:    	0x00000000
mvsocgpp0:   High Data In:             	0x0003f000
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
ehci0: EHCI version 1.0
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 00:50:43:01:83:dc
makphy0 at mvgbe0 phy 0: Marvell 88E1149 Gigabit PHY, rev. 3
makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
mvgbec1 at mvsoc0 unit 1 offset 0x74000-0x77fff: Marvell Gigabit Ethernet Controller
mvgbe1 at mvgbec1 port 0 irq 15
mvgbe1: Ethernet address 00:50:43:01:83:dd
makphy1 at mvgbe1 phy 1: Marvell 88E1149 Gigabit PHY, rev. 3
makphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
mvpex0 at mvsoc0 unit 0 offset 0x40000-0x41fff irq 9: Marvell PCI Express Interface
pci0 at mvpex0
pci0: i/o space, memory space enabled
vendor 11ab product 6281 (miscellaneous memory, revision 0x03) at pci0 dev 0 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
mvsdio0 at mvsoc0 unit 0 offset 0x90000-0x9ffff irq 28: Marvell Secure Digital Input/Output Interface
sdmmc0 at mvsdio0
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
timecounter: Timecounter "mvsoctmr0" frequency 200000000 Hz quality 100
uhub0 at usb0: Marvell (0000) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1
uhub0: 1 port with 1 removable, self powered
mvsata0 port 0: device present, speed: 3.0Gb/s
sdmmc0: bad CIS ptr 0
sdmmc0: couldn't read CIS
sdmmc0: i/o init failed
sdmmc0: bad CIS ptr 0
sdmmc0: couldn't read CIS
sdmmc0: i/o init failed
"Marvell, 802.11 SDIO ID: 10, " (manufacturer 0x2df, product 0x9103) at sdmmc0 function 1 not configured
"Marvell, 802.11 SDIO ID: 10, " (manufacturer 0x2df, product 0x9103) at sdmmc0 function 2 not configured
wd0 at atabus0 drive 0
wd0: <ST3000DM001-1ER166>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 2794 GB, 5814021 cyl, 16 head, 63 sec, 512 bytes/sect x 5860533168 sectors
wd0: GPT GUID: d96ce1d6-f47b-464b-b0c8-b8fea0d23f31
dk0 at wd0: "Guru-Root", 5856338797 blocks at 34, type: ffs
dk1 at wd0: "d5c3eff7-a35d-41b3-9c58-76679533f5cb", 4194304 blocks at 5856338831, type: swap
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(mvsata0:0:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
uhub1 at uhub0 port 1: vendor 05e3 (0x5e3) USB2.0 Hub (0x608), class 9/0, rev 2.00/77.60, addr 2
uhub1: single transaction translator
uhub1: 4 ports with 4 removable, self powered
umass0 at uhub1 port 1 configuration 1 interface 0
umass0: vendor 05e3 (0x5e3) USB Storage (0x726), rev 2.00/99.09, addr 3
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 2 luns per target
sd0 at scsibus0 target 0 lun 0: <Generic, STORAGE DEVICE, 9909> disk removable
sd0: drive offline
sd1 at scsibus0 target 0 lun 1: <Generic, STORAGE DEVICE, 9909> disk removable
sd1: fabricating a geometry
sd1: 1886 MB, 1886 cyl, 64 head, 32 sec, 512 bytes/sect x 3862528 sectors
sd1: fabricating a geometry
uhub2 at uhub1 port 2: vendor 0409 (0x409) product 005a (0x5a), class 9/0, rev 2.00/1.00, addr 4
uhub2: single transaction translator
uhub2: 2 ports with 0 removable, self powered
umcs0 at uhub2 port 1: vendor 9710 (0x9710) product 7840 (0x7840), rev 2.00/0.01, addr 5
umcs0: found 4 active ports
umcs0: On-die confguration: RST: active low, HRD: yes, PLL: avail, POR: avail, Ports: 4, EEPROM write disabled, IrDA is not available
ucom0 at umcs0 portno 0
ucom1 at umcs0 portno 1
ucom2 at umcs0 portno 2
ucom3 at umcs0 portno 3
umcs1 at uhub2 port 2: vendor 9710 (0x9710) product 7840 (0x7840), rev 2.00/0.01, addr 6
umcs1: found 4 active ports
umcs1: On-die confguration: RST: active low, HRD: yes, PLL: avail, POR: avail, Ports: 4, EEPROM write disabled, IrDA is not available
ucom4 at umcs1 portno 0
ucom5 at umcs1 portno 1
ucom6 at umcs1 portno 2
ucom7 at umcs1 portno 3
uplcom0 at uhub1 port 3
uplcom0: Prolific Technology Inc. (0x67b) USB-Serial Controller (0x2303), rev 1.10/3.00, addr 7
ucom8 at uplcom0
WARNING: 6 errors while detecting hardware; check system log.
boot device: <unknown>
root on dk0 dumps on dk1
kern.module.path=/stand/evbarm/8.0/modules


>How-To-Repeat:
run netbsd-8 on a guruplug with eSATA disk connected and exercise the
disk a bit.

>Fix:
n/a



Home | Main Index | Thread Index | Old Index