From: Artem Bityutskiy <dedekind@infradead.org>
To: Ivan Kuten <ivan.kuten@promwad.com>
Cc: david-b@pacbell.net, linux-mtd@lists.infradead.org,
Haavard Skinnemoen <hskinnemoen@atmel.com>,
Vadim Yatsenko <Vadim.Yatsenko@malva.ua>
Subject: Re: Some issues with the AT91 dataflash driver...
Date: Tue, 29 May 2007 22:42:43 +0300 [thread overview]
Message-ID: <1180467763.3642.125.camel@sauron> (raw)
In-Reply-To: <20070528212513.5086bfac@newbox>
On Mon, 2007-05-28 at 21:25 +0300, Ivan Kuten wrote:
> On Mon, 28 May 2007 20:44:40 +0300
> Artem Bityutskiy wrote:
>
> > On Sun, 2007-05-27 at 21:12 +0200, Haavard Skinnemoen wrote:
> > > On Sun, 27 May 2007 20:08:53 +0200
> > > Haavard Skinnemoen <hskinnemoen@atmel.com> wrote:
> > >
> > > > Now that I've got the CRC errors sorted out, I'll try bisecting it.
> > >
> > > Done. git-bisect blames this commit:
> >
> > Hi,
> >
> > whats mtd->writesize of the flash? Do you have the debugging output log?
> >
>
> MTD_DEBUG=3 enabled:
Sorry for long delay. I is not quite what I asked, but anyway, may you
pleas apply the below patch, reproduce the problem and send me the
result.
Please, do this faster if you can because I will need to disappear for
about 2 weeks in a day. I will try to figure out what is going wrong,
thanks.
diff --git a/fs/jffs2/readinode.c b/fs/jffs2/readinode.c
index 4884d5e..c629c54 100644
--- a/fs/jffs2/readinode.c
+++ b/fs/jffs2/readinode.c
@@ -761,7 +761,7 @@ static inline int read_dnode(struct jffs2_sb_info *c, struct jffs2_raw_node_ref
len = min_t(uint32_t, rdlen - sizeof(*rd), csize);
tn->partial_crc = crc32(0, buf, len);
- dbg_readinode("Calculates CRC (%#08x) for %d bytes, csize %d\n", tn->partial_crc, len, csize);
+printk("Calculates CRC (%#08x) for %d bytes, csize %d\n", tn->partial_crc, len, csize);
/* If we actually calculated the whole data CRC
* and it is wrong, drop the node. */
@@ -780,7 +780,7 @@ static inline int read_dnode(struct jffs2_sb_info *c, struct jffs2_raw_node_ref
*/
struct jffs2_eraseblock *jeb;
- dbg_readinode("the node has no data.\n");
+printk("the node has no data.\n");
jeb = &c->blocks[ref->flash_offset / c->sector_size];
len = ref_totlen(c, jeb, ref);
@@ -919,7 +919,7 @@ static int read_more(struct jffs2_sb_info *c, struct jffs2_raw_node_ref *ref,
/* We need to read more data */
offs = ref_offset(ref) + *rdlen;
- dbg_readinode("read more %d bytes\n", to_read);
+printk("read more %d bytes, needed_len %d\n", to_read, needed_len);
err = jffs2_flash_read(c, offs, to_read, &retlen, buf + *rdlen);
if (err) {
@@ -1004,7 +1004,7 @@ static int jffs2_get_inode_nodes(struct jffs2_sb_info *c, struct jffs2_inode_inf
len = end - ref_offset(ref);
}
- dbg_readinode("read %d bytes at %#08x(%d).\n", len, ref_offset(ref), ref_flags(ref));
+printk("read %d bytes at %#08x(%d), wbuf sz %d\n", len, ref_offset(ref), ref_flags(ref), c->wbuf_pagesize);
/* FIXME: point() */
err = jffs2_flash_read(c, ref_offset(ref), len, &retlen, buf);
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
next prev parent reply other threads:[~2007-05-29 19:43 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <465431DA.5030500@atmel.com>
[not found] ` <1179992308.13101.16.camel@fuzzie.sanpeople.com>
[not found] ` <46558893.1020802@comcast.net>
[not found] ` <1180010988.13101.103.camel@fuzzie.sanpeople.com>
[not found] ` <012d01c79e06$66823470$3204200a@head.local>
[not found] ` <20070524164654.3f106ead@newbox>
[not found] ` <20070524181437.01550127@newbox>
2007-05-27 18:08 ` Some issues with the AT91 dataflash driver Haavard Skinnemoen
2007-05-27 19:01 ` Ivan Kuten
2007-05-27 19:12 ` Haavard Skinnemoen
2007-05-28 17:44 ` Artem Bityutskiy
2007-05-28 18:07 ` Ivan Kuten
2007-05-28 18:25 ` Ivan Kuten
2007-05-29 19:42 ` Artem Bityutskiy [this message]
2007-05-29 20:27 ` Haavard Skinnemoen
2007-05-30 7:13 ` Artem Bityutskiy
2007-05-30 8:38 ` Haavard Skinnemoen
2007-05-30 8:45 ` Artem Bityutskiy
2007-05-30 10:57 ` Ivan Kuten
2007-05-29 16:20 ` David Brownell
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=1180467763.3642.125.camel@sauron \
--to=dedekind@infradead.org \
--cc=Vadim.Yatsenko@malva.ua \
--cc=david-b@pacbell.net \
--cc=hskinnemoen@atmel.com \
--cc=ivan.kuten@promwad.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 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.