From nobody Tue Mar 07 19:36:58 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 4PWQgZ5wd3z3wXRL for ; Tue, 7 Mar 2023 19:36:58 +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 4PWQgZ3bLBz3h4l for ; Tue, 7 Mar 2023 19:36:58 +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=1678217818; 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: in-reply-to:in-reply-to:references:references; bh=vvPRTo1NPad6Xioz9BH8Vz6/ArXb1Yj5yqeF25wxgpg=; b=Nd26u8Ke9HBA7afX082wfcgejoS/tScpm90B8c4UMlhTiudiepJMbWnoCKZGyF1I+Zbsd8 cIzdezuT1+qnkz66cwtCgFzZN1V4xSMJAZMDdcsZajTRRw3xoR2mNd3YaixL8X/NlDDQo5 AWbeBNd01V3Fk4O+lYIYyWrs40oQ0PGH03sZm74p64/NnJZL2n5ZrkHbI7/KS/3VHKen+S njp5YQJ21EU/pqn3btQ/bxSSUSJjlFyADRz8frF/7c7c7SmmecWmGHBAtdJ25rwdJnIvFK LWIPLevc1GBCXUh+lM07d4pB7AYbUZutlL73p+bDcsL4tJGW13U/ntZzb8TSyA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1678217818; a=rsa-sha256; cv=none; b=PsV0CjZutoj1hRyQCr+QaoN1da6N6W2u8HZs/MgeXVKCTo3HTZZZT340BNqXSPu645jj/P CKC/9VUq5U8ckc9X3xDT4yfYSUVXiC4EgsEJ8Vz94QEXahnWMU5bGmeYpCSLv4WPmcN6Ir vqOwY41hPJriVWE3ArcKTDr1VKnUMz8clYC10HVx17yzU1H0s1B7TMYPhSmkNE7kFwsLxR BiIytMwEDf7urKT3t3msQzvUqn4mXSiYPQkRYJVKIl9U6gYHJOrC5gMPP05MXtf941cBfz 9WVe2BZVuH1wE7nRAIlLleaPmVy8mmggYXeBPecPJomEqGX1df9MgDnmAK8v7w== 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 4PWQgZ2Yl9zwrJ for ; Tue, 7 Mar 2023 19:36:58 +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 327JawDv058051 for ; Tue, 7 Mar 2023 19:36:58 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 327JawG3058050 for bugs@FreeBSD.org; Tue, 7 Mar 2023 19:36:58 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 268393] system always reboots once from a powered off state Date: Tue, 07 Mar 2023 19:36:58 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.1-STABLE X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: john.grafton@runbox.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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=3D268393 --- Comment #16 from John Grafton --- (In reply to Jonathan Vasquez from comment #14) Hi Jonathan, All of the crash dump reports you posted appear to have panicked in the hdac_rirb_flush function. Specifically dereferencing the `rirb` pointer on line 968 from `sys/dev/sound/pci/hda/hdac.c`=20 I'm thinking there *may* be a bug in calculating the `rirb` read pointer in= the code just above the dereference. Would patch your kernel hda driver (should work with stable 13) with the attached patch and output the results? It just adds a few debug prints to = the hda driver. You'll also need to update a sysctl variable to ensure the debugs actually print. So the procedure is: 1) sysctl debug.bootverbose=3D1 2) patch hda driver and recompile 3) unload snd_hda and reload Here's an example of what it looks like on a bhyve VM: root@fbsd-current:~ # sysctl debug.bootverbose=3D1 root@fbsd-current:~ # kldload snd_hda pci0: driver added =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=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=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 hdac0: mem 0xc0004000-0xc0007fff irq 18 at de= vice 6.0 on pci0=20=20 hdac0: PCI card vendor: 0x0000, device: 0x0000 =C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 hdac0: HDA Driver Revision: 20120126_0002 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 hdac0: Config options: on=3D0x00000000 off=3D0x00000000 =C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ioapic0: routing intpin 18 (PCI IRQ 18) to lapic 2 vector 51 =C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 hdac0: Caps: OSS 4, ISS 4, BSS 0, NSDO 1, 64bit, CORB 256, RIRB 256=20=20 hdac0: rirb_base 0xfffffe01205ff000 =C2=A0=20=20 hdac0: rirb_size 256 =C2=A0=20=20 hdac0: sc->rirb_rp 1 =C2=A0=20=20 hdac0: rirb address 0xfffffe01205ff008 hdac0: =C2=A0response 00008086=20=20 hdac0: rirb_base 0xfffffe01205ff000 =C2=A0=20=20 hdac0: rirb_size 256 =C2=A0=20=20 hdac0: sc->rirb_rp 2 =C2=A0=20=20 hdac0: rirb address 0xfffffe01205ff010 hdac0: =C2=A0response 0000ffff=20=20 hdacc0: at cad 0 on hdac0=20=20 hdac0: rirb_base 0xfffffe01205ff000 =C2=A0=20=20 hdac0: rirb_size 256 =C2=A0=20=20 hdac0: sc->rirb_rp 3 =C2=A0=20=20 hdac0: rirb address 0xfffffe01205ff018 hdac0: =C2=A0response 00010001=20=20 hdac0: rirb_base 0xfffffe01205ff000 =C2=A0=20=20 hdac0: rirb_size 256 =C2=A0=20=20 hdac0: sc->rirb_rp 4 ... --=20 You are receiving this mail because: You are the assignee for the bug.=