public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Jim Duchek <jrduchek@blueridge.net>
To: David Woodhouse <dwmw2@infradead.org>
Cc: linux-mtd@lists.infradead.org
Subject: Re: DOC2000 + PPM-TX166 (PATCH)
Date: Wed, 05 Nov 2003 18:53:38 -0600	[thread overview]
Message-ID: <3FA99B92.3030102@blueridge.net> (raw)
In-Reply-To: <1068078256.11685.6.camel@imladris.demon.co.uk>

I'll take a look at getting you that backtrace -- I don't think we have 
one of our boxes with a keyboard/video on it right now, but next time I 
get the opportunity I'll get you that.  I haven't tried removing the 
udelay.  I didn't consider that the udelay might have been the problem 
until after I'd put the yield() in, and then later was discussing what 
the difference might have been and I thought of the TSC/non-TSC 
udelays.  I'll give that a shot tomorrow as well -- it really ought to 
be removed anyhow if a resched() is going to happen right after it.  We 
did try the latest CVS code (perhaps two weeks ago) and saw no 
difference, so reverted back to the 2.4.22 released version. 


Jim

David Woodhouse wrote:

>On Wed, 2003-11-05 at 11:20 -0600, Jim Duchek wrote:
>  
>
>>I traced the problem down to the cond_resched() in WaitReady in 
>>doc2000.c.  Removing cond_resched() made the problem go away (and the 
>>system unresponsive while doing any DoC access).  Replacing the 
>>udelay(1) and cond_resched() with a yield() fixes everything. 
>>    
>>
>
>Very strange. Calling yield() really isn't what we want there; we wanted
>cond_resched(). What if you leave the cond_resched() and remove the
>udelay()? What if you make the udelay() larger?
>
>When the system is locked up as you described, can you hit SysRq-T to
>see the backtrace of the stuck thread, and show me the (decoded) output.
>
>Does the same happen even with the current CVS code?
>
>  
>

  reply	other threads:[~2003-11-06  0:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-05 17:20 DOC2000 + PPM-TX166 (PATCH) Jim Duchek
2003-11-06  0:24 ` David Woodhouse
2003-11-06  0:53   ` Jim Duchek [this message]
2003-11-06  7:40     ` David Woodhouse

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3FA99B92.3030102@blueridge.net \
    --to=jrduchek@blueridge.net \
    --cc=dwmw2@infradead.org \
    --cc=jduchek@genaero.com \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox