From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6E0F5C64ED6 for ; Mon, 27 Feb 2023 16:36:21 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E642D85A7B; Mon, 27 Feb 2023 17:36:18 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="Mdrgb6aU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3DCC085A92; Mon, 27 Feb 2023 17:36:17 +0100 (CET) Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 88F0B85A71 for ; Mon, 27 Feb 2023 17:36:14 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=dario.binacchi@amarulasolutions.com Received: by mail-ed1-x535.google.com with SMTP id d30so28280469eda.4 for ; Mon, 27 Feb 2023 08:36:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=LGRpExxrSmlD9xgnNawREmT1TGr+8WD2Mecgmfv/tAU=; b=Mdrgb6aURaXPB0nOfoWevCCR6BEQtXsUEN3EvMXU8cywTdcwlCpFsu7XUA2sNj65Rl +fkFMDmzRhhbpDlP+eDaWtUz1tSnZrg+VhWr3EUQNQABXyjbp26uT+OxnZfBaAXNxuBG tKQNivjBJg0LjH7J+DurNxLDyuvY55nmf7r/Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LGRpExxrSmlD9xgnNawREmT1TGr+8WD2Mecgmfv/tAU=; b=nRyLYI4kdqGfxu9pY3K9pYYpKdohVE3anbknuIZKhsuqNtlByqoXtDU8UDr+XBPkDr ILaYcrso3Yu9f2h7sCpS3xE9sGP4O9soG6UkzQ8+UgrGKGMFIrOGB5kWlcFVE5HXGeeZ wuUa2MlrsGWzHyskc7Jyq6rfeiCwsA3n96JTxabtj7bdXww+3h0VTt381ijRtdz6wXp8 P0RE1mkUDKQpNfGAXqsGeDPagx0e2y8oS7UVjKwwSZm+cvIdLwTpfY1ECglQbVXQ+y0v E251XsFxWI1Qop790q3JxaU4NeCufVdpeXAaRXWftWZenn7bN1rFFnOhdAKzBG8cirCs pvAw== X-Gm-Message-State: AO0yUKURuRGNpJbQ7nh6PoBw0U175tf1wHTK1yw8E/jRqWXx0zaXeoBe luVdVZTzq1oOEj2RdzTGV/RpMfMhjJo3fpdN8Hff2w== X-Google-Smtp-Source: AK7set/U2nTEcIYaFNwL4yZajrOA2Q5SfT76U4HonROf3RNgJBX6ADFBcM+RReOGIV2ywGqOLT/0PjvHRlcR9nFf0mo= X-Received: by 2002:a50:bacf:0:b0:4ac:50e4:1eee with SMTP id x73-20020a50bacf000000b004ac50e41eeemr53751ede.3.1677515774024; Mon, 27 Feb 2023 08:36:14 -0800 (PST) MIME-Version: 1.0 References: <20230105094620.30774-1-ashok.reddy.soma@amd.com> <4b6fc7ed-86d3-0bf2-bf56-38f86d4aab17@amd.com> In-Reply-To: <4b6fc7ed-86d3-0bf2-bf56-38f86d4aab17@amd.com> From: Dario Binacchi Date: Mon, 27 Feb 2023 17:36:03 +0100 Message-ID: Subject: Re: [PATCH v2] mtd: nand: Mark reserved blocks To: Michal Simek Cc: Michael Nazzareno Trimarchi , Michal Simek , Ashok Reddy Soma , U-Boot-Denx , Simon Glass Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Hi Michal, On Thu, Feb 2, 2023 at 3:50=E2=80=AFPM Michal Simek = wrote: > > > > On 2/2/23 14:44, Michael Nazzareno Trimarchi wrote: > > Hi > > > > Il gio 2 feb 2023, 14:21 Michal Simek > > ha scritto: > > > > Hi Dario, > > > > On 1/5/23 10:46, Ashok Reddy Soma wrote: > > > Reserved blocks are used for storing bad block tables. With "nan= d bad" > > > command, these reserved blocks are shown as bad blocks. This is = leading > > > to confusion when compared with Linux bad blocks. Hence, display > > > "bbt reserved" when printing reserved blocks with "nand bad" com= mand. > > > > > > To acheive this, return 2 which represents reserved from nand_is= bad_bbt() > > > instead of 1 in case of reserved blocks and catch it in cmd/nand= .c. > > > > > > "nand bad" command display's hexadecimal numbers, so add "0x" pr= efix. > > > > > > Example log will show up as below. > > > > > > ZynqMP> nand bad > > > > > > Device 0 bad blocks: > > > 0x00400000 > > > 0x16800000 > > > 0x16c00000 > > > 0x17000000 > > > 0x3d800000 > > > 0x3e400000 > > > 0xe8400000 > > > 0xff000000 (bbt reserved) > > > 0xff400000 (bbt reserved) > > > 0xff800000 (bbt reserved) > > > 0xffc00000 (bbt reserved) > > > 0x116800000 > > > 0x116c00000 > > > 0x1ff000000 (bbt reserved) > > > 0x1ff400000 (bbt reserved) > > > 0x1ff800000 (bbt reserved) > > > 0x1ffc00000 (bbt reserved) > > > > > > Signed-off-by: Ashok Reddy Soma > > > > > Reviewed-by: Michael Trimarchi > > > > > --- > > > > Are you going to apply this patch? > > > > > > Applied already > > I looked at u-boot-nand-flash git repo and I can't see it. > Where's the repo where this is merged? > > Thanks, > Michal > > Applied to nand-next. Thanks and regards, Dario --=20 Dario Binacchi Senior Embedded Linux Developer dario.binacchi@amarulasolutions.com __________________________________ Amarula Solutions SRL Via Le Canevare 30, 31100 Treviso, Veneto, IT T. +39 042 243 5310 info@amarulasolutions.com www.amarulasolutions.com