mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* 2.5.5-pre1: Deadlocks and ALSA driver problems
@ 2002-02-15 10:20 Jos Hulzink
  2002-02-15 12:12 ` Jaroslav Kysela
  0 siblings, 1 reply; 3+ messages in thread
From: Jos Hulzink @ 2002-02-15 10:20 UTC (permalink / raw)
  To: Linux Kernel Development

Hi,

Still fighting with the debug tools (I'm new to kernel debugging), but
maybe this info is useful to others:

2.5.5-pre1 deadlocked completely about 7 times in 40 minutes. The Magic
SysRq key didn't work anymore. Don't know if it is related, but after I
recompiled the ALSA driver as modules, the system was stable for about 4
hours. (With ALSA modules loaded, playing music, and I rebooted it myself
afterwards.)

Besides: the ALSA /proc interface is terribly broken, any cat
/proc/asound/... results in a no such device error. The ALSA /dev entries
return the same errors while opening them, but the OSS emulation layer
works fine.

System Info:
PII-333 SMP on Asus P2L97-DS (Intel LX chipset), 512 MB RAM
SB Live 5.1 soundcard

The kernel is compiled with ALSA driver and Preemptive=Y

I hope to provide you better emails in the future.

Jos


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 2.5.5-pre1: Deadlocks and ALSA driver problems
  2002-02-15 10:20 2.5.5-pre1: Deadlocks and ALSA driver problems Jos Hulzink
@ 2002-02-15 12:12 ` Jaroslav Kysela
  2002-02-15 12:53   ` Jos Hulzink
  0 siblings, 1 reply; 3+ messages in thread
From: Jaroslav Kysela @ 2002-02-15 12:12 UTC (permalink / raw)
  To: Jos Hulzink; +Cc: Linux Kernel Development, ALSA development

[-- Attachment #1: Type: TEXT/PLAIN, Size: 949 bytes --]

On Fri, 15 Feb 2002, Jos Hulzink wrote:

> Hi,
>
> Still fighting with the debug tools (I'm new to kernel debugging), but
> maybe this info is useful to others:
>
> 2.5.5-pre1 deadlocked completely about 7 times in 40 minutes. The Magic
> SysRq key didn't work anymore. Don't know if it is related, but after I
> recompiled the ALSA driver as modules, the system was stable for about 4
> hours. (With ALSA modules loaded, playing music, and I rebooted it myself
> afterwards.)
>
> Besides: the ALSA /proc interface is terribly broken, any cat
> /proc/asound/... results in a no such device error. The ALSA /dev entries
> return the same errors while opening them, but the OSS emulation layer
> works fine.

Attached patch for linux/sound/core/info.c fixes the problem with /proc
entries.

						Jaroslav

-----
Jaroslav Kysela <perex@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project  http://www.alsa-project.org
SuSE Linux    http://www.suse.com

[-- Attachment #2: Type: TEXT/plain, Size: 1644 bytes --]

Index: info.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/core/info.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- info.c	14 Feb 2002 17:40:30 -0000	1.7
+++ info.c	15 Feb 2002 12:10:26 -0000	1.8
@@ -278,7 +278,7 @@
 	int mode, err;
 
 	down(&info_mutex);
-	p = (struct proc_dir_entry *) inode->u.generic_ip;
+	p = PDE(inode);
 	entry = p == NULL ? NULL : (snd_info_entry_t *)p->data;
 	if (entry == NULL) {
 		up(&info_mutex);
@@ -541,7 +541,7 @@
 static int snd_info_card_readlink(struct dentry *dentry,
 				  char *buffer, int buflen)
 {
-        char *s = ((struct proc_dir_entry *) dentry->d_inode->u.generic_ip)->data;
+        char *s = PDE(dentry->d_inode)->data;
 #ifndef LINUX_2_2
 	return vfs_readlink(dentry, buffer, buflen, s);
 #else
@@ -562,7 +562,7 @@
 static int snd_info_card_followlink(struct dentry *dentry,
 				    struct nameidata *nd)
 {
-        char *s = ((struct proc_dir_entry *) dentry->d_inode->u.generic_ip)->data;
+        char *s = PDE(dentry->d_inode)->data;
         return vfs_follow_link(nd, s);
 }
 #else
@@ -570,7 +570,7 @@
 					       struct dentry *base,
 					       unsigned int follow)
 {
-	char *s = ((struct proc_dir_entry *) dentry->d_inode->u.generic_ip)->data;
+	char *s = PDE(dentry->d_inode)->data;
 	return lookup_dentry(s, base, follow);
 }
 #endif
@@ -845,7 +845,7 @@
 		return;
 	}
 	MOD_INC_USE_COUNT;
-	de = (struct proc_dir_entry *) inode->u.generic_ip;
+	de = PDE(inode);
 	if (de == NULL)
 		return;
 	entry = (snd_info_entry_t *) de->data;

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 2.5.5-pre1: Deadlocks and ALSA driver problems
  2002-02-15 12:12 ` Jaroslav Kysela
@ 2002-02-15 12:53   ` Jos Hulzink
  0 siblings, 0 replies; 3+ messages in thread
From: Jos Hulzink @ 2002-02-15 12:53 UTC (permalink / raw)
  To: Jaroslav Kysela; +Cc: Linux Kernel Development, ALSA development

On Friday 15 February 2002 13:12, Jaroslav Kysela wrote:
>
> Attached patch for linux/sound/core/info.c fixes the problem with /proc
> entries.
>

Confirmed.  /proc interface seems working as expected. 

Jos
 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-02-15 12:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-15 10:20 2.5.5-pre1: Deadlocks and ALSA driver problems Jos Hulzink
2002-02-15 12:12 ` Jaroslav Kysela
2002-02-15 12:53   ` Jos Hulzink

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®