Re: MIDI input patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi again,

I just found out myself how to emulate the CPU.  I set $_cpu_emu to "vm86" in /etc/dosemu/dosemu.conf on my T22, and so far no more problems!  Seems to be a bug that only occurs when running on the real CPU.

Thomas W.



> -----Ursprüngliche Nachricht-----
> Von: <x.zupftom@xxxxxx>
> Gesendet: 17.07.09 11:57:08
> An: Bart Oldeman <bartoldeman@xxxxxxxxxxxxxxxxxxxxx>
> CC: linux-msdos@xxxxxxxxxxxxxxx
> Betreff: Re: MIDI input patch


> Hi all,
> 
> it's great that MIDI is working now with the latest SVN version. However, when trying to use it on my Thinkpad T22 (Pentium III, Xubuntu Jaunty, 2.6.28-13-generic kernel), there is another problem, both in revision 1897 and 1898. Two other people have reported this problem, too. I don't experience this problem on my desktop machine (AMD Athlon 64 X2 3800+ machine, Ubuntu Hardy, 2.6.24-24-generic kernel). So this could have to do something with a real vs. an emulated CPU. I tried to force CPU emulation on the T22 by starting dosemu with dosemu -I 'cpu emulated', but I'm not sure whether this works and if CPU emulation was at all included at compile time. How can I tell whether I compiled dosemu with CPU emulation or not? And how can I influence this?
> 
> I guess the problem might also be MIDI related, even if one doesn't use MIDI input because it occurs in input mode where Score expects music input via qwerty or MIDI keyboard (you can mix both, enter some notes via MIDI, some via qwerty). I removed the dosemu-midi_in links on both my machines for the following test (both running with the MIDI patch). When I start dosemu with "dosemu -O -D+S", the first debugging output after starting Score is when I enter input mode. On my AMD 64 machine, it looks as follows:
> 
> 
> MPU401: Read status port = 0xbf
> MPU401: Read status port = 0xbf
> MPU401: Write 0xff to command port
> SB: Activating irq type 4
> MPU401: Read status port = 0x3f
> MPU401: Read data port = 0xfe, 0 bytes still in queue
> SB: Deactivating irq type 4
> MPU401: Read status port = 0xbf
> MPU401: Write 0x3f to command port
> SB: Activating irq type 4
> MPU401: Read status port = 0x3f
> MPU401: Read data port = 0xfe, 0 bytes still in queue
> SB: Deactivating irq type 4
> 
> 
> On the T22 it's the same except for one word: The last line says "SB: Warning: Deactivating irq type 4". This raises my suspicion. Anyway, so far there is no problem. I can go on and enter music with the qwerty keyboard. When I'm finished with that and Score does not expect any further input, the next messages pop up on the console.
> 
> On the AMD64:
> 
> MPU401: Read status port = 0xbf
> MPU401: Read status port = 0xbf
> MPU401: Write 0xff to command port
> SB: Activating irq type 4
> MPU401: Read status port = 0x3f
> MPU401: Read data port = 0xfe, 0 bytes still in queue
> SB: Deactivating irq type 4
> 
> 
> On the T22, almost the same, except for the lines I marked with "=>":
> 
> MPU401: Read status port = 0xbf
> MPU401: Read status port = 0xbf
> MPU401: Write 0xff to command port
> SB: Activating irq type 4
> => SB: Interrupt activated
> => SB: Activated IRQ for MIDI
> MPU401: Read status port = 0x3f
> MPU401: Read data port = 0xfe, 0 bytes still in queue
> =>
> 
> The last line from my AMD64, "SB: Deactivating irq type 4", is missing in the T22 output.
> 
> However, both machines continue to work happily, until I want to enter input mode again. This causes dosemu on the T22 to hang. On the AMD machine everything is fine and the fresh debugging output looks exactly like when entering input mode the first time.
> 
> I can only guess what this all means. Does it mean, that the T22 missed to deactivate IRQ type 4 when leaving input mode and therefore can't read status port = 0xbf?? (I've no idea what's behind all this IRQ stuff.)
> 
> Can anyone help?
> 
> Thomas W.
> 
> ______________________________________________________
> GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT!
> Jetzt freischalten unter http://movieflat.web.de
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


______________________________________________________
GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://movieflat.web.de

--
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Console]     [Linux Audio]     [Linux for Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite Camping]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Samba]     [Linux Media]     [Fedora Users]

  Powered by Linux