From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Ellerman Date: Fri, 20 Aug 2021 04:25:12 +0000 Subject: Re: [PATCH v2 2/2] powerpc: rectify selection to ARCH_ENABLE_SPLIT_PMD_PTLOCK Message-Id: <87a6lceo9j.fsf@mpe.ellerman.id.au> List-Id: References: <20210819113954.17515-1-lukas.bulwahn@gmail.com> <20210819113954.17515-3-lukas.bulwahn@gmail.com> <87pmu99e4j.fsf@dja-thinkpad.axtens.net> In-Reply-To: <87pmu99e4j.fsf@dja-thinkpad.axtens.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 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