Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp1234273lqb; Thu, 18 Apr 2024 04:21:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXeGCvxWlLh/YVidKXvy4adsd2+Of/sRxIX37Wi9cmhIKtj0riXUVByOr59J2UjnhXcKlLspKitttPHYvmI9ehJxLtu3zr0Nrtr2Z46Qg== X-Google-Smtp-Source: AGHT+IGdPoV7/T6PrQFLeorJBaDv7uIBJ4HaifSBvhDFqNzgNTfK/5dBMvnhuPZBHZElLY5673bH X-Received: by 2002:a17:90a:880e:b0:2aa:7b11:2349 with SMTP id s14-20020a17090a880e00b002aa7b112349mr2536832pjn.10.1713439291738; Thu, 18 Apr 2024 04:21:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713439291; cv=pass; d=google.com; s=arc-20160816; b=owOiRfynVKtHWKwejMUqS09bFGShXC7WIOF4DyaabrQvlU/USupO/PXzVi3oVlFh9t xwOUsCBvjxjpvzSObJuO4oXNrlCtsLZFVFhVaT0tIwSYASS80lUJd6fE6Xikk8zho2nU epS4ZonIYPO9aXD5M1gAh4GyTM3s26n5AXkDSY/VamzacSEdmpjeZf/9GeKp9/uV5Qz8 ge3c1N1dLpl1lu+geJDH60K20P6/4cLHMMA2ZwfDrWtZbk6S26J2oJ5Z8zKdLTt4J5d1 XLjblv+WXWEtf6M1vP6HDFhTFN98bUIM5RULE1gbz5iVbbvN5QJMNP5QMIlkIUmha0vm 0bTQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=BKEU0IRAMdu4GDLeZc7+VTQILaUi8eCSMo0VfpqxkkA=; fh=W1rr/uEGZ7gP7tnxEhCSXpQ9xa8FsPw0yM+xtzUMQn4=; b=wpIsCLMoJ65vCLMSdyOueSwoV+BG0AbDnnqGhQshy9A0vGHR73+bPX+TWepKHsCKAL 80Y9Ca+dXvE0f9CgAojUUBL5K5QlWeX7mgWxdHvC4+GVRO1QE6puCx8s2xjScMNtxKy4 u3XD4sVkAs7ZvnQ3K73IYW3K9ISWcPhArFoov7RDFJb/p/YSkFrcitxWYwdVV/BTOM46 2jHJmpSZBy8ceXFWNGz+iKpylXc4+Tl4ctXqgQdUwnjj4fKCH0nTSicCt92+OZ9Ku0PC JAr94ajXBICI5aLoyLTbofL6PWKrDmOKSGw+KqQYOWdSl/gfiPu8mxLX338xjdNdHZKX Zd1Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-149962-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149962-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 2-20020a17090a0b8200b002ac0bca7631si361952pjr.21.2024.04.18.04.21.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 04:21:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-149962-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-149962-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149962-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4E5D5283F3B for ; Thu, 18 Apr 2024 11:21:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 805D215E5DA; Thu, 18 Apr 2024 11:21:25 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F370D15B573; Thu, 18 Apr 2024 11:21:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713439285; cv=none; b=QhRHYgvAYcVdPUg9A0HqBLXnM6H2lftDl/vzV2eT0QfA/opAeYt9F/PZlb4+moRFLsUGnY4MV/ULs3qnMmusms9866sWHQ86j2LFTSOLqx0h3NN4EsFXZjgU6ATD7G7Jo9YGp5xicvFDo99Q9VUbnOAksfWJ5kIzieklrKevnAA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713439285; c=relaxed/simple; bh=GjmNQpVi6Pjtu34nTkDpKtBKEjPKDfdVMkq31b+TbhA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QzCGhQTaC1jGeqChMOtLTVp/K7h2ZYN3+Iezk71w00r8lKWxaPKERW33+rvTwRgHnhezd5HAvKsAMDM8d15+mHMcZsICz32pZ0BzBwccuejgqwqFQcqZCB8YLp7cf0PfQ6Pcmi5Xi757/2k4X3M+24CqQ7umSHlnoG75Vn6igBo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91590C113CC; Thu, 18 Apr 2024 11:21:19 +0000 (UTC) Date: Thu, 18 Apr 2024 12:21:17 +0100 From: Catalin Marinas To: Marc Zyngier Cc: Naresh Kamboju , Greg Kroah-Hartman , Mark Brown , stable@vger.kernel.org, patches@lists.linux.dev, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, akpm@linux-foundation.org, linux@roeck-us.net, shuah@kernel.org, patches@kernelci.org, lkft-triage@lists.linaro.org, pavel@denx.de, jonathanh@nvidia.com, f.fainelli@gmail.com, sudipm.mukherjee@gmail.com, srw@sladewatkins.net, rwarsow@gmx.de, conor@kernel.org, allen.lkml@gmail.com, Yihuang Yu , Gavin Shan , Ryan Roberts , Anshuman Khandual , Shaoqin Huang , Will Deacon , linux-arm-kernel@lists.infradead.org, Anders Roxell Subject: Re: [PATCH 6.6 000/122] 6.6.28-rc1 review Message-ID: References: <20240415141953.365222063@linuxfoundation.org> <86y19dqw74.wl-maz@kernel.org> <86sezjq688.wl-maz@kernel.org> 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 In-Reply-To: <86sezjq688.wl-maz@kernel.org> On Thu, Apr 18, 2024 at 12:07:35PM +0100, Marc Zyngier wrote: > On Tue, 16 Apr 2024 18:28:10 +0100, > Catalin Marinas wrote: > > On Tue, Apr 16, 2024 at 02:22:07PM +0100, Marc Zyngier wrote: > > > On Tue, 16 Apr 2024 14:07:30 +0100, > > > Naresh Kamboju wrote: > > > > On Tue, 16 Apr 2024 at 16:04, Mark Brown wrote: > > > > > On Mon, Apr 15, 2024 at 04:19:25PM +0200, Greg Kroah-Hartman wrote: > > > > > > This is the start of the stable review cycle for the 6.6.28 release. > > > > > > There are 122 patches in this series, all will be posted as a response > > > > > > to this one. If anyone has any issues with these being applied, please > > > > > > let me know. > > > > > > > > > > The bisect of the boot issue that's affecting the FVP in v6.6 (only) > > > > > landed on c9ad150ed8dd988 (arm64: tlb: Fix TLBI RANGE operand), > > > > > e3ba51ab24fdd in mainline, as being the first bad commit - it's also in > > > > > the -rc for v6.8 but that seems fine. I've done no investigation beyond > > > > > the bisect and looking at the commit log to pull out people to CC and > > > > > note that the fix was explicitly targeted at v6.6. > > > > > > > > Anders investigated this reported issues and bisected and also found > > > > the missing commit for stable-rc 6.6 is > > > > e2768b798a19 ("arm64/mm: Modify range-based tlbi to decrement scale") > > > > > > Which is definitely *not* stable candidate. We need to understand why > > > the invalidation goes south when the scale go up instead of down. > > > > If you backport e3ba51ab24fd ("arm64: tlb: Fix TLBI RANGE operand") > > which fixes 117940aa6e5f ("KVM: arm64: Define > > kvm_tlb_flush_vmid_range()") but without the newer e2768b798a19 > > ("arm64/mm: Modify range-based tlbi to decrement scale"), it looks like > > "scale" in __flush_tlb_range_op() goes out of range to 4. Tested on my > > CBMC model, not on the actual kernel. It may be worth adding some > > WARN_ONs in __flush_tlb_range_op() if scale is outside the 0..3 range or > > num greater than 31. > > > > I haven't investigated properly (and I'm off tomorrow, back on Thu) but > > it's likely the original code was not very friendly to the maximum > > range, never tested. Anyway, if one figures out why it goes out of > > range, I think the solution is to also backport e2768b798a19 to stable. > > I looked into this, and I came to the conclusion that this patch is > pretty much incompatible with the increasing scale (even if you cap > num to 30). Thanks Marc for digging into this. > So despite my earlier comment, it looks like picking e2768b798a19 is > the right thing to do *if* we're taking e3ba51ab24fd into 6.6-stable. > > Otherwise, we need a separate fix, which Ryan initially advocating for > initially. My preference would be to cherry-pick the two upstream commits than coming up with an alternative fix for 6.6. -- Catalin