Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp124169lqb; Tue, 16 Apr 2024 10:28:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUywQzF1wU2hxjp4Aqssrbrp3zRG9m/fZfCAuVFjqkoKA+emY7SOckH/Iqis8TaOpJRTd9g4NjsN2duVRvPiNpbksxElr1ZaARyuHV/jQ== X-Google-Smtp-Source: AGHT+IEEjmWN4GYStiqojP4a7fSutvvSRMt7djE3JENQ9AJb15aVdcfImWE2CemYYwE/4gaz6qMx X-Received: by 2002:a19:6912:0:b0:515:7686:6068 with SMTP id e18-20020a196912000000b0051576866068mr9743457lfc.55.1713288505441; Tue, 16 Apr 2024 10:28:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713288505; cv=pass; d=google.com; s=arc-20160816; b=ajj59yaBc7sIspSruLtguz3mQKZqPqrJZxUVehSdMFBXhZlw8LXvQgzKIkA0pwhPkW DZckjum4RNTkshXkbi0qbww4ms+/4lIUEFvqZB+ub0QCqaOQlsxNQrWLj3AiZ0d0j2gQ 231fAYBJWoIDzaBMBWJ9WGZK0utFUZsk7eGp00tojjnfW05zPHJrVSGFq5mZRoRAt0+7 ccjKnY/DHttCUVVw4317IneYQ3p2tDnSke7x1sge3v2VQ5W2rFbZuPJgmEfNu3Z+EiEU ABFDw8okZzS328stlog6OwnBDRYMcjRbs5/y7uSSErVI12gsrivc6KSBr/AltOX0zjDC Xjvw== 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=WdiQ9lQE88uOD1T3aRyAVq2vAVbPitt1ofJysQMs1gs=; fh=W1rr/uEGZ7gP7tnxEhCSXpQ9xa8FsPw0yM+xtzUMQn4=; b=phFe6fPo9YAf5YYeYqk1eZekVAOxNqHoyLNi6JxwXEhC+Syiqy90TjQxaRcJXMnFtu g1LWZWr67wVwraoF0oUnsmECIBvp/sIhkAHwkz67sBm4ejQSErgc0c0koTXSxXxkkY5r BYqqZjSp9xC4c+Vqpp0DFt4W9QhJ6BQuOPmF+ckOkECjMtibhZHSCSIUWo2n8PE9GhWu i4uwl9CXWhhN8xEfuX4Dr8vjmZM/gBY5m2+OfvYcDyn3kQZD1IM0J07678UE9c4SbHr6 euFKUXGjUjyuWkDn7is1BwBpOPloOLpTBi2+4t29Q7CeeBtEm52GfTgBqoglmN7QIlM6 nSeQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-147309-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147309-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id do4-20020a170906c10400b00a5211f83c2esi6194443ejc.662.2024.04.16.10.28.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 10:28:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147309-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-147309-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147309-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 06D101F23213 for ; Tue, 16 Apr 2024 17:28:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8DDF61332BC; Tue, 16 Apr 2024 17:28:19 +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 0738F10A22; Tue, 16 Apr 2024 17:28:18 +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=1713288499; cv=none; b=iUuEnuxCBGF1ZZJye/kujOMjzs4jLYxorePrSmPs3dGK93Xel+BK0H0C3c77zFTXYPzmf3YNXldVIq05lnNoa5RKq1XSZSN6IkOOOhd/+rbIE1YSTq7Ty5A4WduBF2xj+HOJuGmQDOhREbYcnCuB8ifUrb1nF0Qdk4K47DB5Neg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713288499; c=relaxed/simple; bh=fzIQWinEL64tdKbuV71MRaTNL67LcKX8BvwcAqWO8DA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PztHaNVNL3lnP8oWdrLxK2Td98SEWtPYCEyrTUUM6tbq7cL4wHvrWxr2DAk29C9p/SuFfFQi6I8IOkX5Sx+uY5m3Go/dROjxOOP5f/zRcshBMivArsEQAh3AIUE9wNc96tHuWEgfbSpwxuQ5+Z327kuXtgOXKg2pE6MJ+SVSWPQ= 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 5EABFC113CE; Tue, 16 Apr 2024 17:28:13 +0000 (UTC) Date: Tue, 16 Apr 2024 18:28:10 +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> 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: <86y19dqw74.wl-maz@kernel.org> 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. -- Catalin