* Debugging driver modules
@ 2002-11-30 22:27 Scott Bahling
2002-11-30 17:38 ` Paul Davis
2002-12-02 9:13 ` Takashi Iwai
0 siblings, 2 replies; 5+ messages in thread
From: Scott Bahling @ 2002-11-30 22:27 UTC (permalink / raw)
To: alsa-devel
Hello-
I have a STAudio DSP24 mkII and I have noticed that recent changes(after
NOV 13) in the CVS creates an ICE1712 driver that locks up my kernel.
Instead of just complaining about this problem I thought I might try to
narrow down the location in the driver that is causing the lockup.
Does anyone have any tips on debugging the driver modules? Is anyone
using a debugger to do this? I have looked at UML, but I am not sure if
there is a way to access the sound hardware with it.
Thanks,
scott
-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Debugging driver modules
2002-11-30 22:27 Debugging driver modules Scott Bahling
@ 2002-11-30 17:38 ` Paul Davis
2002-12-01 14:27 ` Matthias Weiss
2002-12-02 9:13 ` Takashi Iwai
1 sibling, 1 reply; 5+ messages in thread
From: Paul Davis @ 2002-11-30 17:38 UTC (permalink / raw)
To: sbahling; +Cc: alsa-devel
>I have a STAudio DSP24 mkII and I have noticed that recent changes(after
>NOV 13) in the CVS creates an ICE1712 driver that locks up my kernel.
>Instead of just complaining about this problem I thought I might try to
>narrow down the location in the driver that is causing the lockup.
>
>Does anyone have any tips on debugging the driver modules? Is anyone
>using a debugger to do this? I have looked at UML, but I am not sure if
>there is a way to access the sound hardware with it.
use the "single" kernel option on the boot command line. this will
shorten start up times considerably. once you're at the shell prompt,
mount any necessary filesystems by hand, modprobe the drivers, and
test using a console window. i generally find that this shortens the
crash-reboot-edit-recompile-reboot-crash cycle by a factor of at least
three. mount any filesystems that don't need to be writable with the
"ro" option so that any crash leaves them untouched.
the debugging process i use for drivers and real-time threads makes
heavy use of binary search and print{k,f}
--p
-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Debugging driver modules
2002-11-30 17:38 ` Paul Davis
@ 2002-12-01 14:27 ` Matthias Weiss
0 siblings, 0 replies; 5+ messages in thread
From: Matthias Weiss @ 2002-12-01 14:27 UTC (permalink / raw)
To: alsa-devel
On Sat, Nov 30, 2002 at 12:38:20PM -0500, Paul Davis wrote:
> >I have a STAudio DSP24 mkII and I have noticed that recent changes(after
> >NOV 13) in the CVS creates an ICE1712 driver that locks up my kernel.
> >Instead of just complaining about this problem I thought I might try to
> >narrow down the location in the driver that is causing the lockup.
> >
> >Does anyone have any tips on debugging the driver modules? Is anyone
> >using a debugger to do this? I have looked at UML, but I am not sure if
> >there is a way to access the sound hardware with it.
>
> use the "single" kernel option on the boot command line. this will
> shorten start up times considerably. once you're at the shell prompt,
> mount any necessary filesystems by hand, modprobe the drivers, and
> test using a console window. i generally find that this shortens the
> crash-reboot-edit-recompile-reboot-crash cycle by a factor of at least
> three. mount any filesystems that don't need to be writable with the
> "ro" option so that any crash leaves them untouched.
Couldn't "user mode linux" be used to avoid the "reboot" stage?
matthias
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Debugging driver modules
2002-11-30 22:27 Debugging driver modules Scott Bahling
2002-11-30 17:38 ` Paul Davis
@ 2002-12-02 9:13 ` Takashi Iwai
[not found] ` <3DEB8BED.4030002@mudgum.net>
1 sibling, 1 reply; 5+ messages in thread
From: Takashi Iwai @ 2002-12-02 9:13 UTC (permalink / raw)
To: sbahling; +Cc: alsa-devel
At 30 Nov 2002 16:27:43 -0600,
Scott Bahling wrote:
>
> Hello-
>
> I have a STAudio DSP24 mkII and I have noticed that recent changes(after
> NOV 13) in the CVS creates an ICE1712 driver that locks up my kernel.
> Instead of just complaining about this problem I thought I might try to
> narrow down the location in the driver that is causing the lockup.
can you confirm the date when the critical change was applied to cvs?
the driver before Nov. 13 works really?
if so, you can make a diff between these two versions and find out
which change causing the lock up.
> Does anyone have any tips on debugging the driver modules? Is anyone
> using a debugger to do this? I have looked at UML, but I am not sure if
> there is a way to access the sound hardware with it.
AFAIK, UML is not possible for such a low-level driver, because it
needs the direct i/o access.
other kernel debuging tools might be useful, e.g. strack-tracing via
alt-sysrq. i cannot tell much about them since i've not used, too.
also, if the problem is a dead spinlock, you can try the kernel with
SPINLOCK_DEBUG flag to find the culprit.
Takashi
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-12-02 11:23 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-30 22:27 Debugging driver modules Scott Bahling
2002-11-30 17:38 ` Paul Davis
2002-12-01 14:27 ` Matthias Weiss
2002-12-02 9:13 ` Takashi Iwai
[not found] ` <3DEB8BED.4030002@mudgum.net>
2002-12-02 11:23 ` Takashi Iwai
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.