public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Ales Makarov <ales.makarov@wolfhill.cz>
To: Linux MTD mailing list <linux-mtd@lists.infradead.org>
Subject: Re: Kernel oops after sync command in jffs2
Date: Wed, 22 May 2002 12:51:11 +0200	[thread overview]
Message-ID: <3CEB781F.79F063D0@wolfhill.cz> (raw)
In-Reply-To: 18394.1022048830@redhat.com

I have also reported our oops messages few day ago. I traced down the
functions and I got from JFFS2 to MTD. The problem is somewhere in
cfi_amdstd_write(). The problem appears only if there are 2 consecutive
writes (immediately one after another).

This happens regulary when GC tries to reclaim some space. The kernel
dies when GC calls mtd_fake_writev()...

Now I tried the latest version of cfi_cmdset_0002.c (v1.55). The kernel
oops messages are gone, but now I get:

Last[2] is ffff, datum is 1985
Write of 50 bytes at 0x00052438 failed. returned 0, retlen 0
Not marking the space at 0x00052438 as dirty because the flash driver
returned retlen zero
jffs2_write_dirent in garbage_collect_dirent failed: -5

Ales


David Woodhouse wrote:
> 
> fgiasson@mediatrix.com said:
> > The 'called while erasing!' message means that I put a trace in the
> > map driver write16() function to tell me if write16()is called when a
> > global variable is set.  This global variable indicates that
> > do_erase_oneword has sent the erase sector command and is currently
> > polling for the erase operation to complete.
> 
> OK. We already fixed one of these by disabling fast programming mode, after
> you pointed out that it was sending the unlock command without paying due
> attention to the state machine. If you're definitely using v1.55 of
> cfi_cmdset_0002.c, can you put a BUG() in the mtxmap_write16() call just
> after it prints the 'called while erasing!' message, and we'll see where
> it's being called _from_.
> 
> --
> dwmw2
> 
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/

  reply	other threads:[~2002-05-22 10:49 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-22  2:03 Kernel oops after sync command in jffs2 Frederic Giasson
2002-05-22  6:27 ` David Woodhouse
2002-05-22 10:51   ` Ales Makarov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-05-23 15:36 Frederic Giasson
2002-05-22 14:52 Frederic Giasson
2002-05-23 15:34 ` Ales Makarov
2002-05-21 18:54 Frederic Giasson
2002-05-21 21:07 ` David Woodhouse
2002-05-17 18:04 Frederic Giasson
2002-05-18  7:43 ` David Woodhouse
2002-05-16 16:04 Frederic Giasson
2002-05-16 17:34 ` 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=3CEB781F.79F063D0@wolfhill.cz \
    --to=ales.makarov@wolfhill.cz \
    --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