From: Scott Wood <scottwood@freescale.com>
To: <Sergej.Stepanov@ids.de>
Cc: linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH] Fixing the garbage collector problem after NAND-flash image record in u-boot
Date: Tue, 23 Nov 2010 10:50:27 -0600 [thread overview]
Message-ID: <20101123105027.13d0a80d@udp111988uds.am.freescale.net> (raw)
In-Reply-To: <4206182445660643B9AEB8D4E55BBD0A106A0AA938@HERMES2>
On Tue, 23 Nov 2010 16:10:54 +0100
<Sergej.Stepanov@ids.de> wrote:
> This patch should fix the following problem:
> 1. the jffs2-image update in the u-boot was ok
> 2. first restart and first mount of the NAND-flash-partition was also ok
> 3. before the restart of controller there are no any activity on NAND-flash except of the jffs2_gcd_mtdX-process ...
> 4. BUT after the second restart the NAND-flash-partition could not be really used after the second mount,
> dmesg filled with messages:
> ...
> jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x03ce0000: 0xc0ff instead
> jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x03d00000: 0xc0ff instead
> ....
> Just for for info: the behaviour observed on mpc8313-based board.
> The only activity on NAND-flash was the garbage collector process, that looks for CLEANMARKER-nodes
>
> Signed-off-by: Sergej Stepanov <Sergej.Stepanov@ids.de>
> Cc: Rolf Riehle <Rolf.Riehle@ids.de>
> --
Acked-by: Scott Wood <scottwood@freescale.com>
>
> diff --git a/drivers/mtd/nand/fsl_elbc_nand.c b/drivers/mtd/nand/fsl_elbc_nand.c
> index c141b07..775c2f5 100644
> --- a/drivers/mtd/nand/fsl_elbc_nand.c
> +++ b/drivers/mtd/nand/fsl_elbc_nand.c
> @@ -388,6 +388,7 @@ static void fsl_elbc_cmdfunc(struct mtd_info *mtd, unsigned int command,
> "page_addr: 0x%x, column: 0x%x.\n",
> page_addr, column);
>
> + elbc_fcm_ctrl->column = column;
> elbc_fcm_ctrl->use_mdr = 1;
This was broken by commit 3ab8f2a2e7011c5e83363b42950757e46ef06824
That commit also removed the setting of ctrl->oob to 0, which should
also be restored.
-Scott
next prev parent reply other threads:[~2010-11-23 16:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-23 15:10 [PATCH] Fixing the garbage collector problem after NAND-flash image record in u-boot Sergej.Stepanov
2010-11-23 16:50 ` Scott Wood [this message]
[not found] ` <4206182445660643B9AEB8D4E55BBD0A106A0BB1F3@HERMES2>
[not found] ` <20101123111853.23481aa7@udp111988uds.am.freescale.net>
2010-11-23 17:29 ` Resend: " Sergej.Stepanov
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=20101123105027.13d0a80d@udp111988uds.am.freescale.net \
--to=scottwood@freescale.com \
--cc=Sergej.Stepanov@ids.de \
--cc=linuxppc-dev@lists.ozlabs.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