freebsd-nq/sys/dev/sound/pci
Brian Feldman bf5ab950e3 The new contigmalloc code is exposing a lot of misuses of busdma memory
allocation. Notably, in this case, the driver tries to allocate several
pieces of memory and then fails if the pieces allocated after the first
do not come after it physically, and within a specific range (8MB I
believe).  Of course, this could just as easily fail for any number of
reasons, but it almost always fails now that contiguous allocations start
at the end of possible specified memory locations rather than the beginning.

Allocate all the possibly-needed memory up front, even though it's a waste,
to get around this.  The least bogus solution would be to take the physical
address from the first allocation and create a new tag that specified that
further allocations must follow it within that 8MB window, then use that
when allocating new channels, but that's left for anyone else that really
feels like doing it.

Tested by:	Erwin Lansing <erwin@lansing.dk>
2004-08-22 18:57:40 +00:00
..
als4000.c Rename the sound device drivers: 2004-07-16 04:00:08 +00:00
als4000.h
au88x0.c Rename the sound device drivers: 2004-07-16 04:00:08 +00:00
au88x0.h A couple of months' worth of back-burner hacking: restructure to better 2003-10-12 11:33:39 +00:00
aureal.c Rename the sound device drivers: 2004-07-16 04:00:08 +00:00
aureal.h update my email address. 2003-09-07 16:28:03 +00:00
cmi.c Rename the sound device drivers: 2004-07-16 04:00:08 +00:00
cmireg.h
cs4281.c Rename the sound device drivers: 2004-07-16 04:00:08 +00:00
cs4281.h
csa.c Rename the sound device drivers: 2004-07-16 04:00:08 +00:00
csapcm.c Rename the sound device drivers: 2004-07-16 04:00:08 +00:00
csareg.h
csavar.h
ds1-fw.h
ds1.c Rename the sound device drivers: 2004-07-16 04:00:08 +00:00
ds1.h
emu10k1.c Remove rev 1.50. 2004-07-24 15:30:23 +00:00
es137x.c Rename the sound device drivers: 2004-07-16 04:00:08 +00:00
es137x.h
fm801.c Rename the sound device drivers: 2004-07-16 04:00:08 +00:00
ich.c Rename the sound device drivers: 2004-07-16 04:00:08 +00:00
ich.h Switch from legacy to native mode for ICH4 and ICH5. 2003-08-10 14:57:47 +00:00
maestro3.c Rename the sound device drivers: 2004-07-16 04:00:08 +00:00
maestro_reg.h
maestro.c The new contigmalloc code is exposing a lot of misuses of busdma memory 2004-08-22 18:57:40 +00:00
neomagic-coeff.h As previously announced: discontinue use of makedev() call in soundcode. 2004-01-17 10:37:11 +00:00
neomagic.c Rename the sound device drivers: 2004-07-16 04:00:08 +00:00
neomagic.h update my email address. 2003-09-07 16:28:03 +00:00
solo.c Rename the sound device drivers: 2004-07-16 04:00:08 +00:00
t4dwave.c Rename the sound device drivers: 2004-07-16 04:00:08 +00:00
t4dwave.h update my email address. 2003-09-07 16:28:03 +00:00
via82c686.c Rename the sound device drivers: 2004-07-16 04:00:08 +00:00
via82c686.h
via8233.c Rename the sound device drivers: 2004-07-16 04:00:08 +00:00
via8233.h Perform warm or cold reset AC97 per the spec depending on state of the 2003-04-17 15:04:11 +00:00
vibes.c Rename the sound device drivers: 2004-07-16 04:00:08 +00:00
vibes.h