All of lore.kernel.org
 help / color / mirror / Atom feed
From: Troy Kisky <troy.kisky@boundarydevices.com>
To: Richard Genoud <richard.genoud@gmail.com>
Cc: David Brownell <david-b@pacbell.net>,
	Nicolas Ferre <nicolas.ferre@rfo.atmel.com>,
	Haavard Skinnemoen <haavard.skinnemoen@atmel.com>,
	linux-mtd@lists.infradead.org
Subject: Re: [PATCH 3/5] mtd: nand: atmel: use default ecc layout
Date: Fri, 15 May 2009 15:15:07 -0700	[thread overview]
Message-ID: <4A0DE96B.4040109@boundarydevices.com> (raw)
In-Reply-To: <80b317760905151257l4c80eed3l862cb8245b5af194@mail.gmail.com>

Richard Genoud wrote:
> 2009/5/15 Richard Genoud <richard.genoud@gmail.com>:
>> 2009/5/14 Troy Kisky <troy.kisky@boundarydevices.com>:
>>> Haavard Skinnemoen wrote:
>>>> I also suspect it will break hardware ECC. The ECC controller is a bit
>>>> picky about the OOB layout, which is why the defaults were overriden in
>>>> the first place.
>>>>
>>>> Haavard
> 
> Looking at the first 2 patches on nand_base.c, it seems that the HW
> ECC layout for small pages will be the same (ecc at offsets 0,1,2,3)
> wich is good (because it's the only possible place).
> 
> For large pages, the HW ECC layout will change from [60,61,62,63] to
> [2,3,4,5]. The ecc will still be correct, but as david said, the
> compatibility won't.
> 
> richard.

I think you are wrong. It is definitely not what I intended.
The logic should say, "If I can place the ecc at the beginning I will,
otherwise, I will place it at the end." With the bad block marker
at 0, it should choose the end.


Troy

  reply	other threads:[~2009-05-15 22:15 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1242270008-1552-1-git-send-email-troy.kisky@boundarydevices.com>
2009-05-14  4:42 ` [PATCH 1/5] mtd: nand: move layout structure into nand_ecc_ctrl David Brownell
2009-05-14 17:53   ` Troy Kisky
2009-05-14 18:08     ` David Brownell
     [not found] ` <1242270008-1552-2-git-send-email-troy.kisky@boundarydevices.com>
2009-05-14  5:10   ` [PATCH 2/5] mtd: nand: Calculate better default ecc layout David Brownell
2009-05-14 17:59     ` Troy Kisky
     [not found]   ` <1242270008-1552-3-git-send-email-troy.kisky@boundarydevices.com>
2009-05-14  5:12     ` [PATCH 3/5] mtd: nand: atmel: use " David Brownell
2009-05-14  8:23       ` Haavard Skinnemoen
2009-05-14 18:08         ` Troy Kisky
2009-05-15  7:26           ` Richard Genoud
2009-05-15 19:57             ` Richard Genoud
2009-05-15 22:15               ` Troy Kisky [this message]
2009-05-15 22:38                 ` Richard Genoud
2009-05-15 23:04                   ` Troy Kisky
2009-05-14 18:04       ` Troy Kisky
2009-05-20 15:19       ` Nicolas Ferre
2009-05-20 18:28         ` Troy Kisky
     [not found]     ` <1242270008-1552-4-git-send-email-troy.kisky@boundarydevices.com>
2009-05-14  5:18       ` [PATCH 4/5] mtd: nand: cafe_nand: " David Brownell
2009-05-14 21:18         ` Troy Kisky

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=4A0DE96B.4040109@boundarydevices.com \
    --to=troy.kisky@boundarydevices.com \
    --cc=david-b@pacbell.net \
    --cc=haavard.skinnemoen@atmel.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=nicolas.ferre@rfo.atmel.com \
    --cc=richard.genoud@gmail.com \
    /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.