opnsense-src/sys/dev/sound
Mark Johnston 1e8737f4e8 hdac: Defer interrupt allocation in hdac_attach()
hdac_attach() registers an interrupt handler before allocating various
driver resources which are accessed by the interrupt handler.  On some
platforms we observe what appear to be spurious interrupts upon a cold
boot, resulting in panics.

Partially work around the problem by deferring irq allocation until
after other resources are allocated.  I think this is not a complete
solution, but is correct and sufficient to work around the problems
reported in the PR.

PR:		268393
Tested by:	Alexander Sherikov <asherikov@yandex.com>
Tested by:	Oleh Hushchenkov <o.hushchenkov@gmail.com>
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D41883

(cherry picked from commit 015daf5221f7588b9258fe0242cee09bde39fe21)
2023-10-04 09:41:52 -04:00
..
fdt sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
isa sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
macio sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
midi sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
pci hdac: Defer interrupt allocation in hdac_attach() 2023-10-04 09:41:52 -04:00
pcm sys: Remove SND_DECLARE_FILE 2023-08-18 13:05:12 -07:00
usb sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
chip.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
clone.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
clone.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
driver.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
unit.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
unit.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
version.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00