From nobody Sat Jul 13 05:48:45 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 4WLcwD3bBBz5PyDl; Sat, 13 Jul 2024 05:49:00 +0000 (UTC) (envelope-from kamalpr@gmail.com) Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WLcwC3JZ6z4v76; Sat, 13 Jul 2024 05:48:59 +0000 (UTC) (envelope-from kamalpr@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-oi1-x235.google.com with SMTP id 5614622812f47-3cabac56b38so1722886b6e.3; Fri, 12 Jul 2024 22:48:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720849737; x=1721454537; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=hme35EvWuayGpcK16umu6hStePgqRi8UU2xPTXlFmfM=; b=PNIqFx9iLuz2k2GyBnIteoIKpxMvukib0F5oyM4QRTWAgDwus11gEaPJlTwmxm2Woj g8Uj21YOAxihHKY1KT5rx0Bgwvu1ozGIE80rjAUScO+O3UV0cBH5PmpFzAXKHGK1397H /sU8EOWTrJj0MDWJCdLzFVVeBYipa3604TTeCR8NJw4+sfb/dAh4NzI5Dq9PpZu03d4C erZ9zmay09J0NXJHu0ZKggCM0eNbLsyeRpmOei6UKh1FGoScJLcVIzPwYnIZlwwyZACO E1u/7PvZv4P4fd2m98XBtdinAY73++jgB9R9CsS3yjPMHbrdmj/7B3ibyFh1LDDSiw4a 9MxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720849737; x=1721454537; h=content-transfer-encoding:cc:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=hme35EvWuayGpcK16umu6hStePgqRi8UU2xPTXlFmfM=; b=izajaTMIj/ePaC8qnwd+ozMWa8945hmLiK3X/qOoRWIbNwZ4pe501MjnKQDDq8sWHm Xs8mBmQNMHW1xATUG61MrEqkpS5sPEEjPSxcmNNFZ8yCOKRII/KhxTv94ap7tD7zxE4K BefrG0+VDgduwSagVD/6rlBaC59WMltdgnNj/WyF2oQQvkmXg3ErCsSj3jBtSfTVdfBp T0i9KEemlh1V+HVZxgx5Vjp4EuUIkoDmU2/Ril+4b1TNKL5dRr8hYhZ/ubAChBtTd3hC WUtPYv6wh7tgZTma7X0y3+l4b3ZE27nSZgoSWE2Sn9teb9iqIBdPIsarX8IsVahKxFHM GmAQ== X-Forwarded-Encrypted: i=1; AJvYcCVrV/Tjtn519RGHFJTOvLFrNSNpffow4h8HE8+p1jh+9pHS32aIVsmA73RfmI6xF2Od1H9dfGz3u6VU7l/yT8zQbG8spktpzg== X-Gm-Message-State: AOJu0YyYsf2K5/08/bufv7S0qhtKJ8tlR68FwqnwuP8pTwMB3/1Leiil AQqTyDYlYI3Kc61LYssyqgshKKsnf+2csA0lEX3roIf7VtKNdpRKKtLPlerZqoA3hqP4erKrxo3 jpQ+BGTexzm+YUGu3xWIwTHiuProPyCZfYg== X-Google-Smtp-Source: AGHT+IGF7w9qPTUaw4sDuPzC8UxsQUrNJMAA+UNipTMwWS4Rf1Uu5ZM8TR5B5BYRe865QF+pr53EAY5GYZJTkpNvwCw= X-Received: by 2002:a05:6870:e38c:b0:258:42be:ce5e with SMTP id 586e51a60fabf-25eae7b783amr10744545fac.16.1720849737217; Fri, 12 Jul 2024 22:48:57 -0700 (PDT) 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 References: <254722283.8424.1720796671190@localhost> <399055758.9715.1720797541322@localhost> In-Reply-To: <399055758.9715.1720797541322@localhost> Reply-To: kamalpr@gmail.com From: "Kamal R. Prasad" Date: Sat, 13 Jul 2024 11:18:45 +0530 Message-ID: Subject: Re: panic on rpi3b: usbconfig reset To: Ronald Klop Cc: freebsd-usb@freebsd.org, freebsd-arm@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4WLcwC3JZ6z4v76 can someone tell me how to unsubscribe to this mailing list? thanks -kamal On Fri, Jul 12, 2024 at 8:49=E2=80=AFPM Ronald Klop = wrote: > > > > Van: Ronald Klop > Datum: vrijdag, 12 juli 2024 17:04 > Aan: freebsd-usb@freebsd.org, freebsd-arm@freebsd.org > Onderwerp: panic on rpi3b: usbconfig reset > > 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 =3D 2 > time =3D 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%..9= 3% > Dump complete > Resetting system ... > > > I have a core dump and can gather more information. > The panic is repeatable. > > Regards, > Ronald. > > > > > Hi, > > I managed to attached the debugger to the core dump and get a backtrace. > > [root@rpi3 ~]# kgdb -n 1 /usr/lib/debug/boot/kernel/kernel.debug > Reading symbols from /usr/lib/debug/boot/kernel/kernel.debug... > > Unread portion of the kernel message buffer: > panic: vm_fault failed: 0xffff0000001dec44 error 1 > cpuid =3D 2 > time =3D 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% > > Reading symbols from /boot/kernel/if_bridge.ko... > Reading symbols from /usr/lib/debug//boot/kernel/if_bridge.ko.debug... > Reading symbols from /boot/kernel/bridgestp.ko... > Reading symbols from /usr/lib/debug//boot/kernel/bridgestp.ko.debug... > Reading symbols from /boot/kernel/if_epair.ko... > Reading symbols from /usr/lib/debug//boot/kernel/if_epair.ko.debug... > Reading symbols from /boot/kernel/ipfw.ko... > Reading symbols from /usr/lib/debug//boot/kernel/ipfw.ko.debug... > Reading symbols from /boot/kernel/ipfw_nat.ko... > Reading symbols from /usr/lib/debug//boot/kernel/ipfw_nat.ko.debug... > Reading symbols from /boot/kernel/libalias.ko... > Reading symbols from /usr/lib/debug//boot/kernel/libalias.ko.debug... > Reading symbols from /boot/kernel/mac_ntpd.ko... > Reading symbols from /usr/lib/debug//boot/kernel/mac_ntpd.ko.debug... > Reading symbols from /boot/kernel/geom_eli.ko... > Reading symbols from /usr/lib/debug//boot/kernel/geom_eli.ko.debug... > Reading symbols from /boot/kernel/nullfs.ko... > Reading symbols from /usr/lib/debug//boot/kernel/nullfs.ko.debug... > Reading symbols from /boot/kernel/uslcom.ko... > Reading symbols from /usr/lib/debug//boot/kernel/uslcom.ko.debug... > Reading symbols from /boot/kernel/ucom.ko... > Reading symbols from /usr/lib/debug//boot/kernel/ucom.ko.debug... > Reading symbols from /boot/kernel/uplcom.ko... > Reading symbols from /usr/lib/debug//boot/kernel/uplcom.ko.debug... > get_curthread () at /usr/src/sys/arm64/include/pcpu.h:77 > 77 __asm __volatile("ldr %0, [x18]" : "=3D&r"(td)); > (kgdb) bt > #0 get_curthread () at /usr/src/sys/arm64/include/pcpu.h:77 > #1 doadump (textdump=3D) at /usr/src/sys/kern/kern_shutdo= wn.c:405 > #2 0xffff0000004d0794 in kern_reboot (howto=3D260) at /usr/src/sys/kern/= kern_shutdown.c:523 > #3 0xffff0000004d0dcc in vpanic (fmt=3D, ap=3D...) at /us= r/src/sys/kern/kern_shutdown.c:967 > #4 0xffff0000004d0ba8 in panic (fmt=3D0xffff000000cae000 "") > at /usr/src/sys/kern/kern_shutdown.c:891 > #5 0xffff0000008b7960 in data_abort (td=3D0xffff0000893f1c80, frame=3D0x= ffff0000403f4430, esr=3D2516582404, far=3D, > lower=3D) at /usr/src/sys/arm64/arm64/trap.c:398 > #6 > #7 MIIBUS_READREG (dev=3D0x0, phy=3D1, reg=3D1) at ./miibus_if.h:26 > #8 ukphy_status (phy=3D0xffffa00001980380) at /usr/src/sys/dev/mii/ukphy= _subr.c:68 > #9 0xffff0000001deb98 in ukphy_service (sc=3D0xffffa00001980380, mii=3D<= optimized out>, cmd=3D3) at /usr/src/sys/dev/mii/ukphy.c:151 > #10 0xffff0000001d5b5c in mii_pollstat (mii=3Dmii@entry=3D0xffffa00001980= 800) at /usr/src/sys/dev/mii/mii.c:619 > #11 0xffff0000002fa298 in muge_ifmedia_sts (ifp=3D, ifmr= =3D0xffff0000403f4708) > at /usr/src/sys/dev/usb/net/if_muge.c:2127 > #12 0xffff00000061e148 in ifmedia_ioctl (ifp=3D0x0, ifr=3D0xffff0000403f4= 708, ifm=3D0x0, cmd=3D18446462598736175692) > at /usr/src/sys/net/if_media.c:293 > #13 0xffff00000071550c in get_operstate_ether (ifp=3D0xffffa00001363000, = pstate=3D) > at /usr/src/sys/netlink/route/iface.c:124 > #14 get_operstate (ifp=3D0xffffa00001363000, pstate=3D) at= /usr/src/sys/netlink/route/iface.c:181 > #15 dump_iface (nw=3Dnw@entry=3D0xffff0000403f4790, ifp=3Difp@entry=3D0xf= fffa00001363000, hdr=3Dhdr@entry=3D0xffff0000403f47d0, > if_flags_mask=3Dif_flags_mask@entry=3D0) at /usr/src/sys/netlink/rout= e/iface.c:310 > #16 0xffff000000714dd8 in rtnl_handle_ifevent (ifp=3D0xffffa00001363000, = nlmsg_type=3D, if_flags_mask=3D0) > at /usr/src/sys/netlink/route/iface.c:1411 > #17 0xffff000000613c20 in do_link_state_change (arg=3D0xffffa00001363000,= pending=3D) at /usr/src/sys/net/if.c:2206 > #18 0xffff00000053e1f0 in taskqueue_run_locked (queue=3Dqueue@entry=3D0xf= fffa0000137ac00) at /usr/src/sys/kern/subr_taskqueue.c:518 > #19 0xffff00000053df44 in taskqueue_run (queue=3D0xffffa0000137ac00) at /= usr/src/sys/kern/subr_taskqueue.c:533 > #20 0xffff000000481b10 in intr_event_execute_handlers (ie=3D0xffffa000013= 74a00, p=3D) > at /usr/src/sys/kern/kern_intr.c:1205 > #21 ithread_execute_handlers (ie=3D0xffffa00001374a00, p=3D) at /usr/src/sys/kern/kern_intr.c:1218 > #22 ithread_loop (arg=3Darg@entry=3D0xffffa0000140f9e0) at /usr/src/sys/k= ern/kern_intr.c:1306 > #23 0xffff00000047cdf4 in fork_exit (callout=3D0xffff000000481778 , arg=3D0xffffa0000140f9e0, frame=3D0xffff0000403f4a00) > at /usr/src/sys/kern/kern_fork.c:1164 > #24 > (kgdb) > > > I hope this makes sense to somebody. If I need to type some extra command= s in the debugger please let me know. > > Regards, > Ronald. >