From: Hans de Goede <hdegoede@redhat.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [linux-sunxi] [PATCH 0/7] spl: nand: sunxi: implement auto-detection
Date: Wed, 25 May 2016 17:40:46 +0200 [thread overview]
Message-ID: <feb0edb0-25f3-17d7-e7da-3f8ff523b0d4@redhat.com> (raw)
In-Reply-To: <1463752551-22553-1-git-send-email-boris.brezillon@free-electrons.com>
Hi,
On 20-05-16 15:55, Boris Brezillon wrote:
> Hello,
>
> This patch series aims at adding support for NAND auto-detection to
> the sunxi SPL NAND driver.
>
> As explained in patch 7, this auto-detection is nothing more than a
> dumb "trial and error" logic, but it allows one to use the same
> SPL binary for all kind of sunxi boards booting from NAND.
> Of course, this approach might increase a bit the boot-time, but this
> is something we could address by adding a "default NAND config",
> that would be tested before launching the auto-detection procedure.
>
> Now let's detail a bit what's inside this patch-set.
> Patch 1 is a cleanup removing support for BootROM configs, which in
> my opinion are not only inefficient but also not reliable (at least
> the current implementation does not guarantee that you'll be using
> the correct configuration when reading the NAND).
>
> Piotr, Hans, any comment?
> Is this a real problem if we get rid of syndrome/BootROM configs?
> I mean, are you really using this mode? If that's not the case, I'd
> prefer dropping support for this feature. ITOH, if you really
> need this mode, then I'd recommend adding Kconfig options to specify
> the exact config to be used rather than randomly testing configs
> (see my explanation in patch 1).
>
> Patch 2 is renaming the SYS_NAND_U_BOOT_OFFS Kconfig option to make it
> usable on all platforms (not only sunxi) and avoid conflicts when
> one board is defining CONFIG_SYS_NAND_U_BOOT_OFFS in its
> include/configs/<board>.h header.
>
> Patch 3 is adding generic support for redundant u-boot images, which
> is particularly useful on modern NANDs where corruptions is likely to
> happen.
> Patch 4 is just getting rid of the open-coded version of redundant
> u-boot image support in the sunxi NAND driver.
>
> Patch 5 is a simple improvement of the NAND controller status polling
> loop, which is really important to make the "trial and error"
> approach efficient (we try to limit the impact on boot-time here).
> Patch 6 and 7 are implementing the auto-detection logic.
>
>
> Best Regards,
>
> Boris
Thanks for your work on this, from a sunxi pov this series
looks good and is:
Acked-by: Hans de Goede <hdegoede@redhat.com>
Scott, are you ok with the generic (spl_nand.c) changes in
this series? Assuming yes, then lets merge this. I suggest
taking the entire series upstream through either your tree
or the u-boot-sunxi tree let me know how you want to handle
this.
Regards,
Hans
>
> Boris Brezillon (7):
> spl: nand: sunxi: remove support for so-called 'syndrome' mode
> spl: nand: rename the SYS_NAND_U_BOOT_OFFS Kconfig option
> spl: nand: support redundant u-boot image
> spl: nand: sunxi: stop guessing the redundant u-boot offset
> spl: nand: sunxi: rework status polling loop
> spl: nand: sunxi: split 'load page' and 'read page' logic
> spl: nand: sunxi: add support for NAND config auto-detection
>
> common/spl/spl_nand.c | 12 +
> drivers/mtd/nand/Kconfig | 15 +-
> drivers/mtd/nand/sunxi_nand_spl.c | 480 ++++++++++++++++++++++++--------------
> 3 files changed, 332 insertions(+), 175 deletions(-)
>
prev parent reply other threads:[~2016-05-25 15:40 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-20 13:55 [U-Boot] [PATCH 0/7] spl: nand: sunxi: implement auto-detection Boris Brezillon
2016-05-20 13:55 ` [U-Boot] [PATCH 1/7] spl: nand: sunxi: remove support for so-called 'syndrome' mode Boris Brezillon
2016-05-20 13:55 ` [U-Boot] [PATCH 2/7] spl: nand: rename the SYS_NAND_U_BOOT_OFFS Kconfig option Boris Brezillon
2016-05-20 13:55 ` [U-Boot] [PATCH 3/7] spl: nand: support redundant u-boot image Boris Brezillon
2016-05-20 13:55 ` [U-Boot] [PATCH 4/7] spl: nand: sunxi: stop guessing the redundant u-boot offset Boris Brezillon
2016-05-20 13:55 ` [U-Boot] [PATCH 5/7] spl: nand: sunxi: rework status polling loop Boris Brezillon
2016-05-20 13:55 ` [U-Boot] [PATCH 6/7] spl: nand: sunxi: split 'load page' and 'read page' logic Boris Brezillon
2016-05-20 13:55 ` [U-Boot] [PATCH 7/7] spl: nand: sunxi: add support for NAND config auto-detection Boris Brezillon
2016-06-01 11:04 ` Boris Brezillon
2016-05-25 15:40 ` Hans de Goede [this message]
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=feb0edb0-25f3-17d7-e7da-3f8ff523b0d4@redhat.com \
--to=hdegoede@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox