Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2986022rdb; Tue, 13 Feb 2024 03:35:23 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXShj29RBDPF1/Iwt23oV0uzJeUON43+tDyyAs4op5yUXeebUztQ1HxDHZIc80Bev8b0aGGqWW73PiggSv5DILrZAahcCMOEnYFu21PxQ== X-Google-Smtp-Source: AGHT+IHWkNoRthgm/a+vIG9fJQfB29egUoIPh2d2DbOuHenPAkH1CIvIpnFWnZanGed79YHLQvJQ X-Received: by 2002:a17:902:8543:b0:1db:2ad2:6503 with SMTP id d3-20020a170902854300b001db2ad26503mr2393374plo.60.1707824122792; Tue, 13 Feb 2024 03:35:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707824122; cv=pass; d=google.com; s=arc-20160816; b=gGbI8OpRt/dTctx34C/+5rL1mwSnOfS6DvqtNCELKV59wKWCpdxQy8yK6tWouIPbLb I0XC3mrfGICbz/ca27t1EISXUFq+Cj8UEukbafCVoRhS+/aSpUYavhQApcQCgcG+8A5I q2RWCqh+DWGRpe6qr8/jGVDFKEfsCjfbFfYHIKnH6jvsvqJR3nMGpwuB2jOp8E0bGBfB zpjHb/mm8bjrnjnRECbJW5JBNY0MpiPk9Qoitp4Jf+Bs4ceCTqLDdSoYZqTYVQih68t/ H/bjK3d9luklW67gYbbafJn0BhiyBaEEYmE1AAZbt6R/yVjilWF1kEEEZxcygbZwTwCE /2Iw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=ePi7b1L8+8ZVCVaSbDzz3it0zkxtnGBp2AkmJlONslA=; fh=Vje92bIJDZebvD3io1r5/UyS5Vj+jlMDB6zTgtXJSPE=; b=i8flLrKPtM8brugXVmOp2+HbdKbKlSkRZ9+Qsy9TEIoUGNqRXRIJnzSkcj49uk7U5R w2kFsKclxwo2qUIoFnzWVrhWT2WdCLRxvDlB52kepQQ3qQ6gEBIq63WU1DKCTVfBXkrq kNBvehCc+phnJ4m9rL/alyLTsHkqW4K1OUlGqzAkZJw9spTqtoagd+7ihTnZs/2WrpaS Su0I0kQulK9Ze3x4JxKUlkjKgxVFxAgU6O/Qsg/m51cfxLGliV1LYySoLmv0/yPLSR4A rjQdJSRwE89K1Sse62C+8f8wF7glSV1UxYSsw++grxH9ggZgn3c86VNfxV7lIiuFJJdL gWxg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@dolcini.it header.s=default header.b=VzqN+8Yr; arc=pass (i=1 spf=pass spfdomain=dolcini.it dkim=pass dkdomain=dolcini.it dmarc=pass fromdomain=dolcini.it); spf=pass (google.com: domain of linux-kernel+bounces-63431-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63431-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dolcini.it X-Forwarded-Encrypted: i=2; AJvYcCWKDXuvTMWDR5QhS6yukmsUzYGZO4rtA8DUT1HYBzJm4x/mRrqCHrMcP8MBvlYkAs4ZGN9izPYlQsvdbfshtOSnWDEuR9UPQMWlZrGcIw== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id f17-20020a170902ce9100b001d9d4629bc1si1967659plg.456.2024.02.13.03.35.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 03:35:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63431-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@dolcini.it header.s=default header.b=VzqN+8Yr; arc=pass (i=1 spf=pass spfdomain=dolcini.it dkim=pass dkdomain=dolcini.it dmarc=pass fromdomain=dolcini.it); spf=pass (google.com: domain of linux-kernel+bounces-63431-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63431-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dolcini.it Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id EF49BB2387A for ; Tue, 13 Feb 2024 11:25:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0CAC952F7B; Tue, 13 Feb 2024 11:21:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b="VzqN+8Yr" Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BF4B338DDF; Tue, 13 Feb 2024 11:21:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.194.8.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707823316; cv=none; b=bzwASqMXMj7bB+iBiL8F2/Di+FHz+RtwcAvEbgklpl/npX4asFSgWouA1yc0Cmtto6B3JcNOfVzIc6QCCGj+2VgR8UPVQbxFfJ52ToA23LPrjo3HFHT51eavJa+lSXZFzuWPZzdLijIXFjIdkJqbQK1o+lccRDhvYLWbYqm6UaQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707823316; c=relaxed/simple; bh=ePi7b1L8+8ZVCVaSbDzz3it0zkxtnGBp2AkmJlONslA=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=j3ONPnwgXeRLMvJjgbQgeYX/gEPlsUuAZnzthM3UPP1214TGKL+6pQScgbdv/WZM3+nHh/vf0BqYg+7wRtRhlnPV4sHjBevNSRCUPOJXBULVjeedDxHFA0iz4L3SCycghOmF2A2d4U0Gxgl9ZMrzhggoTYdDpOXPYmzH0Vcan9M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it; spf=pass smtp.mailfrom=dolcini.it; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b=VzqN+8Yr; arc=none smtp.client-ip=217.194.8.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dolcini.it Received: from francesco-nb (unknown [5.170.16.17]) by mail11.truemail.it (Postfix) with ESMTPA id 1BAE620FCD; Tue, 13 Feb 2024 12:21:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1707823311; bh=ePi7b1L8+8ZVCVaSbDzz3it0zkxtnGBp2AkmJlONslA=; h=From:To:Subject; b=VzqN+8YrhaAH5gFOKOiKHNv5ot8N4b+dQmpn+TsRdwQGqy6O1k5ZUsoSKz3UMjTHd QqqIJfLJEuzkYWXjuz2n9Z66RzE/7dfkbD6ceGdl9rOkTAJ6NtevIfzQDgzvpbacrE PrwZ0DY+V2cezvwDxhUyYfFD3XToC7llcOYXQZFOBcMWA2wYRezDTHBAl08Dv1mVGQ Ym0xDPQdScBccV/LX/96IftYdMGlfeyWOuq/OWSfbEkJ1CMnUszGZRA6SZUA137h0t b9XEFTeofAMWBAKsbpYeYrhDyvG1DtUnVqJSNlSkjP/Ntp0H3kXLha9yvNfPhNvk+Y 633QCgKlW2Ziw== Date: Tue, 13 Feb 2024 12:21:46 +0100 From: Francesco Dolcini To: Sasha Levin , stable@vger.kernel.org, Greg Kroah-Hartman Cc: Alexander Stein , Shawn Guo , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, regressions@lists.linux.dev, Max Krummenacher , Miquel Raynal Subject: Regression, i.MX7 boot failure, Linux v6.1.77 Message-ID: <20240213112146.GA5874@francesco-nb> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello Sasha, kernel v6.1.77 introduces a regression, with a boot failure, on i.MX7, with commit db30f469ae8b ("ARM: dts: imx7s: Fix nand-controller #size-cells"). The issue is known [1][2], changing `#size-cells = <0>` is formally correct, but do not play well with the firmware that are deployed on those embedded devices, leading to a boot failure. A mitigation was implemented in the Linux kernel, commit 84549c816dc3 ("mtd: parsers: ofpart: add workaround for #size-cells 0") that was merged into v6.3, the firmware was also fixed, however existing device using old firmware will not boot anymore if updating to a newer kernel. I would ask you to drop such a patch from any stable patches queue and not backport it to any older kernel. To fix v6.1.y I see two options: - backport 84549c816dc3 - revert db30f469ae8b What do you prefer? Should I send myself a patch? [1] https://lore.kernel.org/all/Y4dgBTGNWpM6SQXI@francesco-nb.int.toradex.com/ [2] https://lore.kernel.org/all/20221202071900.1143950-1-francesco@dolcini.it/ Francesco