Skip to contentSkip to conversation

Bug #952 - MIDI lockup

DISCUSSION Lee Revell 2 participants 8 messages Jul 2, 2006 – Jul 5, 2006

lore
Share & tools
lore

Lee Revell

author
#0 lore raw

Can someone take a quick look at:

https://bugtrack.alsa-project.org/alsa-bug/view.php?id=952

There is a nice screenshot of the kernel panic. The bug has been verified with ALSA 1.0.12-rc1.

It seems to crash while taking a spinlock in snd_timer_interrupt when called from rtc_interrupt - maybe the changes to the ALSA RTC timer a few months ago are involved?

Lee

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=lnk&kid=120709&bid=263057&dat=121642

#1 lore raw

At Sun, 02 Jul 2006 18:45:59 -0400,

Quoted 11 lines · Lee Revell

Can someone take a quick look at:

https://bugtrack.alsa-project.org/alsa-bug/view.php?id=952

There is a nice screenshot of the kernel panic. The bug has been verified with ALSA 1.0.12-rc1.

It seems to crash while taking a spinlock in snd_timer_interrupt when called from rtc_interrupt - maybe the changes to the ALSA RTC timer a few months ago are involved?

Does the patch below fix?

Takashi

core/timer.c +4 -3
diff -r 0dc0bac494b6 core/timer.c
@@ -628,8 +628,9 @@ static void snd_timer_tasklet(unsigned l
 	struct snd_timer_instance *ti;
 	struct list_head *p;
 	unsigned long resolution, ticks;
-
-	spin_lock(&timer->lock);
+	unsigned long flags;
+
+	spin_lock_irqsave(&timer->lock, flags);
 	/* now process all callbacks */
 	while (!list_empty(&timer->sack_list_head)) {
 		p = timer->sack_list_head.next;		/* get first item */
@@ -649,7 +650,7 @@ static void snd_timer_tasklet(unsigned l
 		spin_lock(&timer->lock);
 		ti->flags &= ~SNDRV_TIMER_IFLG_CALLBACK;
 	}
-	spin_unlock(&timer->lock);
+	spin_unlock_irqrestore(&timer->lock, flags);
 }
 
 /*

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=lnk&kid=120709&bid=263057&dat=121642

author
#2 lore raw
Quoted 7 lines · Takashi Iwai

At Sun, 02 Jul 2006 18:45:59 -0400,

Quoted 5 lines · Lee Revell

Can someone take a quick look at:

https://bugtrack.alsa-project.org/alsa-bug/view.php?id=952

Quoted 9 lines
Quoted 6 lines

There is a nice screenshot of the kernel panic. The bug has been verified with ALSA 1.0.12-rc1.

It seems to crash while taking a spinlock in snd_timer_interrupt when called from rtc_interrupt - maybe the changes to the ALSA RTC timer a few months ago are involved?

Does the patch below fix?

Looks like it might. I could not reproduce the problem myself but I've attached it to the bug report for testing.

Lee

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=lnk&kid=120709&bid=263057&dat=121642

author
#3 lore raw
In reply to Takashi Iwai
Quoted 7 lines · Takashi Iwai

At Sun, 02 Jul 2006 18:45:59 -0400,

Quoted 5 lines · Lee Revell

Can someone take a quick look at:

https://bugtrack.alsa-project.org/alsa-bug/view.php?id=952

Quoted 8 lines
Quoted 6 lines

There is a nice screenshot of the kernel panic. The bug has been verified with ALSA 1.0.12-rc1.

It seems to crash while taking a spinlock in snd_timer_interrupt when called from rtc_interrupt - maybe the changes to the ALSA RTC timer a few months ago are involved?

Does the patch below fix?

No.

Lee

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=lnk&kid=120709&bid=263057&dat=121642

#4 lore raw

At Tue, 04 Jul 2006 11:00:40 -0400,

Quoted 12 lines · Lee Revell
Quoted 10 lines · Takashi Iwai

At Sun, 02 Jul 2006 18:45:59 -0400,

Quoted 8 lines · Lee Revell

Can someone take a quick look at:

https://bugtrack.alsa-project.org/alsa-bug/view.php?id=952

There is a nice screenshot of the kernel panic. The bug has been verified with ALSA 1.0.12-rc1.

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

It seems to crash while taking a spinlock in snd_timer_interrupt when called from rtc_interrupt - maybe the changes to the ALSA RTC timer a few months ago are involved?

Does the patch below fix?

No.

Pointer? The test in bug #952 seems inaccurate.

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=lnk&kid=120709&bid=263057&dat=121642

author
#5 lore raw
Quoted 18 lines · Takashi Iwai

At Tue, 04 Jul 2006 11:00:40 -0400,

Quoted 16 lines · Lee Revell
Quoted 14 lines · Takashi Iwai

At Sun, 02 Jul 2006 18:45:59 -0400,

Quoted 11 lines · Lee Revell

Can someone take a quick look at:

https://bugtrack.alsa-project.org/alsa-bug/view.php?id=952

There is a nice screenshot of the kernel panic. The bug has been verified with ALSA 1.0.12-rc1.

It seems to crash while taking a spinlock in snd_timer_interrupt when called from rtc_interrupt - maybe the changes to the ALSA RTC timer a few months ago are involved?

Quoted 5 lines
Quoted 3 lines
Quoted 1 line

Does the patch below fix?

No.

Pointer? The test in bug #952 seems inaccurate.

Hmm, it might have fixed it. I think the user did not test correctly.

Lee

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=lnk&kid=120709&bid=263057&dat=121642

author
#6 lore raw
In reply to Takashi Iwai
Quoted 18 lines · Takashi Iwai

At Tue, 04 Jul 2006 11:00:40 -0400,

Quoted 16 lines · Lee Revell
Quoted 14 lines · Takashi Iwai

At Sun, 02 Jul 2006 18:45:59 -0400,

Quoted 11 lines · Lee Revell

Can someone take a quick look at:

https://bugtrack.alsa-project.org/alsa-bug/view.php?id=952

There is a nice screenshot of the kernel panic. The bug has been verified with ALSA 1.0.12-rc1.

It seems to crash while taking a spinlock in snd_timer_interrupt when called from rtc_interrupt - maybe the changes to the ALSA RTC timer a few months ago are involved?

Quoted 5 lines
Quoted 3 lines
Quoted 1 line

Does the patch below fix?

No.

Pointer? The test in bug #952 seems inaccurate.

OK, the patch does fix the problem. Please apply.

Lee

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=lnk&kid=120709&bid=263057&dat=121642

#7 lore raw

At Wed, 05 Jul 2006 11:08:15 -0400,

Quoted 20 lines · Lee Revell
Quoted 18 lines · Takashi Iwai

At Tue, 04 Jul 2006 11:00:40 -0400,

Quoted 16 lines · Lee Revell
Quoted 14 lines · Takashi Iwai

At Sun, 02 Jul 2006 18:45:59 -0400,

Quoted 11 lines · Lee Revell

Can someone take a quick look at:

https://bugtrack.alsa-project.org/alsa-bug/view.php?id=952

There is a nice screenshot of the kernel panic. The bug has been verified with ALSA 1.0.12-rc1.

It seems to crash while taking a spinlock in snd_timer_interrupt when called from rtc_interrupt - maybe the changes to the ALSA RTC timer a few months ago are involved?

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line

Does the patch below fix?

No.

Pointer? The test in bug #952 seems inaccurate.

OK, the patch does fix the problem. Please apply.

Thanks for the confirmation. Committed to HG repo.

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=lnk&kid=120709&bid=263057&dat=121642