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 D402DC4332F for ; Fri, 16 Dec 2022 14:32:33 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 260CA851FC; Fri, 16 Dec 2022 15:32:31 +0100 (CET) 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=1671201151; bh=YcZLu+PifMn6/LIs0eaXk/f/5yxHO5tGvNL/baVZmM8=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=Z0uGoM2sz8QbkSp0ebCtbtp9ButfqKDa/8GRuJeJnijCxi88vMbmd58InDBE/r0fq hVAW0V9zj/mRGaVmELH++5U5ltmc5k4QTJCXsFGLQJNTrL7hEwb+FqhOZU1nNCEoKC 31p790fye9MBkCCJDpiFBIJxHfb1UErktWdDuTY1OlfolC4cFzVXcqojEELJbLMpSS 1GzWVX1hvlYd6W4h+dD0le5eRl0xIUcYF7LQZDWyNSFsIPrkoX7YguYpKx8UFhT4Ww 8FC4OJUpgGyMhq1SxWVgWhz9RgReX0o2Y5tIF/LA+g9FgzvDJ5f0PY5OkPrAhZ2Y2G 2jQhZ5Jn8bHIA== 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 399DE85098; Fri, 16 Dec 2022 15:32:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1671201150; bh=YcZLu+PifMn6/LIs0eaXk/f/5yxHO5tGvNL/baVZmM8=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=jAdo0ae+D/tgrS7aMSIRbVQTQwA5TrltVH/OoPMpkOn3oF2ajFc+6pcHfGtLtLMvD tZHhP9VIQJyqUE14DiYyhtIAI8YzszTLiMapqN+MzbMoySfntfI/eaVHc7L1Rnbw8a M9TYA6qs6DgWLoA66u0/nAARWlGWLAevEi7lfiXrH+p3uhmWZOANgKMdWVVWAge8nv Wn85qaBJb2E6I2DtRNOnzmJDfQzlsSDYugOTBQm/jj4Hq+g54qh1j17iDovtpHy2LV H7/FYJJF2ntK9zetJqmBOVzM61rFJ+fud6V0Zys5lRzC3J1SCY9qEwZX9DMKVMXwOZ bmsHguusLgzcQ== Message-ID: Date: Fri, 16 Dec 2022 15:32:28 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [PATCH v1] mtd: parsers: ofpart: Fix parsing when size-cells is 0 Content-Language: en-US To: Miquel Raynal , Francesco Dolcini Cc: Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org, Francesco Dolcini , Shawn Guo , linux-arm-kernel@lists.infradead.org, stable@vger.kernel.org, u-boot@lists.denx.de References: <6f5f5b32-d7fe-13cc-b52d-83a27bd9f53e@denx.de> <20221216120155.4b78e5cf@xps-13> <20221216143720.3c8923d8@xps-13> From: Marek Vasut In-Reply-To: <20221216143720.3c8923d8@xps-13> 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 On 12/16/22 14:37, Miquel Raynal wrote: Hi, [...] >>> What? >> >> Let me rephrase, I was not clear enough. >> >>> Since when my proposal is breaking boards? My proposal leads to a >>> situation where: >>> - If you have a board that has an inconsistent description but worked, >>> it will still work. >>> - If you have a board that has a consistent description and worked, it >>> will still work. >>> - If your have a board that has an inconsistent description and got >>> broken *recently* by another change (typically you "fix" the DT in >>> Linux to comply with the bindings), then you get a warning that leads >>> you on the right path, you then update your bootloader if you can, >>> but either way you add your machine compatible to the list of devices >>> which need the early fix and your boot is fixed. >> >> This implies that we can proactively catch all the affected boards. I do >> not believe this is reasonable and because of that my comment before >> about creating regression to the users. > > I really don't understand the reasoning here. > > What I say is: let's fix the boards known to be incorrectly described > when we break them so they continue working with a broken firmware. The second part of the message, as far as I understand it, is "ignore problems this will cause to users of boards we do not know about, let them run into unbootable systems after some linux kernel update, and once they suffer through system recovery, make them add compatible string to the arch-side workaround". > What regression could this possibly bring? I don't care about catching > the 2k boards out there which work but wrongly describe their > partitions. If they work, they will continue working. Those boards would start failing once the Linux-side DT size-cells is corrected. Also, this got missed in the previous discussion. If you use only board compatible string in arch-side workaround, the workaround would be applied even on systems with updated bootloaders, which is likely not what we want. > You and Marek say: let's blindly always change a property in the DT, no > matter if the board is broken, even if we don't know if this is the > right thing to do, and apply this to the entire world. As far as I can tell, if we have partitions in the NAND controller node and size-cells=0, then the right thing to do is to override size-cells to 1 , because partitions with size-cells=0 make no sense. If the heuristics here needs to be improved somehow, let's discuss that. > But with this approach you're not worried about regressions. > > I am sorry it does not stand. [...]