From nobody Tue Aug 15 19:10:04 2023 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 4RQLSF3P0xz4qJFP for ; Tue, 15 Aug 2023 19:10:05 +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 4RQLSF1NBBz3NFG for ; Tue, 15 Aug 2023 19:10:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692126605; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=AaTQT8L+YvbvBo2LhR8dWKt/xmhekUL6tFjzSinTogU=; b=L36k04ianVuyhl6PNkOUKgYygp3r8f6xqFwn85rg1thOxXre+jvv2E5cwDZV0VwW+91QzS icK2XbphnR744hGYOb/9HFvqNKhdsjNtBap9J3ApbLt3dSLOWgJyOni6cNfzmwzbvbTXBR E/kMn06Snjv/gfHkeUzKkE8+IpZ+TBrw6Rn7S0wW7xTENGLR1d6EDk3mgWgn8ByYX9hFkg EkTApbsMxTjMT49vGXEF755O1lP/HHIXl1hVu16a9ogBoEnqZbPTbhAS1ErbyXS5ivhiyp L/BNDA7cfSMajDMd6gl/861h9u/EH7TFEz33w3aH8MT4r2sx9/o4S2qVPYkAVg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1692126605; a=rsa-sha256; cv=none; b=Ksso8Z/8oWUB0oW5Zm8HQIjOkfxjNbBZXZgVEwNsZrleEi9wxQEhAyIdK565VrZH1QknZ5 i3va2v4bmcJg9WF48cY35Ua3CkeBknrOjwQYnEXqJ7GhF5U9ph2JJbjfnZNUIfJYzrtg4K AH9DQJQ0CKd/pCPcXzyg0FT48os9cXgC+ZciNBcGvIIvWQGbowQCBJyAFrsfJEJLQjXbGY JfJg5k8DvYjQ0WV8YkooCUAne9FalZ2xN/jg6wIPO+eIhB9OrQZYrNJGo3W2HGzNlRCXRr Cpgdq6NLtwXrbtMAH1uoxShkkdZhUdpzliu5rbFyDgTuDRC0Wr+TxmgqI7Youw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4RQLSF0L0gz6h0 for ; Tue, 15 Aug 2023 19:10:05 +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 37FJA4oi013178 for ; Tue, 15 Aug 2023 19:10:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 37FJA4Zw013177 for bugs@FreeBSD.org; Tue, 15 Aug 2023 19:10:04 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 273151] Kernel panic caused by audio driver on cold boot - AMD Ryzen 9 7900 Date: Tue, 15 Aug 2023 19:10:04 +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: 13.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: matei35@yahoo.com 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 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273151 Bug ID: 273151 Summary: Kernel panic caused by audio driver on cold boot - AMD Ryzen 9 7900 Product: Base System Version: 13.2-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: matei35@yahoo.com Created attachment 244128 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D244128&action= =3Dedit Shows the DELAY lines inserted in trap.c Attached are the following files: dmesg.boot_with_audio_driver dmesg.boot_without_audio_driver kernel_panic.MOV kernel_panic_screen_messages.jpg kernel_panic_with_DELAY.MOV kernel_without_audio_driver.MOV trap.c_diff Desktop components: cpu: AMD Ryzen 9 7900 motherboard: Gigabyte B650 Aorus Elite AX memory: Corsair 32 GB (2x16GB) storage: SSD Gigabyte 1 TB ZFS is being used with 2GB swap. Fot this panic, the kernel crash dump is not created in /var/crash. I can simulate a kernel crash with sysctl debug.kdb.panic and the dump is created in /var/crash. Replacing the Corsair memory with G.Skill and installing FreeBSD on a HDD instead of SDD does not make a difference. When cold booting, the kernel panics as shown in kernel_panic.MOV. After the panic, the system reboots and it's ok. The call stack in /usr/src/sys/amd64/amd64/trap.c: trap_fatal() called from line 795 trap_pfault() called from line 385 trap() called from line 665 trap_check() called from /usr/src/sys/amd64/amd64/exception.S, line 290 I changed the file /usr/src/sys/amd64/amd64/trap.c as shown in trap.c_diff in order to get a better view of the screen messages as you can see in kernel_panic_with_DELAY.MOV. The screen messages can also be seen in the file kernel_panic_screen_messages.jp g and are also shown below: ... acpi_tz0: on acpi0 cpu0: on acpi0 hwpstate0: on cpu0 Timecounter "TSC-low" frequency 1846531959 Hz quality 1000 Fatal trap 12: page fault while in kernel mode cpuid =3D 2; apic id =3D 02 fault virtual address =3D 0x0 fault code =3D supervisor read data, page not present instruction pointer =3D 0x20:0xffffffff80972392 stack pointer =3D 0x20:0xfffffe01072d5de0 frame pointer =3D 0x20:0xfffffe01072d5e00 code segment =3D base 0x0, limit 0xfffff, type 0x1b DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 12 (irq78: hdac1) <------------- AAAAA trap number =3D 12 TRAPFRAME: tf_rdi =3D -8796050178040 tf_rsi =3D 0 tf_rdx =3D 1 tf_rcx =3D -8796054324096 tf_r8 =3D -2194564528880 tf_r9 =3D -2194607874048 tf_rax =3D 1 tf_rbx =3D -8796050178048 tf_rbp =3D -2194607874560 tf_r10 =3D 2000 tf_r11 =3D 2146883647 tf_r12 =3D 233 tf_r13 =3D -8796050178048 tf_r14 =3D 0 tf_r15 =3D 0 tf_trapno =3D 12 tf_fs =3D 19 tf_gs =3D 40 tf_addr =3D 8 tf_flags =3D 1 tf_es =3D 59 tf_ds =3D 59 tf_err =3D 0 tf_rip =3D -2137578606 tf_cs =3D 32 tf_rflags =3D 66066 tf_rsp =3D -2194607874592 tf_ss =3D 40 Workaround: based on the line marked with "AAAAA" above and dmesg.boot_with_audio_drive= r, I disalbed the audio driver by adding the following lines to /boot/device.hin= ts: hint.pcm.4.disabled=3D"1" hint.pcm.5.disabled=3D"1" hint.hdaa.1.disabled=3D"1" hint.hdacc.1.disabled=3D"1" hint.hdac.1.disabled=3D"1" and the kernel no longer panics as shown in kernel_without_audio_driver.MOV. --=20 You are receiving this mail because: You are the assignee for the bug.=