NetBSD Problem Report #54214

From mac@SS.Culver.Net  Sat May 18 04:47:18 2019
Return-Path: <mac@SS.Culver.Net>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 9DE577A194
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 18 May 2019 04:47:18 +0000 (UTC)
Message-Id: <20190518033141.E743623962E@SS.Culver.Net>
Date: Fri, 17 May 2019 20:31:41 -0700 (PDT)
From: mac@culver.net
Reply-To: mac@culver.net
To: gnats-bugs@gnats.NetBSD.org
Subject: RPi3+ ARM64 usb-related crash
X-Send-Pr-Version: 3.95

>Number:         54214
>Category:       port-arm
>Synopsis:       crash
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-arm-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat May 18 04:50:00 +0000 2019
>Closed-Date:    Thu Nov 04 06:52:58 +0000 2021
>Last-Modified:  Thu Nov 04 06:52:58 +0000 2021
>Originator:     mac@culver.net
>Release:        
>Organization:

>Environment:


Architecture: arm64
Machine: RPi3+
>Description:
  Was scp large TAR file into RPi3+   250MB  from amd64 NetBSD machine


A>May 18 03:18:03 A su: mac to root on /dev/pts/1                             ~
[ 6964.9094374] panic: kernel diagnostic assertion "xfer->ux_state == XFER_BUSY" failed: file "/usr/src/sys/dev/usb/usbdi.c", line 1039 xfer 0xffff00003ad27040 state is 9e
[ 6964.9294345] cpu2: Begin traceback...
[ 6964.9294345] trace fp ffffffc032fef690
[ 6964.9294345] fp ffffffc032fef6b0 vpanic() at ffffffc0004770b0 netbsd:vpanic+0x198
[ 6964.9394386] fp ffffffc032fef710 kern_assert() at ffffffc0005b1fc4 netbsd:kern_assert+0x5c
[ 6964.9494387] fp ffffffc032fef7a0 usb_insert_transfer() at ffffffc0000c3394 netbsd:usb_insert_transfer+0xdc
[ 6964.9594386] fp ffffffc032fef7c0 dwc2_device_bulk_transfer() at ffffffc00032cc98 netbsd:dwc2_device_bulk_transfer+0x28
[ 6964.9694384] fp ffffffc032fef7e0 usbd_transfer() at ffffffc0000c2098 netbsd:usbd_transfer+0x98
[ 6964.9794409] fp ffffffc032fef810 mue_start() at ffffffc0000feac8 netbsd:mue_start+0x260
[ 6964.9894404] fp ffffffc032fef890 if_transmit() at ffffffc000504220 netbsd:if_transmit+0x150
[ 6964.9994421] fp ffffffc032fef8d0 ether_output() at ffffffc000510738 netbsd:ether_output+0x440
[ 6965.0094416] fp ffffffc032fef930 ip_if_output() at ffffffc000217074 netbsd:ip_if_output+0xac
[ 6965.0194442] fp ffffffc032fef970 ip_output() at ffffffc000218918 netbsd:ip_output+0x1160
[ 6965.0294437] fp ffffffc032fefb30 tcp_output() at ffffffc000223c04 netbsd:tcp_output+0x1624
[ 6965.0394452] fp ffffffc032fefc50 tcp_rcvd_wrapper() at ffffffc00022a264 netbsd:tcp_rcvd_wrapper+0xa4
[ 6965.0494476] fp ffffffc032fefca0 soreceive() at ffffffc0004ac584 netbsd:soreceive+0x3e4
[ 6965.0594468] fp ffffffc032fefda0 dofileread() at ffffffc000484328 netbsd:dofileread+0x70
[ 6965.0694466] fp ffffffc032fefe20 syscall() at ffffffc0000727ec netbsd:syscall+0x19c
[ 6965.0794493] tf ffffffc032fefed0 el0_trap() at ffffffc000070e78 netbsd:el0_trap
[ 6965.0894491] ---- trapframe 0xffffffc032fefed0 (304 bytes) ----
[ 6965.0894491]     pc=0000f01440fb8438,   spsr=0000000000000000
[ 6965.0994501]    esr=0000000056000003,    far=0000fffffffc8fd0
[ 6965.0994501]     x0=0000000000000004,     x1=0000fffffffdfbc0
[ 6965.1094501]     x2=0000000000004000,     x3=0000000000000010
[ 6965.1194514]     x4=0000000000000000,     x5=0000000000000004
[ 6965.1194514]     x6=000000000000000e,     x7=0000000000000000
[ 6965.1294518]     x8=0000fffffffe3a80,     x9=0000000000000006
[ 6965.1294518]    x10=0000000000000040,    x11=000000000000003f
[ 6965.1394531]    x12=000003fffffff892,    x13=000003fffffff896
[ 6965.1394531]    x14=0000000000007f00,    x15=0000f01441a1f14c
[ 6965.1494541]    x16=0000000200159a50,    x17=0000f01440fb8434
[ 6965.1594548]    x18=0000000027000000,    x19=0000f01440eb3a00
[ 6965.1594548]    x20=000000020015a000,    x21=0000000000000000
[ 6965.1694552]    x22=0000000200139ec8,    x23=000000020015b000
[ 6965.1694552]    x24=0000000000000000,    x25=0000000000000010
[ 6965.1794565]    x26=0000000000000000,    x27=0000000000000001
[ 6965.1894575]    x28=0000000000000004, fp=x29=0000000000000000
[ 6965.1894575] lr=x30=000000020011517c,     sp=0000fffffffdfba0
[ 6965.1994582] ------------------------------------------------
[ 6965.1994582] cpu2: End traceback...

