public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Jim Duchek <jduchek@genaero.com>
To: linux-mtd@lists.infradead.org
Subject: DOC2000 + PPM-TX166 (PATCH)
Date: Wed, 05 Nov 2003 11:20:30 -0600	[thread overview]
Message-ID: <3FA9315E.2090508@genaero.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1434 bytes --]

Hello.  I'm not subscribed to the mailing list, so please, if you could 
make sure any replies for me go to my address and not to the list, I 
would appreciate.

We saw a problem (actually, a pretty big problem) wherein when a sync() 
was done on a filesystem on the DoC we were using, it would hang and 
never come back.  The system was perfectly responsive, except trying to 
talk to the DoC wasn't going to happen again until reboot.  The problem 
would never occur if we let the fs sync itself -- that is, just wait a 
few minutes until the buffers have been cleared.

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.  The patch 
is short and appended to this message.  I believe the patch should be 
Good for all users, although I'm not sure why we don't see this problem 
on some other setups.  My best guess is that the other setups we are 
using have Geode processors, which I don't believe have a TSC, and our 
P-MMX does have one, and udelay() is totally different depending on the 
existence of a TSC.

For those curious, we are using an unpatched 2.4.22 kernel on a 
WinSystems PPM-TX166.  The DoC in question is a 48M Industrial (X) rated 
chip.  We saw the problem with both msdos and ext2 filesystems.




[-- Attachment #2: doc2000.patch --]
[-- Type: text/plain, Size: 149 bytes --]

94a95
> 		yield();
99,100d99
< 		udelay(1);
< 		cond_resched();
101a101,104
> 	
> 	DEBUG(MTD_DEBUG_LEVEL3,
> 	      "_DoC_WaitReady finished\n");
> 

             reply	other threads:[~2003-11-05 17:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-05 17:20 Jim Duchek [this message]
2003-11-06  0:24 ` DOC2000 + PPM-TX166 (PATCH) David Woodhouse
2003-11-06  0:53   ` Jim Duchek
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=3FA9315E.2090508@genaero.com \
    --to=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