2007-11-19 13:09:21

by Sriram V

[permalink] [raw]
Subject: Debugging uninterruptible sleep causing drivers

Hi,
Would like some advices on how to debug a driver which causes a
processes to go into
uninterruptible sleep.

Am trying to debug a bug which makes my video driver to go into
an sleep/busywaiting. (when i do 'ps -l' find a 'D' in the stat field).

99% of the time the driver works,

However when i try to run both the video and the audio driver.(streaming
audio and video)
The video driver sometimes goes into busywaiting/sleep.

My driver contains lots of spinlocks and semaphores. I have no clue on how to
solve this issues.

Please do advice,

Regards,
sriram


2007-11-19 16:40:41

by Arjan van de Ven

[permalink] [raw]
Subject: Re: Debugging uninterruptible sleep causing drivers

On Mon, 19 Nov 2007 18:39:03 +0530
Ram <[email protected]> wrote:

> Hi,
> Would like some advices on how to debug a driver which causes a
> processes to go into
> uninterruptible sleep.
>
> Am trying to debug a bug which makes my video driver to go into
> an sleep/busywaiting. (when i do 'ps -l' find a 'D' in the stat
> field).
>
> 99% of the time the driver works,
>
> However when i try to run both the video and the audio
> driver.(streaming audio and video)
> The video driver sometimes goes into busywaiting/sleep.
>
> My driver contains lots of spinlocks and semaphores. I have no clue
> on how to solve this issues.
>

it starts by posting a URL to the (full) source code... without that..
how are people supposed to help you?


--
If you want to reach me at my work email, use [email protected]
For development, discussion and tips for power savings,
visit http://www.lesswatts.org