DragonFly kernel List (threaded) for 2004-01
Re: Audigy problems.
:Up to two weeks ago, that version of the snd_emu10k1.ko driver would
:load under DF and run without any (noticable) problems. I updated my
:copy of the source tree yesterday, and rebuilt world and the kernel.
:Unfortunately, it seems that audigy driver no longer works, but I have
:no idea how to track down the source of the problem. This is the kernel
Ok, this is a real simple fix. Your driver is calling malloc() without
either the M_WAITOK or M_NOWAIT flags. It must call malloc() with one
or the other. If it is not using either flag then add M_WAITOK to it.
:# kldload snd_emu10k1
:pcm0: <Creative EMU10K2> port 0xd400-0xd41f irq 17 at device 12.0 on pci0
:kmem_slab_alloc: bad flags 00000100 (0xc018e547)
:panic: assertion: page_req & (VM_ALLOC_NORMAL|VM_ALLOC_INTERRUPT|VM_ALLOC_SYSTEM) in vm_page_alloc
:mp_lock = 00000000; cpuid = 0; lapic.id = 00000000
:CPU0 stopping CPUs: 0x00000002
:Stopped at Debugger+0x34: movb $0,in_Debugger.348
:Debugger(dd953a1c,c018fdb8,c02e751c,8,8) at Debugger+0x34
:dumpmag(73252228,a2922,37726400,36726400,35726400) at dumpmag+0x1e8
:cpu_reset called on cpu#0
:Can anyone point me in the right direction to get this running?
:On a slightly related topic: Are there plans to occaisionally update
:drivers from the FreeBSD -CURRENT source tree? I know that, very
:recently, -CURRENT got support for Audigy and Audigy2 cards, and I know
:that Eric Anholt regularly updates the drm drivers to keep them in sync
:with the DRI tree.
Yes, there are people that have been informally working on backporting
some of the drivers from 5.x. In fact, I was under the impression that
the a patch is in the works for the Audigy:
:From: Emiel Kollof <coolvibe@xxxxxxxxxxxxxxxx>
:This patch, mostly obtained from FreeBSD CURRENT, allows many ac97
:mixers and cards to work properly again. It works for me at least. :)
:Please test and review, (and hopefully) commit.
Which I believe Jeroen committed:
:From: Jeroen Ruigrok/asmodai <asmodai@xxxxxx>
:>This patch, mostly obtained from FreeBSD CURRENT, allows many ac97
:>mixers and cards to work properly again. It works for me at least. :)
:Applied, please don't strip $DragonFly$ next time.