[ 6965.2094588] dump to dev 92,1 not possible
[ 6970.4200551] rebooting...
ok
[   1.0000000] uboot: args 0x2effab00, 0, 0, 0
[   1.0000000] NetBSD/evbarm (fdt) booting ...
[   1.0000000] FDT /memory [0] @ 0x0 size 0x3b400000
[   1.0000000] initarm: memory start 0 end 3b400000 (len 3b400000)
[   1.0000000] initarm: fdt_build_bootconfig
[   1.0000000] Usable memory:
[   1.0000000]   1000 - 3b3fffff
[   1.0000000] Creating KSEG tables for 0x0000000000000000-0x000000003b400000
[   1.0000000] cpu_kernel_vm_init: kernel phys start 200000 end f6f000+8000
[   1.0000000] bootargs: bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708_fb.fbswap=1 dma.dmachans=0x7f35 bcm2709.boardrev=0xa020d3 bcm2709.serial=0xf244be30 bcm2709.uart_clock=48000000 bcm2709.disk_led_gpio=29 bcm2709.disk_led_active_low=0 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  root=ld0a
[   1.0000000] Memory regions:
[   1.0000000]   1000 - 1fffff
[   1.0000000]   f77000 - 3b3fffff
[   1.0000000] ------------------------------------------
[   1.0000000] kern_vtopdiff         = 0xffffffbfffe00000
[   1.0000000] physical_start        = 0x0000000000001000
[   1.0000000] kernel_start_phys     = 0x0000000000200000
[   1.0000000] kernel_end_phys       = 0x0000000000f6f000
[   1.0000000] msgbuf                = 0x000000003b3f0000
[   1.0000000] physical_end          = 0x000000003b400000
[   1.0000000] VM_MIN_KERNEL_ADDRESS = 0xffffffc000000000
[   1.0000000] kernel_start_l2       = 0xffffffc000000000
[   1.0000000] kernel_start          = 0xffffffc000000000
[   1.0000000] kernel_end            = 0xffffffc000d6f000
[   1.0000000] pagetables            = 0xffffffc000d6f000
[   1.0000000] pagetables_end        = 0xffffffc000d77000
[   1.0000000] kernel_end_l2         = 0xffffffc000e00000
[   1.0000000] module_start          = 0xffffffc000e00000
[   1.0000000] module_end            = 0xffffffc002e00000
[   1.0000000] (kernel va area)
[   1.0000000] (devmap va area)      = 0xfffffffff0000000
[   1.0000000] VM_MAX_KERNEL_ADDRESS = 0xffffffffffe00000
[   1.0000000] ------------------------------------------
[   1.0000000] mpstart
[   1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
[   1.0000000]     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
[   1.0000000]     2018, 2019 The NetBSD Foundation, Inc.  All rights reserved.
[   1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[   1.0000000]     The Regents of the University of California.  All rights reserved.

[   1.0000000] NetBSD 8.99.40 (GENERIC64) #0: Tue May 14 09:43:55 UTC 2019
[   1.0000000]  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/evbarm/compile/GENERIC64
[   1.0000000] total memory = 934 MB
[   1.0000000] avail memory = 900 MB


>How-To-Repeat:
  I'm not sure; I will try same thing again
>Fix:


>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->feedback
State-Changed-By: skrll@NetBSD.org
State-Changed-When: Mon, 18 Oct 2021 07:47:43 +0000
State-Changed-Why:
Hopefully fixed with all the changes since the PR date. Can you re-test, please?


State-Changed-From-To: feedback->closed
State-Changed-By: skrll@NetBSD.org
State-Changed-When: Thu, 04 Nov 2021 06:52:58 +0000
State-Changed-Why:
Timeout on feedback. Issue likely fixed. 
Please raise a new PR if problems persist.


>Unformatted:
   >Release:  8.99.40 NetBSD 8.99.40 (GENERIC64)  #0: Tue May 14 09:43:55 UTC 2019  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/evbarm/compile/GENERIC64 evbarm

 	<Please check that the above is correct for the bug being reported,>
 	<and append source date of snapshot, if applicable (one line).>

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.