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 B12F6C05027 for ; Thu, 2 Feb 2023 13:21:20 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2075685EEA; Thu, 2 Feb 2023 14:21:18 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=monstr.eu Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=monstr-eu.20210112.gappssmtp.com header.i=@monstr-eu.20210112.gappssmtp.com header.b="xNjxDkHr"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 291E385ECD; Thu, 2 Feb 2023 14:21:16 +0100 (CET) Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) (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 7737185CE9 for ; Thu, 2 Feb 2023 14:21:06 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=monstr.eu Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=monstr@monstr.eu Received: by mail-ej1-x629.google.com with SMTP id lu11so5919076ejb.3 for ; Thu, 02 Feb 2023 05:21:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=wdGJFEdUqb/4vVv03KeB9bWRJxigZzxD819/RY5L7ZU=; b=xNjxDkHrMVUMFvuPMcbmdACHRI6rQhTgqEffQpJBFd2AR5fxqi1sO+99Hd/MeDWwow VDy6kNVyRas6TxkszD1hNjbNoVOg6UbNDmAhFRxGW8GrEh1Ehzsz1DPEO4gcEWV8qTmH IWmD18lLPPntxRnYid7I5eK7RK+MeiuY/SJfYzdQMLnEbOITjAzN0XY7Pb45Zv1d3eMk loXEdEf0k6rPAjyXut1VWuwu+5Iq4OMxvFJ6j2Lq1RNrIly6+pQF3G7U1K/rvJhJ6qbi r+3HSOl9ORIDWPY00+Z5m1g2QQEmBnXn1MAWW3XtJioERzlHWCtnOkiVIiMr7pqEdU8S BciA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wdGJFEdUqb/4vVv03KeB9bWRJxigZzxD819/RY5L7ZU=; b=XBo6JELrjzbJ9c6FG/DLZ+tE/8u0JiqPvzYk1iQjNxt1jBluuW0JYtei38Id247Ilg yeA/BOKykDUPQcde8GYj4P4eoAgxSdjw49yVVj5cE2sfF3k9ham5XAjgFTAQz3d9zcMm 7OD4U6dXXlpEKlf+4VN8jEdviY+7HiWCltSV/KGRsS8spDEwYcNj+kGDOBrxfyCAj0jZ SvptyspT0LLB7fvC/uso2+fGOjEe38K7Pn7pUOarMl5RYdUSFL4+HegO+uk2oK2QrZdo SARPUSWFZQLARLMXS1U5vboBWXe1mbj/hFmlqVx9q5Z2Zh0JeepXwXfnRlGU2QTe7qQk emLw== X-Gm-Message-State: AO0yUKWmet9Lsb2MgbeZyZu/5crcMQQ6EzNhe5jxSvPWVg81NKu5REa3 bC+l+axLYeLjgbJ/Kw2agPu8+ZYpNp3aVB1X X-Google-Smtp-Source: AK7set9TFQlLKZosqEcmwfVaOI0DzHhU2tr99QAs3BHfbQtpBr0VFU1kmq8bUD8NwTLHuPxPhAP51Q== X-Received: by 2002:a17:906:b817:b0:86d:f880:5193 with SMTP id dv23-20020a170906b81700b0086df8805193mr6778189ejb.38.1675344066059; Thu, 02 Feb 2023 05:21:06 -0800 (PST) Received: from [192.168.0.105] (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id p15-20020a056402074f00b0046b471596e6sm11334854edy.57.2023.02.02.05.21.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Feb 2023 05:21:05 -0800 (PST) Message-ID: Date: Thu, 2 Feb 2023 14:21:04 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v2] mtd: nand: Mark reserved blocks Content-Language: en-US To: Ashok Reddy Soma , u-boot@lists.denx.de, dario.binacchi@amarulasolutions.com, "Simek, Michal" Cc: michael@amarulasolutions.com, sjg@chromium.org References: <20230105094620.30774-1-ashok.reddy.soma@amd.com> From: Michal Simek In-Reply-To: <20230105094620.30774-1-ashok.reddy.soma@amd.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 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? 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