All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Andreas Bießmann" <andreas.devel@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC/PATCH 0/4] BCH8 support for OMAP3
Date: Tue, 02 Apr 2013 10:49:21 +0200	[thread overview]
Message-ID: <515A9B91.2050005@gmail.com> (raw)
In-Reply-To: <20130328142136.GC5711@bill-the-cat>

Dear Tom Rini,

On 03/28/2013 03:21 PM, Tom Rini wrote:
> On Thu, Mar 28, 2013 at 11:49:54AM +0100, Andreas Bie??mann wrote:
> 
>> On 11/23/2012 04:14 PM, Andreas Bie??mann wrote:
>>> This RFC series implements BCH8 for OMAP3 as provided by linux kernel in commit
>>> 0e618ef0a6a33cf7ef96c2c824402088dd8ef48c.
>>> This series is heavily influenced by Ilyas series 'NAND support for AM33XX'
>>> thus could share some code.
>>
>> Any comments on that series? I would appreciate to get the BCH8 support
>> in for at least the tricorder board.
> 
> OK, so, some comments:
> - We should pull the gpmc structs out of arch-*/cpu.h and into
>   <asm/omap_gpmc.h> which also means merging
>   <asm/arch-am33xx/omap_gpmc.h> and <asm/arch-omap3/omap_gpmc.h> but I
>   suspect that's easy.

Will do so. But we will need some asm/arch/omap_gpmc.h defining the
differences between both systems (ELM based BCH8 has another OOB
footprint than HW assisted BCH8 on omap3).

> - In terms of 'nandecc' command, I don't like breaking existing
>   setup/scripts, so my first thought is "nandecc hw" -> 1bit, "nandecc
>   sw" -> sw (both just like today), "nandecc hw bch8" -> bch8 and
>   "nandecc hw hamming" -> 1bit, which leaves room down the line for
>   someone else to add nandecc hw bch4 -> bch4 (which is possible and I
>   know exists in custom solutions somewhere).

Sounds good for me. We will end up with 'nandecc hw' -> bch8 on am33xx
and 'nandecc hw' -> hamming on omap3 based boards. To enable bch8
explicitly on omap3 based devices we have the 'nandecc hw bch8'.
I will add another patch to the series changing the interface from
omap_nand_switch_ecc(int32) to omap_nand_switch_ecc(bool hw, uint32
eccbits) (or something like this).

BTW: Has anyone seen that ELM based bch8 on am33xx can not be chosen via
nandecc command?

>>> I have managed to load kernel from an ubifs written by the kernel driver, but is
>>> far away from tested thoroughly.
>>
>> We used that patchset for a while in-house and could not find obvious
>> issues. However we need to hack the SPL a bit to get the bigger
>> footprint into SRAM with 2013.01.
> 
> What exactly did you do? 

Well, disabled FAT for this specific build ...

> We _should_ already be taking up all of SRAM
> with a few kb saved off for stack.

We take 8 kB for stack in most configs on omap3, thus having 54 kB for
.text and .*data. Unfortunately the HW assisted BCH on omap3 based
devices require the bch library to decode ECC, this will grow the .text
+ .*data sections about 9k in sum (AFAIR, I've measured it some day).

>  We might be able to get away with
> less stack, but we'd need to check that a bit with the .su files.

Changing space for stack to 7 kB worked out with all features in SPL
(BCH + FAT for my build), this needs some testing though.

Best regards

Andreas Bie?mann

  reply	other threads:[~2013-04-02  8:49 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-23 15:14 [U-Boot] [RFC/PATCH 0/4] BCH8 support for OMAP3 Andreas Bießmann
2012-11-23 15:14 ` [U-Boot] [RFC/PATCH 1/4] omap3/cpu.h: add BCH support Andreas Bießmann
2012-11-23 15:14 ` [U-Boot] [RFC/PATCH 2/4] omap3/omap_gpmc.h: add ooblayout for BCH8 as in kernel Andreas Bießmann
2012-11-23 15:14 ` [U-Boot] [RFC/PATCH 3/4] omap_gpmc: add support for hw assisted BCH8 Andreas Bießmann
2012-11-26 21:09   ` Scott Wood
2012-11-23 15:14 ` [U-Boot] [RFC/PATCH 4/4] tricorder: enable hw assisted BCH8 in SPL and u-boot Andreas Bießmann
2013-03-28 10:49 ` [U-Boot] [RFC/PATCH 0/4] BCH8 support for OMAP3 Andreas Bießmann
2013-03-28 14:21   ` Tom Rini
2013-04-02  8:49     ` Andreas Bießmann [this message]
2013-04-02 16:13       ` Tom Rini
2013-04-02 16:05 ` [U-Boot] [PATCH v2 1/6] omap3/cpu.h: add BCH support Andreas Bießmann
2013-04-02 16:05   ` [U-Boot] [PATCH v2 2/6] asm/omap_gpmc.h: consolidate common defines Andreas Bießmann
2013-04-02 21:19     ` Tom Rini
2013-04-02 16:05   ` [U-Boot] [PATCH v2 3/6] omap3/omap_gpmc.h: add ooblayout for BCH8 as in kernel Andreas Bießmann
2013-04-02 21:19     ` Tom Rini
2013-04-02 16:05   ` [U-Boot] [PATCH v2 4/6] omap_gpmc: change nandecc command Andreas Bießmann
2013-04-02 21:19     ` Tom Rini
2013-04-03 14:50     ` [U-Boot] [PATCH v3 " Andreas Bießmann
2013-04-03 14:50       ` [U-Boot] [PATCH v3 5/6] omap_gpmc: add support for hw assisted BCH8 Andreas Bießmann
2013-04-05  8:13         ` Thomas Weber
2013-04-05  9:15           ` Andreas Bießmann
2013-04-05 11:44         ` Thomas Weber
2013-04-05 13:42           ` Andreas Bießmann
2013-04-05 14:55           ` [U-Boot] [PATCH v4 " Andreas Bießmann
2013-04-05  9:52       ` [U-Boot] [PATCH v4 4/6] omap_gpmc: change nandecc command Andreas Bießmann
2013-04-05 11:48         ` Thomas Weber
2013-04-05 13:39           ` Andreas Bießmann
2013-04-02 16:05   ` [U-Boot] [PATCH v2 5/6] omap_gpmc: add support for hw assisted BCH8 Andreas Bießmann
2013-04-02 21:19     ` Tom Rini
2013-04-02 16:05   ` [U-Boot] [PATCH v2 6/6] tricorder: enable hw assisted BCH8 in SPL and u-boot Andreas Bießmann
2013-04-02 21:19   ` [U-Boot] [PATCH v2 1/6] omap3/cpu.h: add BCH support Tom Rini
2013-04-08 16:58   ` Tom Rini

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=515A9B91.2050005@gmail.com \
    --to=andreas.devel@googlemail.com \
    --cc=u-boot@lists.denx.de \
    /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.