Re: [Alsa-user] Midi issue with 1.0.12 and ice1712

2006-11-02 Thread Sergei Steshenko
On Wed, 01 Nov 2006 19:29:18 -0700
Bob van der Poel [EMAIL PROTECTED] wrote:

 
 
 Clemens Ladisch wrote:
  Bob van der Poel wrote:
  I've just installed Mandriva 2007. It is using alsa 1.0.12 with my 
  audiophile 2496 card. Oh, this is on linux  kernel 2.6.17-5mdv.
 
  There appears to be a problem with midi output. A few times now my 
  entire computer has locked while playing a midi file using aplaymidi.
  
  This looks like the RTC bug.  Try adding the following line to
  /etc/modprobe.conf:
  
  options seq seq_default_timer_device=0
 
 Worked for a few days ... just now it hung completely. Had to rePOWER 
 the computer (RESET by itself didn't do the trick).
 
 [07:25 PM /proc/asound/seq] bob$ cat timer
 Timer for queue 0 : system timer
Period time : 0.00400
Skew : 65536 / 65536
 
 [07:27 PM /proc/asound] bob$ cat version
 Advanced Linux Sound Architecture Driver Version 1.0.12 (Mon Aug 28 
 13:46:17 UTC 2006).
 
 This is all on Mandriva 2007 ... and I'll tell the world that I'm not 
 too impressed with this distro. I think I'll install SLED10.1 later this 
 week. Same problems to be expected?
 

I did install SUSE (not SLED, the free one) 10.1 on another computer, and I
didn't much like it compared to Mandriva 2006. I did the experiment because
I wanted to migrate from Mandriva in the first place.

All in all I find Mepis 6.01 quite pleasing.

But regarding your problem - better find very recent Live CDs and
try with them.

On the other hand, if something works for a few days and then just hangs
- debugging such a thing is a project by itself, it could be anything,
including faulty RAM, spike in power supply, CPU/chipset bug, whatever.

--Sergei.
-- 
Visit my http://appsfromscratch.berlios.de/ open source project.

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Midi issue with 1.0.12 and ice1712

2006-11-01 Thread Bob van der Poel


Clemens Ladisch wrote:
 Bob van der Poel wrote:
 I've just installed Mandriva 2007. It is using alsa 1.0.12 with my 
 audiophile 2496 card. Oh, this is on linux  kernel 2.6.17-5mdv.

 There appears to be a problem with midi output. A few times now my 
 entire computer has locked while playing a midi file using aplaymidi.
 
 This looks like the RTC bug.  Try adding the following line to
 /etc/modprobe.conf:
 
 options seq seq_default_timer_device=0

Worked for a few days ... just now it hung completely. Had to rePOWER 
the computer (RESET by itself didn't do the trick).

[07:25 PM /proc/asound/seq] bob$ cat timer
Timer for queue 0 : system timer
   Period time : 0.00400
   Skew : 65536 / 65536

[07:27 PM /proc/asound] bob$ cat version
Advanced Linux Sound Architecture Driver Version 1.0.12 (Mon Aug 28 
13:46:17 UTC 2006).

This is all on Mandriva 2007 ... and I'll tell the world that I'm not 
too impressed with this distro. I think I'll install SLED10.1 later this 
week. Same problems to be expected?

-- 
Bob van der Poel ** Wynndel, British Columbia, CANADA **
EMAIL: [EMAIL PROTECTED]
WWW:   http://www.mellowood.ca



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Midi issue with 1.0.12 and ice1712

2006-10-27 Thread Takashi Iwai
At Fri, 27 Oct 2006 11:23:30 +0200,
Clemens Ladisch wrote:
 
 Takashi Iwai wrote:
  [...]
  Yes, there is a known ABBA deadlock between rtc and snd-timer.
  At least, we need to remove a spinlock in rtc.c.
  
  -   spin_lock_irqsave(rtc_task_lock, flags);
  if (rtc_callback != task) {
  -   spin_unlock_irqrestore(rtc_task_lock, flags);
  return -ENXIO;
  }
  -   spin_unlock_irqrestore(rtc_task_lock, flags);
 
 This lock is needed to protect rtc_callback against concurrent accesses
 from other clients.

Well, this isn't useful for protecting from other clients.
rtc_control() is supposed to be called only from the client that
already registered.  In other case, it's simply a bug, and should be
rather warned.

 I've committed a patch that just moves the code out of the RTC callback
 into a tasklet.  Besides being 'proper' kernel programming technique,
 this also works with earlier kernels.

This looks like a good solution.  I'll check whether still deadlock
occurs.


thanks,

Takashi

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Midi issue with 1.0.12 and ice1712

2006-10-27 Thread Clemens Ladisch
Takashi Iwai wrote:
 The commit seems lacking Patch-level: ASAP although this fix is
 definitely to go to 2.6.19.  Could you add it to linus tree via ssh
 mv, too?
 
 Could you submit it to stable kernel tree, too?

Done.


Regards,
Clemens

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Midi issue with 1.0.12 and ice1712

2006-10-27 Thread Bob van der Poel


Clemens Ladisch wrote:
 Bob van der Poel wrote:
 Clemens Ladisch wrote:
 options seq seq_default_timer_device=0
 How can I confirm that the line has actually taken effect?
 
 Look into /proc/asound/timers when some MIDI is playing.

bob$ cat timer
Timer for queue 0 : RTC timer
   Period time : 0.000976562
   Skew : 65536 / 65536

Is that right?



-- 
Bob van der Poel ** Wynndel, British Columbia, CANADA **
EMAIL: [EMAIL PROTECTED]
WWW:   http://www.mellowood.ca



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Midi issue with 1.0.12 and ice1712

2006-10-27 Thread Clemens Ladisch
Bob van der Poel wrote:
 Clemens Ladisch wrote:
  Bob van der Poel wrote:
  How can I confirm that the line has actually taken effect?
  
  Look into /proc/asound/timers when some MIDI is playing.
 
 Timer for queue 0 : RTC timer

This says that the RTC timer is still used.


Regards,
Clemens

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Midi issue with 1.0.12 and ice1712

2006-10-27 Thread Clemens Ladisch
Bob van der Poel wrote:
 options seq seq_default_timer_device=0

Oops, I tould you the wrong module name.  This should be:

options snd-seq seq_default_timer_device=0


HTH
Clemens

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Midi issue with 1.0.12 and ice1712

2006-10-26 Thread Clemens Ladisch
Bob van der Poel wrote:
 I've just installed Mandriva 2007. It is using alsa 1.0.12 with my 
 audiophile 2496 card. Oh, this is on linux  kernel 2.6.17-5mdv.
 
 There appears to be a problem with midi output. A few times now my 
 entire computer has locked while playing a midi file using aplaymidi.

This looks like the RTC bug.  Try adding the following line to
/etc/modprobe.conf:

options seq seq_default_timer_device=0


HTH
Clemens

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Midi issue with 1.0.12 and ice1712

2006-10-26 Thread Takashi Iwai
At Thu, 26 Oct 2006 09:18:13 +0200,
Clemens Ladisch wrote:
 
 Bob van der Poel wrote:
  I've just installed Mandriva 2007. It is using alsa 1.0.12 with my 
  audiophile 2496 card. Oh, this is on linux  kernel 2.6.17-5mdv.
  
  There appears to be a problem with midi output. A few times now my 
  entire computer has locked while playing a midi file using aplaymidi.
 
 This looks like the RTC bug.

Yes, there is a known ABBA deadlock between rtc and snd-timer.
At least, we need to remove a spinlock in rtc.c.  The patch below
should fix, but it seems not enough to clean up all problems.
Unfortunately, I've had little time to investigate it yet.


Takashi

diff --git a/drivers/char/rtc.c b/drivers/char/rtc.c
index ab6429b..46d2896 100644
--- a/drivers/char/rtc.c
+++ b/drivers/char/rtc.c
@@ -869,15 +869,10 @@ int rtc_control(rtc_task_t *task, unsign
 #ifndef RTC_IRQ
return -EIO;
 #else
-   unsigned long flags;
if (cmd != RTC_PIE_ON  cmd != RTC_PIE_OFF  cmd != RTC_IRQP_SET)
return -EINVAL;
-   spin_lock_irqsave(rtc_task_lock, flags);
-   if (rtc_callback != task) {
-   spin_unlock_irqrestore(rtc_task_lock, flags);
+   if (rtc_callback != task)
return -ENXIO;
-   }
-   spin_unlock_irqrestore(rtc_task_lock, flags);
return rtc_do_ioctl(cmd, arg, 1);
 #endif
 }

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Midi issue with 1.0.12 and ice1712

2006-10-26 Thread Bob van der Poel


Clemens Ladisch wrote:
 Bob van der Poel wrote:
 I've just installed Mandriva 2007. It is using alsa 1.0.12 with my 
 audiophile 2496 card. Oh, this is on linux  kernel 2.6.17-5mdv.

 There appears to be a problem with midi output. A few times now my 
 entire computer has locked while playing a midi file using aplaymidi.
 
 This looks like the RTC bug.  Try adding the following line to
 /etc/modprobe.conf:
 
 options seq seq_default_timer_device=0


Thanks for the suggestion. I have added the line and restarted alsa. 
I'll try to play some more midi's later and see what happens. Funny, 
last night after sending the message I played about an hour's worth of 
midi and no problems at all (this is before adding the line).

How can I confirm that the line has actually taken effect? I see no 
differences in the /proc/asound files I checked.

Thanks.

-- 
Bob van der Poel ** Wynndel, British Columbia, CANADA **
EMAIL: [EMAIL PROTECTED]
WWW:   http://www.mellowood.ca



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user