[V3,0/5] MXS nand fixes in SPL
| Message ID | 20220515092538.1736154-1-michael@amarulasolutions.com |
|---|---|
| Headers |
Return-Path: <linux-amarula+bncBCXK73FY3AFRBF4OQOKAMGQE3M7RWAI@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 84F103F18B for <linux-amarula@patchwork.amarulasolutions.com>; Sun, 15 May 2022 11:25:44 +0200 (CEST) Received: by mail-ed1-f71.google.com with SMTP id b14-20020a05640202ce00b0042aa312ff51sf1264833edx.18 for <linux-amarula@patchwork.amarulasolutions.com>; Sun, 15 May 2022 02:25:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1652606744; cv=pass; d=google.com; s=arc-20160816; b=tNDQsD92I1TTTBF308hYF82eP5EadB+3YIzP0OtbGmoty6yf7uIyLBvfW6upZPeQrq qNlpLnHe1xncdxWU7iqY2eL6zYkxQw2XNa13TmqJyJa+teVwpDRZk2AMt+pVNs9RonOj 3Wnwv+I4d3+jeVykbziTf8lHlj/spUtzDrOxZSqHBdU2OJguRcuFi6SLwSFo7dRfEHBJ xsouS7nrjzd9ZaDmI5QV7ESfUyVzaw6NhieG6bdyGnJbD1VANl4OPDGVks4V8NHwwyqg MYpbv3TTS0ZeP4cBq5PSvAnmi6heDPjvj8Kab+3NBPcMnbrW0Lo6i4xthZDIcJt22GKp gJIg== 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=qc8cml9aPV7KMj/0ShExKMuL3QDMXKPIoyzWNyDEH2gksuWx2cmWrW9uf7ahee1Tky O1Gt8BR7bjzePUxv4MFxkklVOZajj6rscVZ7Cy/0vtYv6KfFlNMJP54/mfWBNUCCh4Qh T+hxhx/uctEafcM7NHm8dBKpycjK77x6DPZk0Y5mYxOxeoElNb2vzg4Gs0v3PfJWtB/B A3jP/X2npGDd1XFlffrfRILV/9GDv2MMFElDIAxk1hhL48xIoYc+K9nTrSkeuc9HPYK0 TsLxY2S4MTX1MkxqmYWewTz15jnqxzNOWhWOL24UP7QPDfa3PhpoAFDmh2jNV3Eaq+wJ JcHQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=fAgYF3EI; 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=hO7iQtWmGvDOGWT5PsOKQGSV9J5lX+V7Xp2t9CNuaaYr6oWv05GmRjtI/Bh4tgg/iM qUlOydQb8eVjPY6bz8Ohi4naYV8D9cS/hZnRY2hFNtcchHLpXPA4D3IYpSm9FyQV99s7 Y0yEfCM8Mcwconj3UiL5vheRDYVNNoqcZMklY= 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=0IK/f6HnNRMd7ZjCitzM6/ejftuIDavISfD0z0AnJyH6QuMF7gjC+FwJCyzmb56xyM LNgBojksIMFNBcJSoup8898HXuiknO0p8QXfnGwFAWrmJIKiIpa4T09BREDwtKU/MvdQ cr61MKEnf3BR5WZG4p6hcDDu4ZnjQqVwTe7cvLqBSIWjmJxqNbU0uPycRZ2f9zZyeV7a w+vlGAwqdXjHi53xgpcNoQ8Wn3LBvlXF3/bYod935vdWzrsbwYfL33zcsKbJEC+u6a3Z dyhoCUejceGaDGz7icSqPRx8OQ70ETSIIfCFY0iGGehSsai0U5bWf8DtutgHZAydSDqY HTYg== X-Gm-Message-State: AOAM5304E4UrnV7sbWB7ZatBXKMH3CmdUinLDvVNKCbhQFi/9qZS3IZh uMnR8w8sxNqBViHrG2wBI6M6Ziel X-Google-Smtp-Source: ABdhPJwT+eKvx6U1VWCDJZE7WtPYjZs/M4FqbW1HbFiI5BHTjK8SDj9aFZRpBEr1AkDYawb8P337Kw== X-Received: by 2002:a50:ee11:0:b0:425:b5b3:a48d with SMTP id g17-20020a50ee11000000b00425b5b3a48dmr7422551eds.246.1652606744118; Sun, 15 May 2022 02:25:44 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:907:7ea2:b0:6f4:dcbc:baa9 with SMTP id qb34-20020a1709077ea200b006f4dcbcbaa9ls6003679ejc.2.gmail; Sun, 15 May 2022 02:25:42 -0700 (PDT) X-Received: by 2002:a17:907:6094:b0:6f4:aa0b:9af0 with SMTP id ht20-20020a170907609400b006f4aa0b9af0mr10636593ejc.432.1652606742729; Sun, 15 May 2022 02:25:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652606742; cv=none; d=google.com; s=arc-20160816; b=TVckRKbspdSNsBLkydGAt1tChXceZQoYrpzAh2/1CYaxIGUbw6zXlfdTheAjfrYSYi PiHnUYwuPTrkAJo0JqrVAm0AjBvNn0SXbWqbtykXvMAQTEpLm/nBGLATCYhpCTQnLaDD 2NVvshPFC1Y7WWnvEtXBV4mUNnXLEPtb2p4+JToO7PcnLgZUEhvB3K/Y0I1s7QHVmsOZ 8NAo9llf1GG3syKFqMR8gNckz6Qbecy0+m6cKkLPhyanuVgToys/a9y5Ay2tpdEk7sWh O8Iz1VXjSkv9Q5XYypECW0chIrS+eZJTaVa+HWGGyGOoReijQ+wD1G1eOqGWsrsEJCPA IVpA== 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=WQ/hi5NjprYAN74txeljWRZooI5qDEdtRXN4TExK5fPWFWXrF2+kAcFjDLB32ZTRtH wLbnKnysdAE5M/7Yh3omlz7ZZUl1/OaJCHXj5oig+qeUd+8WNujzcOQ7cRUq55KkoSLv nqJDjKgweyTI0T7KSnEr8ToRw0QvlB/3vsIf6GECwFXnFGzWOVIEcwAhGILpZ0pEcxIJ l36F2+Vq56f6I8/OIgqfwaeLeKPLBgr9wU24N47V3Zu+ZHTWyfD2LUijiMEcn/M8bd2J 6nMnmrBYr5s90cZUfjIxKwPWjln49sysBSiE7NsSz6BioTm2YQSmaKFrEeVZe6R7nwGW e9Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=fAgYF3EI; 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 e1-20020a170906648100b006e89145b218sor2564548ejm.46.2022.05.15.02.25.42 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Sun, 15 May 2022 02:25:42 -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:a17:907:6d17:b0:6f4:6b6e:32da with SMTP id sa23-20020a1709076d1700b006f46b6e32damr11498775ejc.301.1652606742403; Sun, 15 May 2022 02:25:42 -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 m17-20020a17090677d100b006f3ef214dc5sm2509888ejn.43.2022.05.15.02.25.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 May 2022 02:25:41 -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 V3 0/5] MXS nand fixes in SPL Date: Sun, 15 May 2022 11:25:33 +0200 Message-Id: <20220515092538.1736154-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=fAgYF3EI; 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> |
Message
Michael Trimarchi
May 15, 2022, 9:25 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(-)