From nobody Tue Aug 24 05:51:12 2021 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 6549E1783921 for ; Tue, 24 Aug 2021 05:51:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GtysD2N68z4bXH for ; Tue, 24 Aug 2021 05:51:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2FFEA22F45 for ; Tue, 24 Aug 2021 05:51:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 17O5pCEK027592 for ; Tue, 24 Aug 2021 05:51:12 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 17O5pC7m027591 for freebsd-arm@FreeBSD.org; Tue, 24 Aug 2021 05:51:12 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-arm@FreeBSD.org Subject: [Bug 258019] Raspberry Pi 4 panics when using /dev/led/led1 Date: Tue, 24 Aug 2021 05:51:12 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: arm X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: mats@exmandato.se X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-arm@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated 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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258019 Bug ID: 258019 Summary: Raspberry Pi 4 panics when using /dev/led/led1 Product: Base System Version: CURRENT Hardware: arm64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: arm Assignee: freebsd-arm@FreeBSD.org Reporter: mats@exmandato.se Raspberry Pi 4 8 Gbyte Booting from USB stick Running latest snapshot FreeBSD localhost 14.0-CURRENT FreeBSD 14.0-CURRENT #0 main-n248803-eba8e643b19: Thu Aug 19 10:08:23 UTC 2021=20=20=20=20 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC ar= m64 Booting works fine. # morse -l =E2=80=9CSOS=E2=80=9D > /dev/led/led0 works as expected. But when I try: # morse -l "SOS" > /dev/led/led1 # lock order reversal: (sleepable after non-sleepable) 1st 0xffff000000c31c58 LED mtx (LED mtx, sleep mutex) @ /usr/src/sys/kern/kern_mutex.c:211 2nd 0xffffa00000ffec10 Raspberry Pi firmware gpio (Raspberry Pi firmware gp= io, sx) @ /usr/src/sys/arm/broadcom/bcm2835/raspberrypi_gpio.c:252 lock order LED mtx -> Raspberry Pi firmware gpio attempted at: #0 0xffff0000004e1b58 at witness_checkorder+0xc0c #1 0xffff00000047e348 at _sx_xlock+0x7c #2 0xffff0000007edc60 at rpi_fw_gpio_pin_set+0xe8 #3 0xffff0000001e998c at led_timeout+0xe8 #4 0xffff000000491368 at softclock_call_cc+0x13c #5 0xffff000000491674 at softclock+0x44 #6 0xffff000000430e64 at ithread_loop+0x2a8 #7 0xffff00000042d724 at fork_exit+0x74 #8 0xffff0000007774cc at fork_trampoline+0x14 panic: malloc(M_WAITOK) with sleeping prohibited cpuid =3D 0 time =3D 1629719529 KDB: stack backtrace: db_trace_self() at db_trace_self db_trace_self_wrapper() at db_trace_self_wrapper+0x30 vpanic() at vpanic+0x184 panic() at panic+0x44 malloc_dbg() at malloc_dbg+0xf8 malloc() at malloc+0x2c bcm2835_firmware_property() at bcm2835_firmware_property+0x44 rpi_fw_gpio_pin_set() at rpi_fw_gpio_pin_set+0x100 led_timeout() at led_timeout+0xe8 softclock_call_cc() at softclock_call_cc+0x13c softclock() at softclock+0x44 ithread_loop() at ithread_loop+0x2a8 fork_exit() at fork_exit+0x74 fork_trampoline() at fork_trampoline+0x14 KDB: enter: panic [ thread pid 12 tid 100028 ] Stopped at kdb_enter+0x44: undefined f905011f db> --=20 You are receiving this mail because: You are the assignee for the bug.=