Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4787681pxv; Tue, 20 Jul 2021 11:28:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4+g6fgHcT6j/2v1gg1SJu5k+irnx3b1NHQcHicP+U25iv43FbktE3cj1a0jkftuJc6cZn X-Received: by 2002:a92:d912:: with SMTP id s18mr21927567iln.172.1626805686433; Tue, 20 Jul 2021 11:28:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626805686; cv=none; d=google.com; s=arc-20160816; b=PubgeRzlJVur0RamD57LpRfBUlzBFhI1UJbTjIlUo7DfK53oO7ot1ROKZ2QkoBUW1c Tla3e0IB31HiYY0bbrjEG3g7CNF3tBlYHBNbFzv/wqKxBvOJhrnSpgKM/TczZbmXIq+k xi3wV1d8mkI9bOBw8FJH05rt3T0Wyp7JC+9LlFEwLfAmkqQJJkiL3qnMGVg62KLRsTxi n9b8BkR30iSuHU7msnnX/KEPAhsCrO7w0Q9KifU5yEz9PTR07CwHVGmMc663W5YuY5yk oiWGFYA1QDAaPsXznJDqXPd3I0YFsLbyMTfSInHlmf723zFojBA9Y6rOOBu+nPWsYpJl cmSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-disposition :mime-version:user-agent:in-reply-to:subject:cc:to:from:message-id :date; bh=wybWP5enYHYSCdtyslzETV8WHzdSE7T+0UhXe8OODSs=; b=PyRQkiGHAOUjccBM32aW4zdmq/Ysmowe+s9lez0ORLuguNHCWIatHdwHN22VOpmkAA POA41h+K6o445/Nxj4iUDZh41g0SXazNkI3ivbRPKs1DkWxxvMnxDWTQt4+CR/DeDYbY LwrA4moHmRi0XbmhLhb1Lg7BCEpQ+/tmYyl3JzdYMUk6OZykYXwzxYz20onfkTivy/hc lJ9ef4MWMAHkOKKW0wrlRFYigg893DOConMFbocD7hgFYjo3lRSu8Cfa4ZTqissQxg4B KrE0O/G5CuoA69w+slAwJlqK9pAlha9e7tlq3csDY1FuC8ZJvKSUTzv0KczJkxvQm4ma glYQ== ARC-Authentication-Results: i=1; mx.google.com; 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 z14si16369533ilu.89.2021.07.20.11.27.54; Tue, 20 Jul 2021 11:28:06 -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; 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 S230471AbhGTRmQ convert rfc822-to-8bit (ORCPT + 99 others); Tue, 20 Jul 2021 13:42:16 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:35866 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232589AbhGTRkm (ORCPT ); Tue, 20 Jul 2021 13:40:42 -0400 Received: from localhost (mailhub3.si.c-s.fr [192.168.12.233]) by localhost (Postfix) with ESMTP id 4GTn8p11xBzB61P; Tue, 20 Jul 2021 20:21:14 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id azco6Acv840f; Tue, 20 Jul 2021 20:21:14 +0200 (CEST) Received: from vm-hermes.si.c-s.fr (vm-hermes.si.c-s.fr [192.168.25.253]) by pegase1.c-s.fr (Postfix) with ESMTP id 4GTn8n6vwfzB61K; Tue, 20 Jul 2021 20:21:13 +0200 (CEST) Received: by vm-hermes.si.c-s.fr (Postfix, from userid 33) id 182D3702; Tue, 20 Jul 2021 20:26:27 +0200 (CEST) Received: from 37-165-28-27.coucou-networks.fr (37-165-28-27.coucou-networks.fr [37.165.28.27]) by messagerie.c-s.fr (Horde Framework) with HTTP; Tue, 20 Jul 2021 20:26:27 +0200 Date: Tue, 20 Jul 2021 20:26:27 +0200 Message-ID: <20210720202627.Horde.vlszNhxkKrLIg0-3Sn2ucw5@messagerie.c-s.fr> From: Christophe Leroy To: Will Deacon Cc: linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, Marc Zyngier , Geert Uytterhoeven , Mark Rutland , Mike Rapoport , Andrew Morton , Catalin Marinas , Jonathan Marek , Paul Mackerras , Benjamin Herrenschmidt , Thomas Gleixner , Michael Ellerman , Ard Biesheuvel , linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2] Fix arm64 boot regression in 5.14 In-Reply-To: <20210720123512.8740-1-will@kernel.org> User-Agent: Internet Messaging Program (IMP) H5 (6.2.3) Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Will Deacon a écrit : > Hi folks, > > Jonathan reports [1] that commit c742199a014d ("mm/pgtable: add stubs > for {pmd/pub}_{set/clear}_huge") breaks the boot on arm64 when huge > mappings are used to map the kernel linear map but the VA size is > configured such that PUDs are folded. This is because the non-functional > pud_set_huge() stub is used to create the linear map, which results in > 1GB holes and a fatal data abort when the kernel attemps to access them. > > Digging further into the issue, it also transpired that huge-vmap is > silently disabled in these configurations as well [2], despite working > correctly in 5.13. The latter issue causes the pgtable selftests to > scream due to a failing consistency check [3]. > > Rather than leave mainline in a terminally broken state for arm64 while > we figure this out, revert the offending commit to get things working > again. Unfortunately, reverting the change in isolation causes a build > breakage for 32-bit PowerPC 8xx machines which recently started relying > on the problematic stubs to support pte-level huge-vmap entries [4]. > Since Christophe is away at the moment, this series first reverts the > PowerPC 8xx change in order to avoid breaking the build. > > I would really like this to land for -rc3 and I can take these via the > arm64 fixes queue if the PowerPC folks are alright with them. > If you can drop patch 1, Change patch 2 to add the two following functions in arch/powerpc/mm/nohash/8xx.c : int pud_clear_huge(pud_t *pud) { return 0; } int pmd_clear_huge(pmd_t *pmd) { return 0; } Then feel free to take it via ARM fixes with my acked-by as maintainer of PPC8XX. Christophe > Cheers, > > Will > > [1] https://lore.kernel.org/r/20210717160118.9855-1-jonathan@marek.ca > [2] https://lore.kernel.org/r/20210719104918.GA6440@willie-the-truck > [3] > https://lore.kernel.org/r/CAMuHMdXShORDox-xxaeUfDW3wx2PeggFSqhVSHVZNKCGK-y_vQ@mail.gmail.com/ > [4] > https://lore.kernel.org/r/8b972f1c03fb6bd59953035f0a3e4d26659de4f8.1620795204.git.christophe.leroy@csgroup.eu/ > > Cc: Ard Biesheuvel > Cc: Michael Ellerman > Cc: Thomas Gleixner > Cc: Benjamin Herrenschmidt > Cc: Christophe Leroy > Cc: Paul Mackerras > Cc: Jonathan Marek > Cc: Catalin Marinas > Cc: Andrew Morton > Cc: Nicholas Piggin Cc: Mike Rapoport > Cc: Mark Rutland > Cc: Geert Uytterhoeven > Cc: Marc Zyngier > Cc: linuxppc-dev@lists.ozlabs.org > Cc: linux-arm-kernel@lists.infradead.org > > --->8 > > Jonathan Marek (1): > Revert "mm/pgtable: add stubs for {pmd/pub}_{set/clear}_huge" > > Will Deacon (1): > Revert "powerpc/8xx: add support for huge pages on VMAP and VMALLOC" > > arch/arm64/mm/mmu.c | 20 ++++----- > arch/powerpc/Kconfig | 2 +- > arch/powerpc/include/asm/nohash/32/mmu-8xx.h | 43 -------------------- > arch/x86/mm/pgtable.c | 34 +++++++--------- > include/linux/pgtable.h | 26 +----------- > 5 files changed, 25 insertions(+), 100 deletions(-) > > -- > 2.32.0.402.g57bb445576-goog