| Message ID | 20220515093534.1737172-1-michael@amarulasolutions.com |
|---|---|
| Headers |
Return-Path: <linux-amarula+bncBCXK73FY3AFRB3ESQOKAMGQE3DW523A@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id AA3D03F18B for <linux-amarula@patchwork.amarulasolutions.com>; Sun, 15 May 2022 11:35:40 +0200 (CEST) Received: by mail-ej1-f71.google.com with SMTP id gn26-20020a1709070d1a00b006f453043956sf4956720ejc.15 for <linux-amarula@patchwork.amarulasolutions.com>; Sun, 15 May 2022 02:35:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1652607340; cv=pass; d=google.com; s=arc-20160816; b=gey3wDz8E6DwSIUymfhYRT/77lZO9zuMXVRVjJpxraRERhlbsI/VMgQSCdzRDJqMIQ xBoc4pxZZvR+yjFVDzZ38miFPZ0g7PVXuoX1ZX2Q2mi48+9QBsXkPl6jsZMcTncrXXBv rG+ZaMIWw7mZgRJmSxiKVOYoplkYft7pwTU5rCNoIgWpAllsHaTMjnCWSxz5eeCUJie8 8uYPYq7Bg65vZXPq/zIa64mgyKaXJY80desMguJbMj5vlmXXvfRbB5L4vjFxLaBtbggJ /emvymN6b0+Rma1Tt8gel9wGiezoKJ3SETv+YIcn55fwRUl/yKuhhaGuLZYeR9I3QdIa lXwg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=Hp0g/xWP95wSRFxdcf48L9KDH9O6fa0ob37azo8Ye2Q=; b=ijedOAGUiRxUzgVtqycYwbjPLhEMSqytEXmCCAMH3aUI7oYwwV7a+wEyE6pit1S+AZ GyosZ96O3yCmXiiGCUCSNo87p0BiXjJ+vaXzIQIR5pjsaBrxTIYhYgBEsd2kJDdo2Y5j GZIEAufZmnXPjiwxKSU4zfrSI+oA1Ecw7zvRh6nahNSR7O8XSYa1EOcMZbnihQjiO1xp 4rLbh4crT5xZEzvk7/b592h82Dsz7Mh/odNIQvikzoBplFTahoxG4uk2HkrbX/vCJRyH 3Y/47KyoZONJuQ93fmYz63sLghJXoNaNwifkCK9JptozZ3GBFfGcraUWnIL4Kc45TBlf jRbw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IvDipSOc; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=Hp0g/xWP95wSRFxdcf48L9KDH9O6fa0ob37azo8Ye2Q=; b=NX0MQmt0YeqP0L2Guhq5ZCh+1Hpu3wKNHaUtiTn/yxX5KHfc04YzKWRoznf9eRzo8u PBKy6kctCLBq+3kCqyr4wN/hLsE+4388vKi+Gq15792yAM23eKFckvfybk/GHnOilq2M dzGLVhtwjB6R4IamBBgsEM8pJDceyr90clX3A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-unsubscribe; bh=Hp0g/xWP95wSRFxdcf48L9KDH9O6fa0ob37azo8Ye2Q=; b=hJKrAGZBXXHc8zq4RpKfWV8L2OEbds7P9dqBZwhYYYHk36woX1SZRxPpm5yvbeko6P vjXeCcs0xN3jUxDTtDjoVCZXjntQNE7xIR7pr3lJctfolv2xNKzoOqTDwsB0ha0d8zw9 PeMlexkWcMzDpayggCjbzT3yPu64rdZVsl9YGtsNmqBviNm0abaRUEPYJ5ddEVUbM5rf u3H69/6mxyqcYDfWHM5jsmXWiwtsd/fynufoC+TwKU72ZqLJ/9xXgXW+gmkblLlPC2VD OaCl++j/CRYw4+AZyKkbF8hFgnK15KMKs+qIyMaQWSiCTt90KE75sra0xCEETyLnkNlP ugnw== X-Gm-Message-State: AOAM5309viqXPwehtsTTDKML/XgxVOGPayCY8VjRCTUf8p+bZ2QW8yod 6K79ITlO3MJy9PHC8ujjAqOLt7Wd X-Google-Smtp-Source: ABdhPJwggrchHCLcTlgBdb87Ml1AnakFFLOId7W6XhhlVXjeQpc0e1dxxgPWqR+rdyBCoiXzhgaPog== X-Received: by 2002:a17:906:7954:b0:6f3:c1c8:f814 with SMTP id l20-20020a170906795400b006f3c1c8f814mr11511213ejo.230.1652607340341; Sun, 15 May 2022 02:35:40 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:907:3e11:b0:6f5:1321:37ec with SMTP id hp17-20020a1709073e1100b006f5132137ecls5989764ejc.11.gmail; Sun, 15 May 2022 02:35:39 -0700 (PDT) X-Received: by 2002:a17:907:1b25:b0:6da:8206:fc56 with SMTP id mp37-20020a1709071b2500b006da8206fc56mr11052580ejc.81.1652607339006; Sun, 15 May 2022 02:35:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652607339; cv=none; d=google.com; s=arc-20160816; b=z5gie5R0ZNqheDip9czJiT47A2kQCPeJIToBcrzxtEQd7p3S3CNBTj4DJpqEw0b4jc auxj4uu71ze6i7AHKltMseFxCTBYpPiTUhujYltuF+vZE9OsXKRKyNtm4YKptFZtlqhp rueL8qKEYWH7b29QiwoNqQTD6LpKx81SCnnnP1m+nXvRD6Wcgd8XaqbEgVu6kkQ+dbqP Fr+5rKk9Lr1VbRILfX8AIgYnomDYs8t2PJ7lazNKcvD8rO9/kIAutiy2Fm9Gu+KV4tIB vnwVBrTKzgjGfv5TnVc9kc4q1Rew8s/77Ei4Jt/qQfNwjubTWOfEqcWoykszdgU87wV8 M0rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=PYmK0S+t3O0g8+3ntQsGqbsf9tS2JzNFcChqJrfJbxU=; b=Cskvzv+5iMHOqsJg+eXvEqweCiomn0+pZA044xhCJCdGxR8g5BDZcBIhEi9q0zlfpC 62ZRvxnaib2iMMJJY78IyQe7s6enqfy4+3JQuSUhhM2N1qSstdjtGOhLcTahX2EQtO9v CUbbpyNoRtRZXepApKk1MX5axbRpS8N9bVL+sH0g1aITJ8qzj/QWL7WqFW9oM6XjtHYB z0tKlr5mLTD69HJB1Ao4mMPjuvFO6Am8wiamWXy3NU8BZfdGE73yUh3Fe10wRRsM8BLz YYIRbi+uXezrltpu3B6+pIothyupyGrBfOLZLHRmlb2kxkNuudaubZhiJ72x7kx9MAr3 dERA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IvDipSOc; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id g39-20020a056402322700b00425ab55fe0bsor3551609eda.22.2022.05.15.02.35.38 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Sun, 15 May 2022 02:35:38 -0700 (PDT) Received-SPF: pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a05:6402:1941:b0:413:2822:9c8 with SMTP id f1-20020a056402194100b00413282209c8mr7574131edz.13.1652607338729; Sun, 15 May 2022 02:35:38 -0700 (PDT) Received: from localhost.localdomain (mob-109-118-140-232.net.vodafone.it. [109.118.140.232]) by smtp.gmail.com with ESMTPSA id p6-20020a17090664c600b006f3ef214de8sm2516582ejn.78.2022.05.15.02.35.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 May 2022 02:35:38 -0700 (PDT) From: Michael Trimarchi <michael@amarulasolutions.com> To: Han Xu <han.xu@nxp.com>, U-Boot-Denx <u-boot@lists.denx.de> Cc: Ye Li <ye.li@nxp.com>, Stefano Babic <sbabic@denx.de>, Miquel Raynal <miquel.raynal@bootlin.com>, Fabio Estevam <festevam@denx.de>, Dario Binacchi <dario.binacchi@amarulasolutions.com>, Sean Anderson <sean.anderson@seco.com>, linux-amarula@amarulasolutions.com, Jagan Teki <jagan@amarulasolutions.com>, Ariel D'Alessandro <ariel.dalessandro@collabora.com>, Tom Rini <trini@konsulko.com> Subject: [PATCH V4 0/5] MXS nand fixes in SPL Date: Sun, 15 May 2022 11:35:29 +0200 Message-Id: <20220515093534.1737172-1-michael@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Original-Sender: michael@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IvDipSOc; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
| Series |
MXS nand fixes in SPL
|
|
Message
Michael Trimarchi
May 15, 2022, 9:35 a.m. UTC
Those patches come after some testing of failing in factory on some unit. We found out that the bootrom imx loader was not able to handling badblock. This can be a limit of the implementation right now in imx8mn. Anyway not all the imx platform has the support of this loader. I found some problems on the implementation so I have fixed it up according the experience of Sitara (coming from Dario). I tested only using a Fit Image as a flash container. This version add in the series the fix of cmd_nandbcb and the fix of spl_nand load. I can imagine that a lot of boards and users are affected. I have started to backport this changes in some older uboot and adapt it. Move BSH board using the spl loading instead the romapi Michael Trimarchi (5): nand: raw: mxs_nand: Fix specific hook registration mtd: nand: mxs_nand_spl: Fix bad block skipping arm: mach-imx: cmd_nandbcb fix bad block handling spl: spl_nand: Fix bad block handling in fitImage board: bsh: Switch to nand spl load instead of romapi arch/arm/mach-imx/cmd_nandbcb.c | 21 +++---- board/bsh/imx8mn_smm_s2/spl.c | 3 + common/spl/spl_nand.c | 5 +- drivers/mtd/nand/raw/mxs_nand.c | 32 +++++----- drivers/mtd/nand/raw/mxs_nand_spl.c | 90 ++++++++++++++++------------- 5 files changed, 76 insertions(+), 75 deletions(-)
Comments
On Sun, May 15, 2022 at 6:35 AM Michael Trimarchi <michael@amarulasolutions.com> wrote: > > Those patches come after some testing of failing in factory on some > unit. We found out that the bootrom imx loader was not able to handling > badblock. This can be a limit of the implementation right now in imx8mn. > Anyway not all the imx platform has the support of this loader. I found > some problems on the implementation so I have fixed it up according the > experience of Sitara (coming from Dario). I tested only using a Fit Image as a flash > container. This version add in the series the fix of cmd_nandbcb and > the fix of spl_nand load. I can imagine that a lot of boards and users > are affected. I have started to backport this changes in some older > uboot and adapt it. Move BSH board using the spl loading instead > the romapi > > Michael Trimarchi (5): > nand: raw: mxs_nand: Fix specific hook registration > mtd: nand: mxs_nand_spl: Fix bad block skipping > arm: mach-imx: cmd_nandbcb fix bad block handling > spl: spl_nand: Fix bad block handling in fitImage > board: bsh: Switch to nand spl load instead of romapi For the series: Reviewed-by: Fabio Estevam <festevam@denx.de>