opnsense-src/sys/dev/sound/pci
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
..
hda hdac: Defer interrupt allocation in hdac_attach() 2023-10-04 09:41:52 -04:00
allegro_code.h sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
allegro_reg.h sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
als4000.c sys: Remove SND_DECLARE_FILE 2023-08-18 13:05:12 -07:00
als4000.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
atiixp.c sys: Remove SND_DECLARE_FILE 2023-08-18 13:05:12 -07:00
atiixp.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
cmi.c sys: Remove SND_DECLARE_FILE 2023-08-18 13:05:12 -07:00
cmireg.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
cs461x_dsp.h sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
cs4281.c sys: Remove SND_DECLARE_FILE 2023-08-18 13:05:12 -07:00
cs4281.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
csa.c sys: Remove SND_DECLARE_FILE 2023-08-18 13:05:12 -07:00
csamidi.c sys: Remove SND_DECLARE_FILE 2023-08-18 13:05:12 -07:00
csapcm.c sys: Remove SND_DECLARE_FILE 2023-08-18 13:05:12 -07:00
csareg.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
csavar.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
emu10k1.c sys: Remove SND_DECLARE_FILE 2023-08-18 13:05:12 -07:00
emu10kx-midi.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
emu10kx-pcm.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
emu10kx.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
emu10kx.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
emuxkireg.h sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
envy24.c sys: Remove SND_DECLARE_FILE 2023-08-18 13:05:12 -07:00
envy24.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
envy24ht.c sys: Remove SND_DECLARE_FILE 2023-08-18 13:05:12 -07:00
envy24ht.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
es137x.c sys: Remove SND_DECLARE_FILE 2023-08-18 13:05:12 -07:00
es137x.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
fm801.c sys: Remove SND_DECLARE_FILE 2023-08-18 13:05:12 -07:00
hdspe-pcm.c sys: Remove SND_DECLARE_FILE 2023-08-18 13:05:12 -07:00
hdspe.c sys: Remove SND_DECLARE_FILE 2023-08-18 13:05:12 -07:00
hdspe.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
ich.c sys: Remove SND_DECLARE_FILE 2023-08-18 13:05:12 -07:00
ich.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
maestro3.c sys: Remove SND_DECLARE_FILE 2023-08-18 13:05:12 -07:00
neomagic-coeff.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
neomagic.c sys: Remove SND_DECLARE_FILE 2023-08-18 13:05:12 -07:00
neomagic.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
solo.c sys: Remove SND_DECLARE_FILE 2023-08-18 13:05:12 -07:00
spicds.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
spicds.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
t4dwave.c sys: Remove SND_DECLARE_FILE 2023-08-18 13:05:12 -07:00
t4dwave.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
via82c686.c sys: Remove SND_DECLARE_FILE 2023-08-18 13:05:12 -07:00
via82c686.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
via8233.c sys: Remove SND_DECLARE_FILE 2023-08-18 13:05:12 -07:00
via8233.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
vibes.c sys: Remove SND_DECLARE_FILE 2023-08-18 13:05:12 -07:00
vibes.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00