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 4AA42C61DA4 for ; Thu, 2 Feb 2023 13:45:25 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4B12685F2F; Thu, 2 Feb 2023 14:45:22 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (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=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="iCnxsj0J"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8C87785F0C; Thu, 2 Feb 2023 14:45:20 +0100 (CET) Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) (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 F174E85F2F for ; Thu, 2 Feb 2023 14:45:04 +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=michael@amarulasolutions.com Received: by mail-ej1-x635.google.com with SMTP id ud5so6085659ejc.4 for ; Thu, 02 Feb 2023 05:45:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=bJQg6IoI5sl5PWEdrAeWS04726kcj17gdvX3zMCKFW8=; b=iCnxsj0JghsTYCmhlNXI/FiGAOpWCOWrhtxSDEHRJJLt6cMXdn8lJayHNeSWFYdU7Z V4j5rAO5gIz7I0wNMJss0APIJA/bv3pWx/PGU/q2YICDmT0kayCPs7E48U27UY2s3rvb THqoov0zgn9XLejDFpxvhbqzbjBfRBWrK6X/0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=bJQg6IoI5sl5PWEdrAeWS04726kcj17gdvX3zMCKFW8=; b=4thTs67LbK0zrzqn88Sy4x6kTXmLhkCOlsF80y1znEItnnJZyKMnIhM/KgYPeQGUsK 9gadNhLNJyzGDmEOyn2xfR0VYq5Jt/yz0bDvtu8p1YJoWkSW2saK3rmatgCd/TVkZY4L jt32wmtOgc2SMxVquBlW8f2SDu2H420xLE8phEAWWHAKcNKP9nJNW6QMYcAAR/i06l+E aSlGgOJ6H7iOA1fD21Cyp2/Qnjn9QdiFD7uBt+XbKrtHec5KlnU/UaeKNItGomLCy/6Y vIhaOhoL62SmgzfeN+qUmpn+QLuj2Py+bZKj2qar49oBTSsxUo7+S+x+hBeVWLBhCNIm /6vw== X-Gm-Message-State: AO0yUKWcm8c3tgqVes3VsWkYXZrRhSL1vR8Tqo6DkDOPuzfmHo10D42l xvoM9NpxtvFz1f+WqvpqCN2ONW7lXXoLyUHi0Y2YOg== X-Google-Smtp-Source: AK7set/cj+rrww6fSBRLC9G/HtwQyNg37LQSC7eJ4XysyDDb2JXHfZEd+7C4BEpUigSc0RQjpLq9fONNsiwQhXEbmHI= X-Received: by 2002:a17:906:c241:b0:7c0:b3a8:a5f9 with SMTP id bl1-20020a170906c24100b007c0b3a8a5f9mr1827261ejb.154.1675345504476; Thu, 02 Feb 2023 05:45:04 -0800 (PST) MIME-Version: 1.0 References: <20230105094620.30774-1-ashok.reddy.soma@amd.com> In-Reply-To: From: Michael Nazzareno Trimarchi Date: Thu, 2 Feb 2023 14:44:52 +0100 Message-ID: Subject: Re: [PATCH v2] mtd: nand: Mark reserved blocks To: Michal Simek Cc: Ashok Reddy Soma , U-Boot-Denx , Dario Binacchi , "Simek, Michal" , Simon Glass Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.39 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 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 "nand 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" command. > > > > To acheive this, return 2 which represents reserved from nand_isbad_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" prefix. > > > > 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 Michael > > Thanks, > Michal > > -- > Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91 > w: www.monstr.eu p: +42-0-721842854 > Maintainer of Linux kernel - Xilinx Microblaze > Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP/Versal ARM64 SoCs > U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal/Versal NET SoCs > >