Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1128444pxb; Thu, 19 Aug 2021 21:27:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+Jby7omKIzGPysDKSEn4/tvkTAB+8N7iLedTwrVYSxJTXdy6GPigBou3+edYNsZYeq2mq X-Received: by 2002:a17:906:7250:: with SMTP id n16mr19280295ejk.147.1629433639337; Thu, 19 Aug 2021 21:27:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629433639; cv=none; d=google.com; s=arc-20160816; b=ylghI9uz87BYi2yubYexjDW5hwGqufFa6RQeThZhKF8Wt137c6Vs0dDfnaSS49oGml AzVufTm81M8zowZyY92XkxcSh+Zl1Xl3gf859La71WHGBP2wlgHreB4ozeUBCdqWD2ft Y6CGVtFqDlfBelr/mGBUsSKlMRpXHs1WLFqhzyNKjY/COGrBbczImb+udIey/7N7p8CG unOSbnmJpytBx4EmFYvUciB4PyhAZkoNpu0JmVxl2DA4EzbQVBd7n2gl44+6D2qFkHgz tI3yPVSkvaE9e9YmL50WpIUD18BsjHMpgJ5qFfa7QHQvi4dUgZdas0tRJqDVbHu3F20L YdsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=TY6nLrmjoHyAzLgmjUDiH3O3rM9kTfEtWkmi+ZvE6rY=; b=w16/NusheiDCJO7x/KiMH0jKQ4GpFOv+IR4NWuN6EaslJx337XBHaRelhjW8X0y9WN YXU8zWVcrPqipa5tKnTcUUl6Nf/Qa+MaxChmnZE8jZuFzyD2j4IEnSCweyHZKpCOKCjW VIbg8XJxJ7rvnTaUBS5/XvSSTAqULykw834rsl077oKTtCx/Tr0FSUPUBb4BjUBTQFQ6 ZX1Up2k0EZTv7KFUVMdUqUDC+Qfq+tXVAhktkBbV5yxtuYnQ9lEG8NGDLPp/YNV7OvFg GpxwKrJik7kvbPDEHQ5jEy5lFX957EVh+fE+pguZFvGotFvtETADiS2dTCS/9ZB38cti rEmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=qudDX4J8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r8si746264edh.510.2021.08.19.21.26.55; Thu, 19 Aug 2021 21:27:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=qudDX4J8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232629AbhHTEZ7 (ORCPT + 99 others); Fri, 20 Aug 2021 00:25:59 -0400 Received: from ozlabs.org ([203.11.71.1]:46319 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbhHTEZ6 (ORCPT ); Fri, 20 Aug 2021 00:25:58 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4GrT7x1KM1z9sW5; Fri, 20 Aug 2021 14:25:17 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1629433517; bh=TY6nLrmjoHyAzLgmjUDiH3O3rM9kTfEtWkmi+ZvE6rY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=qudDX4J8UWi+6+7ay40xF74TpJv5cn1tKDShtykYbqO0aN8uz7Dk+LBw4Gl6G5AXk /6jCrrW4nVyt2fmGYJy/vu8bu1j1y3yTDdDvMgHc0SDQRiTlnLzeJJ0UBwRIrqIvSU d/EFP6j2FHPpLCx1w5KGwNtKJ7PhGlIJuBMr/u2TdiPESqu76d2WNgpczVCBFFiH/X qidFxO9hZBiSMGIPElyGlVAsc1mtkzp2STrpSIXCawTHn6q4ne1W3x8xXP/sY8FYR1 QBM71FxIuPndLFePXsK3aY761+IdT+UOAW3HRLllVgfahmq5wBwPeAQkmPe7b66adV mJy8XZkR/kZUQ== From: Michael Ellerman To: Daniel Axtens , Lukas Bulwahn , Paul Mackerras , Benjamin Herrenschmidt , Michael Neuling , Anshuman Khandual , kvm-ppc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Cc: Lukas Bulwahn , kernel-janitors@vger.kernel.org, stable@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/2] powerpc: rectify selection to ARCH_ENABLE_SPLIT_PMD_PTLOCK In-Reply-To: <87pmu99e4j.fsf@dja-thinkpad.axtens.net> References: <20210819113954.17515-1-lukas.bulwahn@gmail.com> <20210819113954.17515-3-lukas.bulwahn@gmail.com> <87pmu99e4j.fsf@dja-thinkpad.axtens.net> Date: Fri, 20 Aug 2021 14:25:12 +1000 Message-ID: <87a6lceo9j.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Daniel Axtens writes: > Lukas Bulwahn writes: > >> Commit 66f24fa766e3 ("mm: drop redundant ARCH_ENABLE_SPLIT_PMD_PTLOCK") >> selects the non-existing config ARCH_ENABLE_PMD_SPLIT_PTLOCK in >> ./arch/powerpc/platforms/Kconfig.cputype, but clearly it intends to select >> ARCH_ENABLE_SPLIT_PMD_PTLOCK here (notice the word swapping!), as this >> commit does select that for all other architectures. >> >> Rectify selection to ARCH_ENABLE_SPLIT_PMD_PTLOCK instead. >> > > Yikes, yes, 66f24fa766e3 does seem to have got that wrong. It looks like > that went into 5.13. > > I think we want to specifically target this for stable so that we don't > lose the perfomance and scalability benefits of split pmd ptlocks: > > Cc: stable@vger.kernel.org # v5.13+ > > (I don't think you need to do another revision for this, I think mpe > could add it when merging.) Yeah. I rewrote the change log a bit to make it clear this is a bug fix, not a harmless cleanup. cheers powerpc: Re-enable ARCH_ENABLE_SPLIT_PMD_PTLOCK Commit 66f24fa766e3 ("mm: drop redundant ARCH_ENABLE_SPLIT_PMD_PTLOCK") broke PMD split page table lock for powerpc. It selects the non-existent config ARCH_ENABLE_PMD_SPLIT_PTLOCK in arch/powerpc/platforms/Kconfig.cputype, but clearly intended to select ARCH_ENABLE_SPLIT_PMD_PTLOCK (notice the word swapping!), as that commit did for all other architectures. Fix it by selecting the correct symbol ARCH_ENABLE_SPLIT_PMD_PTLOCK. Fixes: 66f24fa766e3 ("mm: drop redundant ARCH_ENABLE_SPLIT_PMD_PTLOCK") Cc: stable@vger.kernel.org # v5.13+ Signed-off-by: Lukas Bulwahn Reviewed-by: Daniel Axtens [mpe: Reword change log to make it clear this is a bug fix] Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20210819113954.17515-3-lukas.bulwahn@gmail.com