Re: midi problem, an isa device on a pci card
Hello, I've recived no responses. Anyway, the following includes my own solution to the question, lots of trial and error. I've found that isahints was the closest exsting code to what I wanted. As always, I would love to hear any comments. How do I create isa devices from a pci device. Do I search up the soundcard tree for the pci bus then search down for the isa bus, then create_child(...mpushim)? In pci device_attach: isa=devclass_find(isa); if( !isa ) { device_printf(sc-dev,cmi midi error no devclass for isa\n); goto err; } if (devclass_get_devices(isa, isalistp, isacountp) != 0 ) { device_printf(sc-dev,cmi midi error fetching isa devices\n); goto err; } if ( isacountp 1 ) { device_printf(sc-dev,cmi midi no isa busses found\n); goto err; } /* * Be stupid and just pick the first isa bus */ sc-isadev = isalistp[0]; mpuisa=devclass_find(mpuisa); if( !mpuisa ) { device_printf(sc-dev,cmi: midi driver not found\n); goto err; } i = devclass_find_free_unit(mpuisa,0); sc-mpudev = BUS_ADD_CHILD(sc-isadev, 1, mpuisa, i); [Needs to be done with BUS_ADD_CHILD, I tried with others, m' yo they just don't work] How do I tell the shim before the probe/attach what io region to look at, do I fiddle with ivars (or some internal structure), do I mess with hints via kenv(9) [Is there a kenv(9)? ] [ Say, p-port=0x300, then following would set it to 0x300-0x302 and the same IRQ as the pci device ] bus_set_resource(sc-mpudev, SYS_RES_IOPORT, 0, p-port, 2); bus_set_resource(sc-mpudev, SYS_RES_IRQ, 0, rman_get_start(sc-irq), 1); if( device_probe_and_attach(sc-mpudev) == 0 ) { device_printf(sc-dev,added %s/%s\n, device_get_nameunit(sc-isadev), device_get_nameunit(sc-mpudev) ); return ; } Cheers, --Mat -- Brain: Are you pondering what I'm pondering? Pinky: I think so Brain, but the Rockettes, it's mostly girls, isn't it? ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: MIDI
David Schultz wrote: Thus spake Thanjee Neefam [EMAIL PROTECTED]: I was very happy when compiling my 5.0 kernel. For the first time device midi compiled without giving any errors. This abnormal excitement only led to misery when I discovered after rebooting that there still was no MIDI. Is MIDI going to be implemented soon? Who is working on it? Can I help them? (I am not a very good programmer, but I can hack pre existing code, and I am good at testing). MIDI is the ONLY thing stopping me from running FreeBSD exclusively. FYI, the non-free OSS driver supports MIDI: http://www.opensound.com/bsd.html Apparently even this is not complete, however: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=1250661+0+archive/2003/freebsd-current/20030323.freebsd-current One interesting thing to note from that thread, is that Yuriy Tsibizov is into the development of this stuff, but does not have all the equipment needed to conduct testing. I don't know what hardware you have, but this is what he's been working on: http://chibis.persons.gfk.ru/audigy/ Pete... ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: MIDI
From: Peter Schultz [mailto:[EMAIL PROTECTED] One interesting thing to note from that thread, is that Yuriy Tsibizov is into the development of this stuff, but does not have all the equipment needed to conduct testing. I don't know what hardware you have, but this is what he's been working on: http://chibis.persons.gfk.ru/audigy/ No! I'm not a MIDI subsystem developer! The only thing I do is an attempt to add MIDI I/O to Live/Audigy cards. If MIDI subsystem is not compllete I'll stop this work. I'm going to do only card-specific drivers, not to fix possible broken in-kernel MIDI. Yuriy ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: MIDI
I'm interrested in using MIDI on FreeBSD, too, but I have to tell you, that - as far as I found out - there has been midi support some time ago, but it's not included in the system/kernel anymore. There's probably some hope although, I don't find it, but I remember someone stated that you can easily apply the netbsd midi code as a patch to the current kernel. 5.0RC2 works according to this source, but had system reboots, when kldloading the midi module. If you're interrested, maybee you have more luck searching, there aren't many articles about freebsd and midi on the net (especially newer ones). I'll keep on searching Friedemann Hello, I am not sure if this is most appropriate here, but there is no sound-dev-current mailing list. I was very happy when compiling my 5.0 kernel. For the first time device midi compiled without giving any errors. This abnormal excitement only led to misery when I discovered after rebooting that there still was no MIDI. Is MIDI going to be implemented soon? Who is working on it? Can I help them? (I am not a very good programmer, but I can hack pre existing code, and I am good at testing). MIDI is the ONLY thing stopping me from running FreeBSD exclusively. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: MIDI
Thus spake Thanjee Neefam [EMAIL PROTECTED]: I was very happy when compiling my 5.0 kernel. For the first time device midi compiled without giving any errors. This abnormal excitement only led to misery when I discovered after rebooting that there still was no MIDI. Is MIDI going to be implemented soon? Who is working on it? Can I help them? (I am not a very good programmer, but I can hack pre existing code, and I am good at testing). MIDI is the ONLY thing stopping me from running FreeBSD exclusively. FYI, the non-free OSS driver supports MIDI: http://www.opensound.com/bsd.html ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: MIDI on SB Live! ?
just out of curiosity: Is someone working in MIDI support for Creative EMU10K1 based sound cards (aka Soundblaster Live!) ? Nobody. Our target for nearest future is Audigy/Audigy2 support. Yuriy Tsibizov, http://chibis.persons.gfk.ru/audigy/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
RE: MIDI on SB Live! ?
Am Mo, 2003-03-24 um 07.47 schrieb Yuriy Tsibizov: just out of curiosity: Is someone working in MIDI support for Creative EMU10K1 based sound cards (aka Soundblaster Live!) ? Nobody. Our target for nearest future is Audigy/Audigy2 support. Yuriy Tsibizov, http://chibis.persons.gfk.ru/audigy/ Your page says: 0. It works for SB Live! and Audigy. Not for Audigy2. and MIDI is on the TODO-list So, guess there is still some hope for SB Live! MIDI in the not-so-near future. :) Or are the differences between an EMU10K2 (as seen in the dmesg, I guess Audigy?) and EMU10K1 that big? Regards, Julian Stecklina signature.asc Description: Dies ist ein digital signierter Nachrichtenteil
RE: MIDI on SB Live! ?
From: Julian St. [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 3:26 PM just out of curiosity: Is someone working in MIDI support for Creative EMU10K1 based sound cards (aka Soundblaster Live!) ? Nobody. Our target for nearest future is Audigy/Audigy2 support. Your page says: 0. It works for SB Live! and Audigy. Not for Audigy2. and MIDI is on the TODO-list Yes, MIDI I/O is in my TODO list, but I'm not working on it now. So, guess there is still some hope for SB Live! MIDI in the not-so-near future. :) I can't promise that I start to code MIDI I/O in nearest future Mostly because I don't need it. I don't have any MIDI device at home or at work. Or are the differences between an EMU10K2 (as seen in the dmesg, I guess Audigy?) and EMU10K1 that big? EMU10K2=Audigy MIDI I/O should be almost the same between EMU10Kx cards... But I don't have any MIDI devices (other than AudigyDrive remote control, it should act as a MIDI controller on second MIDI port, AFAIK) to check it. Yuriy To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
RE: MIDI on SB Live! ?
Am Mo, 2003-03-24 um 14.02 schrieb Yuriy Tsibizov: MIDI I/O should be almost the same between EMU10Kx cards... But I don't have any MIDI devices (other than AudigyDrive remote control, it should act as a MIDI controller on second MIDI port, AFAIK) to check it. I have several devices to test it on. :) Perhaps until then I have learned enough (sound) driver hacking that I could adapt (with the help of some hardware documentation) your EMU10K2 MIDI code to EMU10K1 boards. It is a bit hard to get started though. Regards, Julian Stecklina signature.asc Description: Dies ist ein digital signierter Nachrichtenteil
Need ALSA [was: Re: MIDI on SB Live! ?]
[EMAIL PROTECTED] wrote: Hello, just out of curiosity: Is someone working in MIDI support for Creative EMU10K1 based sound cards (aka Soundblaster Live!) ? Regards, Julian Stecklina Having a port of ALSA would sure round out 5.2 nicely, and would get you MIDI support: http://www.alsa-project.org/ This can easily happen if we get behind a developer. ALSA has been sponsored by SuSE for the benefit of Linux, and there's no reason we can't pull together our resources to do the same for our OS. I'm sure someone will step forward to do the port if we have the cash for them to comfortably sit in front of their computer until the port is complete. I'd certainly be more than willing to throw some money into a paypal account or whatever, and I think there are others who would too. OSS is so 20th century, lets get FreeBSD into 21st century sound architecture design. :-) If you're a developer seriously interested in this, lets talk. So much of FreeBSD development is sponsored by Universities and whatnot that we take it for granted. When stuff like ALSA doesn't get ported right away, I feel we need to realize our responsibility to contribute to the project as well. Sincerely, Pete... To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
RE: Need ALSA [was: Re: MIDI on SB Live! ?]
Hello, Having a port of ALSA would sure round out 5.2 nicely, and would get you MIDI support: http://www.alsa-project.org/ Quote from this page: Known bugs - MIDI on SB live drive not working properly. Seems MIDI is not a great priority anymore. But I would certainly greet a new sound architecture. Broken MIDI is at least better than no MIDI. ;) [porting] I'd certainly be more than willing to throw some money into a paypal account or whatever, and I think there are others who would too. OSS is so 20th century, lets get FreeBSD into 21st century sound architecture design. :-) I would have no objections. If you're a developer seriously interested in this, lets talk. So much of FreeBSD development is sponsored by Universities and whatnot that we take it for granted. When stuff like ALSA doesn't get ported right away, I feel we need to realize our responsibility to contribute to the project as well. Uh... Ok, I have C experience, but my insight into FreeBSD and sound card programming (I remember some experiments with soundblasters in DOS times) is quite limited. Regards, Julian Stecklina To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: Need ALSA [was: Re: MIDI on SB Live! ?]
On Saturday 22 March 2003 14:52, Peter Schultz wrote: [EMAIL PROTECTED] wrote: Hello, just out of curiosity: Is someone working in MIDI support for Creative EMU10K1 based sound cards (aka Soundblaster Live!) ? Regards, Julian Stecklina Having a port of ALSA would sure round out 5.2 nicely, and would get you MIDI support: http://www.alsa-project.org/ I think you wouldn't really do anyone a favour, including the ALSA folks, if you went and made a port right now. The ALSA project is still not at 1.00 status and still quite in-flux. This can easily happen if we get behind a developer. ALSA has been sponsored by SuSE for the benefit of Linux, and there's no reason we can't pull together our resources to do the same for our OS. I'm sure someone will step forward to do the port if we have the cash for them to comfortably sit in front of their computer until the port is complete. I'd appreciate sponsoring somebody to work on our existing newpcm stuff and add the missing bits and pieces much more. Donating hardware (soundcards and MIDI-devices) would probably help very much already. -- Regards, Michael Nottebrock pgp0.pgp Description: signature
Re: MIDI on SB Live! ?
On Friday 21 March 2003 21:01, [EMAIL PROTECTED] wrote: Hello, just out of curiosity: Is someone working in MIDI support for Creative EMU10K1 based sound cards (aka Soundblaster Live!) ? On and off, as far as I can tell. If you want MIDI right now, take a look at what 4Front Technologies offers in their commercial OSS package. -- Regards, Michael Nottebrock pgp0.pgp Description: signature
Re: Need ALSA [was: Re: MIDI on SB Live! ?]
Michael Nottebrock wrote: On Saturday 22 March 2003 14:52, Peter Schultz wrote: [EMAIL PROTECTED] wrote: Hello, just out of curiosity: Is someone working in MIDI support for Creative EMU10K1 based sound cards (aka Soundblaster Live!) ? Regards, Julian Stecklina Having a port of ALSA would sure round out 5.2 nicely, and would get you MIDI support: http://www.alsa-project.org/ I think you wouldn't really do anyone a favour, including the ALSA folks, if you went and made a port right now. The ALSA project is still not at 1.00 status and still quite in-flux. One could go either way with this. Leave it for after 1.0, or grab it now and help build it up for a better 2.0. Or I guess we could initiate the ABSDSA and have support for both ALSA and OSS. Wouldn't this be even more work though? This can easily happen if we get behind a developer. ALSA has been sponsored by SuSE for the benefit of Linux, and there's no reason we can't pull together our resources to do the same for our OS. I'm sure someone will step forward to do the port if we have the cash for them to comfortably sit in front of their computer until the port is complete. I'd appreciate sponsoring somebody to work on our existing newpcm stuff and add the missing bits and pieces much more. Donating hardware (soundcards and MIDI-devices) would probably help very much already. OSS is on the outs. New applications that are ALSA only will soon be common, won't they? Newpcm is what, five years old? Whatever it is, it ain't new anymore. Of course, maybe I'm completely mistaken about the whole situation and all newpcm needs is a boost. What is the right answer? Does OS X have a completely proprietary sound arch? It would be nice to be able to work with what they've got too. Pete... To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: Need ALSA [was: Re: MIDI on SB Live! ?]
Having a port of ALSA would sure round out 5.2 nicely, and would get you MIDI support: http://www.alsa-project.org/ I think you wouldn't really do anyone a favour, including the ALSA folks, if you went and made a port right now. The ALSA project is still not at 1.00 status and still quite in-flux. One could go either way with this. Leave it for after 1.0, or grab it now and help build it up for a better 2.0. Or I guess we could initiate the ABSDSA and have support for both ALSA and OSS. Wouldn't this be even more work though? porting alsa would gain very little and be a huge regression. This can easily happen if we get behind a developer. ALSA has been sponsored by SuSE for the benefit of Linux, and there's no reason we can't pull together our resources to do the same for our OS. I'm sure someone will step forward to do the port if we have the cash for them to comfortably sit in front of their computer until the port is complete. I'd appreciate sponsoring somebody to work on our existing newpcm stuff and add the missing bits and pieces much more. Donating hardware (soundcards and MIDI-devices) would probably help very much already. OSS is on the outs. New applications that are ALSA only will soon be common, won't they? Newpcm is what, five years old? Whatever it is, it ain't new anymore. Of course, maybe I'm completely mistaken about the whole situation and all newpcm needs is a boost. you are completely mistaken. first, let me correct some of the factual inaccuracies that you are propounding: * newpcm is not even 4 years old yet. * alsa is in no way desireable- it is not a device abstraction system. every app must do userland resampling to play, say 44.1khz sound on a 48khz only chipset. given that it does not provide hardware abstraction, alsa's kernel components are far too complex. * alsa drivers are difficult to write- compare one to its corresponding newpcm driver. * newpcm has a much more advanced architecture than alsa, and is entirely different than oss. the fact that newpcm's dsp and mixer layers implement the oss api is incidental. newpcm v2, which may gain a better name, is under development. i originally hoped to have it ready for 5.0, but very poor health over the last year prevented this. instead, it will be targetted at 6.0 and probably backported to ~5.3+ once feature complete and demonstrably stable. i will not elaborate here on the features planned for v2, but replacing the api is one of them, although oss compatibility will be provided. there are a few people out there who know the plans, but they all know that i want them kept under wraps for now. with only two main developers, you should not expect v2 to be committed much before the end of this year. additional manpower would help, but don't volunteer if i'm going to have to spend time teaching you c, the kernel, kobj or the current design of newpcm. someone well versed in dsp techniques and acquainted with the mathematics of accoustics would be very helpful. money and/or hardware would be nice, but i at least am limited in speed by my body and nothing short of a few million dollars is likely to change that. the single greatest incentive to continue that the community could provide is to refrain from suggesting that newpcm be scrapped or replaced, especially by proponents who are not willing to do the code themselves, do not have a replacement working prior to their proposal, and/or have little to zero knowledge of sound hardware and the requirements of a top-flight audio infrastructure. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: Need ALSA [was: Re: MIDI on SB Live! ?]
Peter Schultz wrote: Michael Nottebrock wrote: On Saturday 22 March 2003 14:52, Peter Schultz wrote: [EMAIL PROTECTED] wrote: Hello, just out of curiosity: Is someone working in MIDI support for Creative EMU10K1 based sound cards (aka Soundblaster Live!) ? Regards, Julian Stecklina Having a port of ALSA would sure round out 5.2 nicely, and would get you MIDI support: http://www.alsa-project.org/ I think you wouldn't really do anyone a favour, including the ALSA folks, if you went and made a port right now. The ALSA project is still not at 1.00 status and still quite in-flux. One could go either way with this. Leave it for after 1.0, or grab it now and help build it up for a better 2.0. Or I guess we could initiate the ABSDSA and have support for both ALSA and OSS. Wouldn't this be even more work though? This can easily happen if we get behind a developer. ALSA has been sponsored by SuSE for the benefit of Linux, and there's no reason we can't pull together our resources to do the same for our OS. I'm sure someone will step forward to do the port if we have the cash for them to comfortably sit in front of their computer until the port is complete. I'd appreciate sponsoring somebody to work on our existing newpcm stuff and add the missing bits and pieces much more. Donating hardware (soundcards and MIDI-devices) would probably help very much already. OSS is on the outs. New applications that are ALSA only will soon be common, won't they? Alsa is condemned to driver + some silly user space daemon with naive signal filter anyway. So no problem here. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: Need ALSA [was: Re: MIDI on SB Live! ?]
On Saturday 22 March 2003 16:15, Peter Schultz wrote: OSS is on the outs. New applications that are ALSA only will soon be common, won't they? No. In fact, there is quite an explosion in multimedia middleware projects right now and people are having heated discussions in other places which one is the most promising. :) Don't expect many audio apps in the future to be talking directly to some API exported by a kernel. -- Regards, Michael Nottebrock pgp0.pgp Description: signature
Re: MIDI on SB Live! ?
On Mar 22, Michael Nottebrock wrote: On Friday 21 March 2003 21:01, [EMAIL PROTECTED] wrote: just out of curiosity: Is someone working in MIDI support for Creative EMU10K1 based sound cards (aka Soundblaster Live!) ? On and off, as far as I can tell. If you want MIDI right now, take a look at what 4Front Technologies offers in their commercial OSS package. Hello Micheal and all, (this is reply targeted at the thread) In not sure about 4front compatability with -current. ALSA would require a complete rewrite to work for multiple platforms because they are intimate with the linux pci interface. IMHO, it would require a fork of their project. MIDI in FreeBSD is highly hackable. It took me only a couple of days to get midi working for an es173x, a made a small web page a few months ago, it was for 5.0-dp2 but would probably work with 5.0-R. As it is, midi can be a kld and all that is required for a particular card is basic IO. The emu10k should be easier than most because we already have code for a generic mpu401. Here are some web links, http://www.cnd.mcgill.ca/~mat/es137xmidi.html (my small es137x midi page, mostly derived from other sources) Nice references for midi hacking: from NetBSD (it's .se.netbsd because .netbsd seems to be down) http://cvsweb.se.netbsd.org/cgi-bin/cvsweb.cgi/src/sys/dev/midi.c http://cvsweb.se.netbsd.org/cgi-bin/cvsweb.cgi/src/sys/dev/midisyn.c http://cvsweb.se.netbsd.org/cgi-bin/cvsweb.cgi/src/sys/dev/sequencer.c http://cvsweb.se.netbsd.org/cgi-bin/cvsweb.cgi/src/sys/dev/pci/esa.c http://cvsweb.se.netbsd.org/cgi-bin/cvsweb.cgi/src/sys/dev/pci/emuxki.c (oops, no midi for emu on netbsd) from ALSA: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/alsa/alsa-kernel/drivers/mpu401/ http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/alsa/alsa-kernel/pci/ http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/alsa/alsa-kernel/pci/emu10k1/ After all of this, the reality is, very few people care about midi for freebsd and it has been neglected for along time. We're lucky that the work done long ago still works. --Mat -- Brain: Pinky, are you pondering what I'm pondering? Pinky: I think so Brain, but pants with horizontal stripes make me look chubby. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: MIDI on SB Live! ?
Hello, no luck here either: http://www.opensound.com/readme/README.SBLive.html - o EMU Wavetable MIDI synthesizer not yet supported The only thing that is (partially) working seems to be ALSA. Regards, Julian On 22-Mar-2003 Michael Nottebrock wrote: On Friday 21 March 2003 21:01, [EMAIL PROTECTED] wrote: Hello, just out of curiosity: Is someone working in MIDI support for Creative EMU10K1 based sound cards (aka Soundblaster Live!) ? On and off, as far as I can tell. If you want MIDI right now, take a look at what 4Front Technologies offers in their commercial OSS package. -- Regards, Michael Nottebrock To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: midi causes panic on boot? (update)
Hello Jim, On Sun, Mar 25, 2001 at 07:20:04PM -0500, Jim Bloom wrote: I get a slightly different backtrace, but was able to use my palm pilot as the serial console. I have had this same problem for quit a while (about a month). I suspect a locking issue related to Seigo Tanimura's commit on Feb 25. My last cvsup was within the past 24 hours and the kernel was built in a clean directory. Yes, same experience here. But I unfortunately did not have a serial console handy. Tanimura's commits on March 14th were supposed to help the situation, but they appearently haven't...:-( I can try to get more information if necessary. I am still trying to figure out how to get more. I am not good with ddb, and since the machine will not dump, gdb is not usable locally. (And again, no serial connection handy:-( 'show witness' and 'show mutex' come to mind as two more things I will try in ddb. trace _mtx_lock_sleep(c0ecda08,0,c036d471,268) at _mtx_lock_sleep+0x29a mpu_uartmode(c0ecda00) at mpu_uartmode+0x63 mpu_attach(c0ebd100,c0ebd100,c0ebd100,c0e67080,c04e675c) at mpu_attach+0x25 mpusbc_attach(c0ebd100,c0ebd100,c0ea5ac0,c036e926,1) at mpusbc_attach+0x19 device_probe_and_attach(c0ebd100) at device_probe_and_attach+0x9a bus_generic_attach(c0ea2000,c0ebd080,c0ea5ac0,c0ea2000,c036e935) at bus_generic_attach+0x16 sbc_attach(c0ea2000,c0eadb00,c0ea2000,7,0) at sbc_attach+0x3cc device_probe_and_attach(c0ea2000,c0404c4c,c03f9030,4eb000,c0eadb00) at device_probe_and_attach+0x9a isa_probe_children(c0ea2980,c04e6ff8,c01b1f74,0,4e4c00) at isa_probe_children+0x143 configure(0,4e4c00,4e4000,0,c01277d2) at configure+0x39 mi_startup() at mi_startup+0x68 begin() at begin+0x29 Yes, I think we are looking at the same thing. -- Regards: Szilveszter ADAM Szeged University Szeged Hungary To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: midi causes panic on boot? (update)
Hello folks, I have tried it with today's -CURRENT, and as soon as I try to boot a kernel with the options (this has occured also earlier but wanted to make sure that I try today's sources first) device midi device seq (my sound card is a ISAPnP SB 64 AWE) I use device sbc too. the kernel still panics with Fatal Trap 12. I have Seigo Tanimura's fixes, and yet this still happens. I do not have a serial console, so here a short trace output transcribed: _mtx_lock_sleep mpu_uartmode mpu_attach mprobe_attach device_probe_and_attach bus_generic_attach sbc_attach device_probe_and_attach isa_probe_children configure mi_startup() begin() At the point of panic not even the swap partition is available yet so the machine does not dump. How can I force it? I would like to offer any and all help to anyone wanting to debug this; I can reproduce the problem at will and luckily no FS corruption occurs because the panic is so early on boot.:-) Of course, as soon as I omit the midi part, the kernel boots fine, and the sound card works too. -- Regards: Szilveszter ADAM Szeged University Szeged Hungary To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: midi causes panic on boot? (update)
I get a slightly different backtrace, but was able to use my palm pilot as the serial console. I have had this same problem for quit a while (about a month). I suspect a locking issue related to Seigo Tanimura's commit on Feb 25. My last cvsup was within the past 24 hours and the kernel was built in a clean directory. I can try to get more information if necessary. Jim Bloom [EMAIL PROTECTED] Fatal trap 12: page fault while in kernel mode fault virtual address = 0x1a0 fault code = supervisor read, page not present instruction pointer = 0x8:0xc01c8006 stack pointer = 0x10:0xc04e66dc frame pointer = 0x10:0xc04e66db trace _mtx_lock_sleep(c0ecda08,0,c036d471,268) at _mtx_lock_sleep+0x29a mpu_uartmode(c0ecda00) at mpu_uartmode+0x63 mpu_attach(c0ebd100,c0ebd100,c0ebd100,c0e67080,c04e675c) at mpu_attach+0x25 mpusbc_attach(c0ebd100,c0ebd100,c0ea5ac0,c036e926,1) at mpusbc_attach+0x19 device_probe_and_attach(c0ebd100) at device_probe_and_attach+0x9a bus_generic_attach(c0ea2000,c0ebd080,c0ea5ac0,c0ea2000,c036e935) at bus_generic_attach+0x16 sbc_attach(c0ea2000,c0eadb00,c0ea2000,7,0) at sbc_attach+0x3cc device_probe_and_attach(c0ea2000,c0404c4c,c03f9030,4eb000,c0eadb00) at device_probe_and_attach+0x9a isa_probe_children(c0ea2980,c04e6ff8,c01b1f74,0,4e4c00) at isa_probe_children+0x143 configure(0,4e4c00,4e4000,0,c01277d2) at configure+0x39 mi_startup() at mi_startup+0x68 begin() at begin+0x29 db panic panic: from debugger Debugger("panic") Stopped at _mtx_lock_sleep+0x29a: movl0x1a0(%edx),%eax Szilveszter Adam wrote: Hello folks, I have tried it with today's -CURRENT, and as soon as I try to boot a kernel with the options (this has occured also earlier but wanted to make sure that I try today's sources first) device midi device seq (my sound card is a ISAPnP SB 64 AWE) I use device sbc too. the kernel still panics with Fatal Trap 12. I have Seigo Tanimura's fixes, and yet this still happens. I do not have a serial console, so here a short trace output transcribed: _mtx_lock_sleep mpu_uartmode mpu_attach mprobe_attach device_probe_and_attach bus_generic_attach sbc_attach device_probe_and_attach isa_probe_children configure mi_startup() begin() At the point of panic not even the swap partition is available yet so the machine does not dump. How can I force it? I would like to offer any and all help to anyone wanting to debug this; I can reproduce the problem at will and luckily no FS corruption occurs because the panic is so early on boot.:-) Of course, as soon as I omit the midi part, the kernel boots fine, and the sound card works too. -- Regards: Szilveszter ADAM Szeged University Szeged Hungary To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: midi causes panic on boot? + entropy gatherer works fine
On Mon, Mar 12, 2001 at 04:38:50PM +0100, Szilveszter Adam wrote: I wonder if this is known? If not, I can certainly provide more information. The offending sound hw is a Creative SB 64 AWE ISAPnP card. It works fine otherwise. (as it always has) Yup I'm seeing this too. SMP kernel, AWE64 PnP. - alex To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: midi causes panic on boot? + entropy gatherer works fine
On Wed, 14 Mar 2001 00:49:53 -0800, Alex Zepeda [EMAIL PROTECTED] said: Alex On Mon, Mar 12, 2001 at 04:38:50PM +0100, Szilveszter Adam wrote: I wonder if this is known? If not, I can certainly provide more information. The offending sound hw is a Creative SB 64 AWE ISAPnP card. It works fine otherwise. (as it always has) Alex Yup I'm seeing this too. SMP kernel, AWE64 PnP. If the kernel attempts to probe mpu to die, my last commit should fix that. -- Seigo Tanimura [EMAIL PROTECTED] [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: midi panics
On Tue, 27 Feb 2001 22:53:06 +0900, "Daniel C. Sobral" [EMAIL PROTECTED] said: Daniel I'm getting fatal trap 12 with interrupts disabled related to the midi Daniel code during boot. Daniel Backtrace is: Daniel _mtx_lock_sleep+0x23a Daniel mpu_uartmode+0x3e Daniel mpu_attach+0x25 mpu_uartmode() is called before init of scp-mtx. -- Seigo Tanimura [EMAIL PROTECTED] [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message