From owner-freebsd-bugs@freebsd.org Wed Aug 5 19:58:02 2020 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5D8953A7D9D for ; Wed, 5 Aug 2020 19:58:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4BMMqZ1vMFz49gL for ; Wed, 5 Aug 2020 19:58:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 413583A8116; Wed, 5 Aug 2020 19:58:02 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4101F3A7D9C for ; Wed, 5 Aug 2020 19:58:02 +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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BMMqZ119cz49d7 for ; Wed, 5 Aug 2020 19:58:02 +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 029A91B53A for ; Wed, 5 Aug 2020 19:58:02 +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 075Jw1mZ088492 for ; Wed, 5 Aug 2020 19:58:01 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 075Jw1LE088491 for bugs@FreeBSD.org; Wed, 5 Aug 2020 19:58:01 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: bugs@FreeBSD.org Subject: [Bug 248490] RPi4: gpioled witness warnings and a LOR (exclusive sleep mutex LED mtx) Date: Wed, 05 Aug 2020 19:58:01 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: gbe@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@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 attachments.created 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 MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Aug 2020 19:58:02 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248490 Bug ID: 248490 Summary: RPi4: gpioled witness warnings and a LOR (exclusive sleep mutex LED mtx) Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: gbe@FreeBSD.org Created attachment 217037 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D217037&action= =3Dedit RPi4 r363886 dmesg output On a recent -CURRENT (r363886) I get the following LOR for the LED mtx whic= h is followed by a few "non-sleepable locks held" on uma_zalloc_debug. A full dm= esg is attached. gpioled0: on ofwbus0 lock order reversal: (sleepable after non-sleepable) 1st 0xffff000000b28258 LED mtx (LED mtx) @ /tank/nfs_public/tiny/src/sys/dev/led/led.c:298 2nd 0xfffffd0001204410 Raspberry Pi firmware gpio (Raspberry Pi firmware g= pio) @ /tank/nfs_public/tiny/src/sys/arm/broadcom/bcm2835/raspberrypi_gpio.c:252 stack backtrace: #0 0xffff000000492838 at witness_debugger+0x64 #1 0xffff000000431c20 at _sx_xlock+0x7c #2 0xffff000000702c64 at rpi_fw_gpio_pin_set+0xe8 #3 0xffff0000001d3fc4 at led_create_state+0x154 #4 0xffff0000001a5810 at gpioled_attach+0x290 #5 0xffff00000045fda8 at device_attach+0x400 #6 0xffff00000045f910 at device_probe_and_attach+0x7c #7 0xffff000000461af4 at bus_generic_new_pass+0xf8 #8 0xffff000000461aa4 at bus_generic_new_pass+0xa8 #9 0xffff000000461aa4 at bus_generic_new_pass+0xa8 #10 0xffff00000045cee4 at bus_set_pass+0x4c #11 0xffff0000003bac88 at mi_startup+0x12c uma_zalloc_debug: zone "64" with the following non-sleepable locks held: exclusive sleep mutex LED mtx (LED mtx) r =3D 0 (0xffff000000b28258) locked= @ /tank/nfs_public/tiny/src/sys/dev/led/led.c:298 stack backtrace: #0 0xffff000000492838 at witness_debugger+0x64 #1 0xffff000000493848 at witness_warn+0x3f0 #2 0xffff000000699564 at uma_zalloc_debug+0x2c #3 0xffff000000698fcc at uma_zalloc_arg+0x2c #4 0xffff0000003fefcc at malloc+0x9c #5 0xffff0000006f7df4 at bcm2835_firmware_property+0x44 #6 0xffff000000702c7c at rpi_fw_gpio_pin_set+0x100 #7 0xffff0000001d3fc4 at led_create_state+0x154 #8 0xffff0000001a5810 at gpioled_attach+0x290 #9 0xffff00000045fda8 at device_attach+0x400 #10 0xffff00000045f910 at device_probe_and_attach+0x7c #11 0xffff000000461af4 at bus_generic_new_pass+0xf8 #12 0xffff000000461aa4 at bus_generic_new_pass+0xa8 #13 0xffff000000461aa4 at bus_generic_new_pass+0xa8 #14 0xffff00000045cee4 at bus_set_pass+0x4c #15 0xffff0000003bac88 at mi_startup+0x12c uma_zalloc_debug: zone "16" with the following non-sleepable locks held: exclusive sleep mutex LED mtx (LED mtx) r =3D 0 (0xffff000000b28258) locked= @ /tank/nfs_public/tiny/src/sys/dev/led/led.c:298 stack backtrace: #0 0xffff000000492838 at witness_debugger+0x64 #1 0xffff000000493848 at witness_warn+0x3f0 #2 0xffff000000699564 at uma_zalloc_debug+0x2c #3 0xffff000000698fcc at uma_zalloc_arg+0x2c #4 0xffff0000003fefcc at malloc+0x9c #5 0xffff00000070fad8 at bounce_bus_dmamem_alloc+0x4c #6 0xffff0000006fa948 at bcm2835_mbox_property+0xdc #7 0xffff0000006f7e28 at bcm2835_firmware_property+0x78 #8 0xffff000000702c7c at rpi_fw_gpio_pin_set+0x100 #9 0xffff0000001d3fc4 at led_create_state+0x154 #10 0xffff0000001a5810 at gpioled_attach+0x290 #11 0xffff00000045fda8 at device_attach+0x400 #12 0xffff00000045f910 at device_probe_and_attach+0x7c #13 0xffff000000461af4 at bus_generic_new_pass+0xf8 #14 0xffff000000461aa4 at bus_generic_new_pass+0xa8 #15 0xffff000000461aa4 at bus_generic_new_pass+0xa8 #16 0xffff00000045cee4 at bus_set_pass+0x4c #17 0xffff0000003bac88 at mi_startup+0x12c uma_zalloc_debug: zone "128" with the following non-sleepable locks held: exclusive sleep mutex LED mtx (LED mtx) r =3D 0 (0xffff000000b28258) locked= @ /tank/nfs_public/tiny/src/sys/dev/led/led.c:298 stack backtrace: #0 0xffff000000492838 at witness_debugger+0x64 #1 0xffff000000493848 at witness_warn+0x3f0 #2 0xffff000000699564 at uma_zalloc_debug+0x2c #3 0xffff000000698fcc at uma_zalloc_arg+0x2c #4 0xffff0000003fefcc at malloc+0x9c #5 0xffff00000070fb18 at bounce_bus_dmamem_alloc+0x8c #6 0xffff0000006fa948 at bcm2835_mbox_property+0xdc #7 0xffff0000006f7e28 at bcm2835_firmware_property+0x78 #8 0xffff000000702c7c at rpi_fw_gpio_pin_set+0x100 #9 0xffff0000001d3fc4 at led_create_state+0x154 #10 0xffff0000001a5810 at gpioled_attach+0x290 #11 0xffff00000045fda8 at device_attach+0x400 #12 0xffff00000045f910 at device_probe_and_attach+0x7c #13 0xffff000000461af4 at bus_generic_new_pass+0xf8 #14 0xffff000000461aa4 at bus_generic_new_pass+0xa8 #15 0xffff000000461aa4 at bus_generic_new_pass+0xa8 #16 0xffff00000045cee4 at bus_set_pass+0x4c #17 0xffff0000003bac88 at mi_startup+0x12c uma_zalloc_debug: zone "32" with the following non-sleepable locks held: exclusive sleep mutex LED mtx (LED mtx) r =3D 0 (0xffff000000b28258) locked= @ /tank/nfs_public/tiny/src/sys/dev/led/led.c:298 stack backtrace: #0 0xffff000000492838 at witness_debugger+0x64 #1 0xffff000000493848 at witness_warn+0x3f0 #2 0xffff000000699564 at uma_zalloc_debug+0x2c #3 0xffff000000698fcc at uma_zalloc_arg+0x2c #4 0xffff0000003fefcc at malloc+0x9c #5 0xffff00000070fb7c at bounce_bus_dmamem_alloc+0xf0 #6 0xffff0000006fa948 at bcm2835_mbox_property+0xdc #7 0xffff0000006f7e28 at bcm2835_firmware_property+0x78 #8 0xffff000000702c7c at rpi_fw_gpio_pin_set+0x100 #9 0xffff0000001d3fc4 at led_create_state+0x154 #10 0xffff0000001a5810 at gpioled_attach+0x290 #11 0xffff00000045fda8 at device_attach+0x400 #12 0xffff00000045f910 at device_probe_and_attach+0x7c #13 0xffff000000461af4 at bus_generic_new_pass+0xf8 #14 0xffff000000461aa4 at bus_generic_new_pass+0xa8 #15 0xffff000000461aa4 at bus_generic_new_pass+0xa8 #16 0xffff00000045cee4 at bus_set_pass+0x4c #17 0xffff0000003bac88 at mi_startup+0x12c --=20 You are receiving this mail because: You are the assignee for the bug.=