Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 Mar 2023 19:36:58 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 268393] system always reboots once from a powered off state
Message-ID:  <bug-268393-227-lyVMBzIPV7@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-268393-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-268393-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268393

--- Comment #16 from John Grafton <john.grafton@runbox.com> ---
(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=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=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endor: 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: <Generic (0x8086) HDA CODEC> 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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-268393-227-lyVMBzIPV7>