From nobody Mon Aug 9 12:01:44 2021 X-Original-To: bugs@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 2687D1756675 for ; Mon, 9 Aug 2021 12:01:44 +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 4Gjvng70JKz3wMC for ; Mon, 9 Aug 2021 12:01:43 +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 D88EE27B24 for ; Mon, 9 Aug 2021 12:01:43 +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 179C1hX6034848 for ; Mon, 9 Aug 2021 12:01:43 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 179C1h4v034847 for bugs@FreeBSD.org; Mon, 9 Aug 2021 12:01:43 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 257707] panic: malloc: called with spinlock or critical section held when loading amdgpu Date: Mon, 09 Aug 2021 12:01:44 +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: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: nc@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.mimetype 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 List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257707 Bug ID: 257707 Summary: panic: malloc: called with spinlock or critical section held when loading amdgpu Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: nc@FreeBSD.org Attachment #227044 text/plain mime type: Created attachment 227044 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D227044&action= =3Dedit Stack trace On an AMD Ryzen 4700U-based HP Envy x360, when I load amdgpu, I get an `pan= ic: malloc: called with spinlock or critical section held` kernel panic. This happens on 5.5 from Ports and 5.6-wip from GitHub. drm-kmod 5.4 doesn't support the iGPU. Backtrace: Unread portion of the kernel message buffer: taskqueue_drain with the following non-sleepable locks held: exclusive sleep mutex vtdev (vtdev) r =3D 0 (0xffffffff81aea0a8) locked @ /usr/src/sys/dev/vt/vt_core.c:3012 stack backtrace: #0 0xffffffff80c902e1 at witnespanic: malloc: called with spinlock or criti= cal section held cpuid =3D 6 time =3D 1628439111 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00c1ff4= 470 vpanic() at vpanic+0x187/frame 0xfffffe00c1ff44d0 panic() at panic+0x43/frame 0xfffffe00c1ff4530 malloc_dbg() at malloc_dbg+0xe2/frame 0xfffffe00c1ff4550 malloc() at malloc+0x30/frame 0xfffffe00c1ff45a0 dcn21_validate_bandwidth() at dcn21_validate_bandwidth+0x7e/frame 0xfffffe00c1ff4630 dc_validate_global_state() at dc_validate_global_state+0x2cc/frame 0xfffffe00c1ff4690 amdgpu_dm_atomic_check() at amdgpu_dm_atomic_check+0xee1/frame 0xfffffe00c1ff4940 drm_atomic_check_only() at drm_atomic_check_only+0x424/frame 0xfffffe00c1ff= 49c0 drm_atomic_commit() at drm_atomic_commit+0x13/frame 0xfffffe00c1ff49e0 drm_client_modeset_commit_atomic() at drm_client_modeset_commit_atomic+0x148/frame 0xfffffe00c1ff4a50 drm_client_modeset_commit_force() at drm_client_modeset_commit_force+0x66/f= rame 0xfffffe00c1ff4a90 drm_fb_helper_restore_fbdev_mode_unlocked() at drm_fb_helper_restore_fbdev_mode_unlocked+0x7a/frame 0xfffffe00c1ff4ac0 taskqueue_run_locked() at taskqueue_run_locked+0xaa/frame 0xfffffe00c1ff4b40 taskqueue_thread_loop() at taskqueue_thread_loop+0xc2/frame 0xfffffe00c1ff4= b70 fork_exit() at fork_exit+0x80/frame 0xfffffe00c1ff4bb0 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe00c1ff4bb0 Log is attached. --=20 You are receiving this mail because: You are the assignee for the bug.=