From nobody Fri Jul 12 15:04:31 2024 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WLFHk609Zz5QZ0Z; Fri, 12 Jul 2024 15:04:34 +0000 (UTC) (envelope-from SRS0=8UWh=OM=klop.ws=ronald-lists@realworks.nl) Received: from smtp-relay-int.realworks.nl (smtp-relay-int.realworks.nl [194.109.157.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4WLFHj4DLWz4KHw; Fri, 12 Jul 2024 15:04:33 +0000 (UTC) (envelope-from SRS0=8UWh=OM=klop.ws=ronald-lists@realworks.nl) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=klop.ws header.s=rw2 header.b=NnIbt5lF; dmarc=pass (policy=quarantine) header.from=klop.ws; spf=pass (mx1.freebsd.org: domain of "SRS0=8UWh=OM=klop.ws=ronald-lists@realworks.nl" designates 194.109.157.24 as permitted sender) smtp.mailfrom="SRS0=8UWh=OM=klop.ws=ronald-lists@realworks.nl" Date: Fri, 12 Jul 2024 17:04:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1720796671; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=uQnPgbaDmYXKWSOxN8/c4qnvkbJbWBSrabF0qynksLo=; b=NnIbt5lF9I/4hj2mU0uy6k0JPKEww8t9wKJvTuQv0QWwFDfZ1OgQ98itXRy8r3mFjOZdy2 rAQPH6Csjt7+BTyDZ26J19kEzN2rJwH131Nq4YzduHfPNIYyAOcT7Ar6PGZiasTY1vI/6J kE9Ls9e01Yp0SB7cxTCdSRd8LbLEbPzFS+3Xvvco94j24V2BERSO3FNFPtPwvoNCRe2R4y ScOU9foiNFBQMzjiN0LGV1txJz0YCm2rMHISEISDPod5LizHL9jxrkzZQnUFXmdYJpCAJ9 7JADZ1YtRMt2zIft2k/PNzKHNCZEWQDp3VZrllmJqK4nXDqpk6syS9DtJGzy0A== From: Ronald Klop To: freebsd-usb@freebsd.org, freebsd-arm@freebsd.org Message-ID: <254722283.8424.1720796671190@localhost> Subject: panic on rpi3b: usbconfig reset List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8423_734285054.1720796671063" X-Mailer: Realworks (710.8) Importance: Normal X-Priority: 3 (Normal) X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.20 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; MID_RHS_NOT_FQDN(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[klop.ws,quarantine]; FORGED_SENDER(0.30)[ronald-lists@klop.ws,SRS0=8UWh=OM=klop.ws=ronald-lists@realworks.nl]; R_SPF_ALLOW(-0.20)[+ip4:194.109.157.0/24]; R_DKIM_ALLOW(-0.20)[klop.ws:s=rw2]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:3265, ipnet:194.109.0.0/16, country:NL]; RCVD_COUNT_ZERO(0.00)[0]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org,freebsd-usb@freebsd.org]; ARC_NA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[ronald-lists@klop.ws,SRS0=8UWh=OM=klop.ws=ronald-lists@realworks.nl]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; HAS_X_PRIO_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[klop.ws:+] X-Rspamd-Queue-Id: 4WLFHj4DLWz4KHw ------=_Part_8423_734285054.1720796671063 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hi, Performing "usbconfig reset" on my RPI3B running 14.1-RELEASE-p2/aarch64 results in a panic. Here is the output on the serial console: login: Jul 12 13:18:35 rpi3 su[14837]: ronald to root on /dev/pts/0 uhub0: at usbus1, port 1, addr 1 (disconnected) ugen1.2: at usbus1 (disconnected) uhub1: at uhub0, port 1, addr 2 (disconnected) ugen1.3: at usbus1 (disconnected) uhub2: at uhub1, port 1, addr 3 (disconnected) ugen1.4: at usbus1 (disconnected) muge0: at uhub2, port 1, addr 4 (disconnected) muge0: warning: Failed to read register 0x120 muge0: warning: MII is busy muge0: warning: Failed to read register 0x120 muge0: warning: MII is busy muge0: warning: Failed to read register 0x120 muge0: warning: MII is busy muge0: warning: Failed to read register 0x120 muge0: warning: MII is busy muge0: warning: Failed to read register 0x120 muge0: warning: MII is busy muge0: warning: Failed to read register 0x120 muge0: warning: MII is busy muge0: warning: Failed to read register 0x120 muge0: warning: MII is busy muge0: warning: Failed to read register 0x120 muge0: warning: MII is busy muge0: warning: Failed to read register 0x120 muge0: warning: MII is busy muge0: warning: Failed to read register 0x120 ukphy0: detached muge0: warning: MII is busy Fatal data abort: miibus0: detached x0: 0x0000000000000000 x1: 0xffff0000403f44d4 x2: 0x0000000000000000 x3: 0xffff00000032e24c x4: 0xffff00000088eef8 x5: 0x0000000000000041 x6: 0xffff00000052cee8 x7: 0xffff0000403f43b0 x8: 0x0000000000000053 x9: 0xaf460225cde9dab0 x10: 0x0000000000000001 x11: 0x0000000000000001 x12: 0x0000000000000001 x13: 0x0000000000000001 x14: 0x0000000000000000 x15: 0x0000000000000002 x16: 0x0000000000000000 x17: 0xffff0000403f42b5 x18: 0xffff0000403f45d0 x19: 0xffffa00001980380 x20: 0x0000000000000000 x21: 0x0000000000000000 x22: 0x0000000000000001 x23: 0xffffa00001a70200 x24: 0xffffa00001980800 x25: 0xffff000000c5d410 x26: 0xffffa000018045c0 x27: 0xffff000000ca5000 x28: 0x0000000000000000 x29: 0xffff0000403f45d0 sp: 0xffff0000403f45d0 lr: 0xffff0000001dec34 elr: 0xffff0000001dec44 spsr: 0x0000000060000045 far: 0x0000000000000000 esr: 0x0000000096000004 panic: vm_fault failed: 0xffff0000001dec44 error 1 cpuid = 2 time = 1720783402 KDB: stack backtrace: #0 0xffff000000525d3c at kdb_backtrace+0x58 #1 0xffff0000004d0d40 at vpanic+0x198 #2 0xffff0000004d0ba4 at panic+0x44 #3 0xffff0000008b795c at data_abort+0x2cc #4 0xffff000000893814 at handle_el1h_sync+0x14 Uptime: 7m10s Dumping 134 out of 926 MB:..3%..12%..21%..33%..42%..51%..63%..72%..81%..93% Dump complete Resetting system ... I have a core dump and can gather more information. The panic is repeatable. Regards, Ronald. ------=_Part_8423_734285054.1720796671063 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Hi,

Performing "usbconfig reset" on my RPI3B running 14.1-RELEASE-p2/aarch64 results in a panic.

Here is the output on the serial console:

login: Jul 12 13:18:35 rpi3 su[14837]: ronald to root on /dev/pts/0                                                                 
uhub0: at usbus1, port 1, addr 1 (disconnected)                                                                                     
ugen1.2: <vendor 0x0424 product 0x2514> at usbus1 (disconnected)                                                                    
uhub1: at uhub0, port 1, addr 2 (disconnected)                                                                                      
ugen1.3: <vendor 0x0424 product 0x2514> at usbus1 (disconnected)                                                                    
uhub2: at uhub1, port 1, addr 3 (disconnected)                                                                                      
ugen1.4: <vendor 0x0424 product 0x7800> at usbus1 (disconnected)                                                                    
muge0: at uhub2, port 1, addr 4 (disconnected)                                                                                      
muge0: warning: Failed to read register 0x120                                                                                       
muge0: warning: MII is busy                                                                                                         
muge0: warning: Failed to read register 0x120                                                                                       
muge0: warning: MII is busy                                                                                                         
muge0: warning: Failed to read register 0x120                                                                                       
muge0: warning: MII is busy                                                                                                         
muge0: warning: Failed to read register 0x120                                                                                       
muge0: warning: MII is busy                                                                                                         
muge0: warning: Failed to read register 0x120                                                                                       
muge0: warning: MII is busy                                                                                                         
muge0: warning: Failed to read register 0x120                                                                                       
muge0: warning: MII is busy                                                                                                         
muge0: warning: Failed to read register 0x120                                                                                       
muge0: warning: MII is busy                                                                                                         
muge0: warning: Failed to read register 0x120                                                                                       
muge0: warning: MII is busy                                                                                                         
muge0: warning: Failed to read register 0x120                                                                                       
muge0: warning: MII is busy                                                                                                         
muge0: warning: Failed to read register 0x120                                                                                       
ukphy0: detached                                                                                                                    
muge0: warning: MII is busy                                                                                                         
Fatal data abort:                                                                                                                   
miibus0: detached                                     
  x0: 0x0000000000000000                                                                                                            
  x1: 0xffff0000403f44d4                                                                                                            
  x2: 0x0000000000000000                                                                                                            
  x3: 0xffff00000032e24c                                                                                                            
  x4: 0xffff00000088eef8                                                                                                            
  x5: 0x0000000000000041                                                                                                            
  x6: 0xffff00000052cee8                                                                                                            
  x7: 0xffff0000403f43b0                                                                                                            
  x8: 0x0000000000000053                                                                                                            
  x9: 0xaf460225cde9dab0                                                                                                            
 x10: 0x0000000000000001                                                                                                            
 x11: 0x0000000000000001                                                                                                            
 x12: 0x0000000000000001                                                                                                            
 x13: 0x0000000000000001                                                                                                            
 x14: 0x0000000000000000                                                                                                            
 x15: 0x0000000000000002                                                                                                            
 x16: 0x0000000000000000                                                                                                            
 x17: 0xffff0000403f42b5                                                                                                            
 x18: 0xffff0000403f45d0                                                                                                            
 x19: 0xffffa00001980380                                                                                                            
 x20: 0x0000000000000000                                                                                                            
 x21: 0x0000000000000000                                                                                                            
 x22: 0x0000000000000001                                                                                                            
 x23: 0xffffa00001a70200                                                                                                            
 x24: 0xffffa00001980800                                                                                                            
 x25: 0xffff000000c5d410                                                                                                            
 x26: 0xffffa000018045c0                                                                                                            
 x27: 0xffff000000ca5000                                                                                                            
 x28: 0x0000000000000000                                                                                                            
 x29: 0xffff0000403f45d0                                                                                                            
  sp: 0xffff0000403f45d0                                                                                                            
  lr: 0xffff0000001dec34                                                                                                            
 elr: 0xffff0000001dec44                                                                                                            
spsr: 0x0000000060000045                                                                                                            
 far: 0x0000000000000000                                                                                                            
 esr: 0x0000000096000004                                                                                                            
panic: vm_fault failed: 0xffff0000001dec44 error 1                                                                                  
cpuid = 2                                                                                                                           
time = 1720783402                                                                                                                   
KDB: stack backtrace:                                                                                                               
#0 0xffff000000525d3c at kdb_backtrace+0x58                                                                                         
#1 0xffff0000004d0d40 at vpanic+0x198                                                                                               
#2 0xffff0000004d0ba4 at panic+0x44                                                                                                 
#3 0xffff0000008b795c at data_abort+0x2cc                                                                                           
#4 0xffff000000893814 at handle_el1h_sync+0x14                                                                                      
Uptime: 7m10s                                           
Dumping 134 out of 926 MB:..3%..12%..21%..33%..42%..51%..63%..72%..81%..93%                                                         
Dump complete                                                                                                                       
Resetting system ...                                                                    


I have a core dump and can gather more information.
The panic is repeatable.

Regards,
Ronald.
  ------=_Part_8423_734285054.1720796671063--