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 B68D7C76188 for ; Tue, 4 Apr 2023 22:33:07 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7DD7885859; Wed, 5 Apr 2023 00:33:05 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1680647585; bh=ncmyk6VchOiTQIR4iuN7zj3ZTVv/lpwVH1iUCq0p/3M=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=Y2JyvdifmJayQJ/XkyX7BJcH7eftQEwivJz2w8AVDvhcB8WCcu0lferd1xLyV4rZM amZGf9RKL7CikujRIxxKNsbHFO25F1I4uZgzDNoFwP7Io2A+RNfiqeH2w3koK8R3rs apa9D2eCLCb1oU22BgiUwpU1zZ68Q9oS610MgwiR+DeaHCFSwS/Gl2R7eXVZ+/cikI 3fFSOZ4/5swQQ2TI64jOTE05LRz76FWfeqCV4G12oOPKw/2dR5LT+7aGm5A23QgSrX V8wsg2ae6+GuOCdIRvL4/+PKUEkmmgm9RGbaO+FqiWCAhShyxbLrHaH1WPYKm6iSI9 qYapU2YIWzSRA== Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 253108340C; Wed, 5 Apr 2023 00:33:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1680647583; bh=ncmyk6VchOiTQIR4iuN7zj3ZTVv/lpwVH1iUCq0p/3M=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=DJVsgMQJXyKtcvi5SOXXlLZ/fgEINcxOz74D/j2Nvv2RmMGqlnGXBd4QjOqfhkreh mfnqPdlwwnlttOnVwh9szOPZq34MZ1gLCVjolJ2bzBXq3rlNBdexX0e9JW3Y6bhLII pwkykPvWNm7v7fs+9W9ocT6qi00dnCPLQ/bC2Cj4aWUej4mP21HKh0UMZY8tHO/LW5 6GTS3vLUZK/kicvcAe8KJaQJC09o6EX6jnWT0QUrMPJCqwFJNmPNWrd/Chx1ACugq7 TYNAmrT/fEzTDMzvWmwI656dzxgOI9KyA4d4hx3XTdKogl7SygDNry0iilc0KqpBAv ScFsSEy9eCRSQ== Message-ID: Date: Wed, 5 Apr 2023 00:33:02 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v3 2/2] spl: mmc: Pass eMMC HW partition 7 through Content-Language: en-US To: =?UTF-8?Q?Pali_Roh=c3=a1r?= Cc: u-boot@lists.denx.de, Fedor Ross , Jaehoon Chung , Peng Fan References: <20230404180515.49821-1-marex@denx.de> <20230404180515.49821-2-marex@denx.de> <20230404192554.tomt56cdsxn6qhwh@pali> <20230404221641.jwfy4qdwxekhhsv6@pali> From: Marek Vasut In-Reply-To: <20230404221641.jwfy4qdwxekhhsv6@pali> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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.8 at phobos.denx.de X-Virus-Status: Clean On 4/5/23 00:16, Pali Rohár wrote: > On Wednesday 05 April 2023 00:11:17 Marek Vasut wrote: >> On 4/4/23 21:25, Pali Rohár wrote: >>> On Tuesday 04 April 2023 20:05:15 Marek Vasut wrote: >>>> The eMMC HW partition 0 and 7 both mean USER HW partition. >>> >>> This is not truth! >> >> Can you please provide further details to back your claim ? > > Yes, see a patch with explanation which I meanwhile sent: > https://patchwork.ozlabs.org/project/uboot/patch/20230404202805.8523-1-pali@kernel.org/ This very much adds a comment that looks like the content of the second paragraph of my reply, see below. It is a good thing you mention the aforementioned patch, since exactly one line past the changes you implemented is the following piece of code: https://source.denx.de/u-boot/u-boot/-/blob/master/common/spl/spl_mmc.c#L382 " int default_spl_mmc_emmc_boot_partition(struct mmc *mmc) ... part = (mmc->part_config >> 3) & PART_ACCESS_MASK; if (part == 7) part = 0; " Which maps 7 to 0 . >> This kind of screaming feedback with zero additional information is >> worthless, sorry. Before you proceed with any further replies, please have a >> look at JEDEC JESD84-B51 section 7.4.69 PARTITION_CONFIG Bit[5:3] >> BOOT_PARTITION_ENABLE , this is what is being discussed here. Value 1/2 is >> either BOOT HW partition, value 0/7 is treated as USER HW partition by the >> boot code. Please read the paragraph above, I do not see any reply to it and I think that might put the conversation back on track.