Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp732269imk; Sun, 3 Jul 2022 07:33:09 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sKkUMZjpTlG+VHgByjnNIMbYQCxcGwCNrUtGUo8R4v1drxVHb7s08V8CfKwYaGY9zWm2Ao X-Received: by 2002:a17:903:240c:b0:169:52d:cd75 with SMTP id e12-20020a170903240c00b00169052dcd75mr30434566plo.12.1656858789018; Sun, 03 Jul 2022 07:33:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656858789; cv=none; d=google.com; s=arc-20160816; b=yFuVcDwib3fv7IB7svv6IKlJfm3eUvFT6zv72iVoKMPHyaObgNDB+ytYfqbsq5vdtC H/zo/kv346b+ucoIlRJSD78xOtAmE4iSvuLS88Uif9T0S653S2cMl0fCNPZF3cl/aROv Nwf/S8AujKmSTL/x71ukX2fvXWH17oBHJR5vpFrdPIFvdrUSUhfGFcjZbsDerc+Av4u3 W1dVDDVPAW5fd3nj1zKdQn7oxmACGsUg1+1AzvFdl3qQwTPG2yVRfhOl6TUr8mvUmu01 sF/ukl+m0zKJ3sZJ/PjAgiiX4mkMfW7JDP3WIhuR5fIRax1zB0YtTl3ao6NMM9biwtic x62A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=2BHZnrTiJq40gs6XL2piNixhsQb3YxrYEnpyRzDwgjE=; b=iJSos87BREA+Bslr2xNYj36yro5ufVVoT/JBb9vrMviF7KQtpKhQZCS16JmoA5Eogw SE8NuluSqbZ0uYvTVbbp+ENtT8vzBI841cK3gPmnKS3CyXF3BuBSkdv45tky3ytYQgvx x2EUHqdCx8gZeEH1dkAsw6KMHu+nj+2/zELGBVNsUTnsA+x9ExBHwY5fYkntsxLXcqoN ZP1lxl6kYRJVmQ4WNrZI/W34AoTZOq9fmQ6ZmkRZJgp/ll/rp19Xd/36MnsdM9pDWffU 9C9OR0XE/i44A+zSUj/4n8/t8+5ciGnd1TI1osWbjRMVnCTB/Xbh5iIBnvYjiTT3VvOs JogA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=ORwSUvdJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x11-20020a170902ec8b00b00158f13b4872si37122375plg.7.2022.07.03.07.32.56; Sun, 03 Jul 2022 07:33:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=ORwSUvdJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232280AbiGCO2b (ORCPT + 99 others); Sun, 3 Jul 2022 10:28:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232438AbiGCO2Z (ORCPT ); Sun, 3 Jul 2022 10:28:25 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BB9F5F97; Sun, 3 Jul 2022 07:28:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1656858456; bh=KpMsHnx9Tsp7wOc9jjTIPho/g3tytR/7fGCZ5b759AM=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=ORwSUvdJToU2aXOJAJPZwcMyPo7q0XD+wGtaAB2xnE4kIXQinjKN7cvfKaF6t7fRQ lAaLHf77rqiX34NSbv8ZSOu8ADwZeC6AO5motJK3mLiRcqCpaBQyUzyAkzsgFjyIAM I3nLRzeuce6TjeLKwhv3UKZ/wE1ldGByknXolypQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.20.60] ([92.116.162.245]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M9o21-1oDFEA3HC1-005uUC; Sun, 03 Jul 2022 16:27:35 +0200 Message-ID: <512b4acb-af9c-6582-dcfd-f4f12e2ff2a1@gmx.de> Date: Sun, 3 Jul 2022 16:27:04 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH 00/14] arch: make PxD_ORDER generically available Content-Language: en-US To: Mike Rapoport , Andrew Morton Cc: Arnd Bergmann , Dinh Nguyen , Guo Ren , Huacai Chen , "James E.J. Bottomley" , Matthew Wilcox , Max Filippov , Mike Rapoport , Thomas Bogendoerfer , WANG Xuerui , linux-arch@vger.kernel.org, linux-csky@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-mm@kvack.org, linux-parisc@vger.kernel.org, linux-xtensa@linux-xtensa.org, loongarch@lists.linux.dev References: <20220703141203.147893-1-rppt@kernel.org> From: Helge Deller In-Reply-To: <20220703141203.147893-1-rppt@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:tZaoKhBevvnK9vyAvxGLbJ1WxgHLdBoWB78yUVKCeDwceL+1g3k 3nDQgqHWbR+FLBaS1qmHK3M1GE2+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WQsanSMtlDGiwsA0Gi+sTfrGIYl8S9otwjN8OKVrUbAsi4SwK+MSBxpzh3XbNS8vV Dy6AQYB9KMCtNy4gW6lH5we1Sdjh6g3eY96y0YDokwcrYh72pTSEW0rnEzJlW2TpYNyRqQwnm nJbF+b9CC7mgfnRHQiCV5wfw9U8f1qobXhknV8I2gShGHg3bN5XDpq7T22iRazIfdy5vCwa+G VS0fv/SYXgFaD0nwapGDq/UtmXNOj5JzeXPqAd0IPUxT5UZv8uk5zYgGQ== X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/3/22 16:11, Mike Rapoport wrote: > From: Mike Rapoport > > Hi, > > The question what does PxD_ORDER define raises from time to time and > there is still a conflict between MIPS and DAX definitions. > > Some time ago Matthew Wilcox suggested to use PMD_TABLE_ORDER to define > the order of page table allocation: > > [1] https://lore.kernel.org/linux-arch/YPCJftSTUBEnq2lI@casper.infradead= .org/ > > The parisc patch made it in, but mips didn't. > Now mips defines from asm/include/pgtable.h were copied to loongarch whi= ch > made it worse. > > Let's deal with it once and for all and rename PxD_ORDER defines to > PxD_TABLE_ORDER or just drop them when the only possible order of page > table is 0. > > I think the best way to merge this via mm tree with acks from arch > maintainers. That's fine for me. Acked-by: Helge Deller # parisc Thanks! Helge > Matthew Wilcox (Oracle) (1): > mips: Rename PMD_ORDER to PMD_TABLE_ORDER > > Mike Rapoport (13): > csky: drop definition of PTE_ORDER > csky: drop definition of PGD_ORDER > mips: Rename PUD_ORDER to PUD_TABLE_ORDER > mips: drop definitions of PTE_ORDER > mips: Rename PGD_ORDER to PGD_TABLE_ORDER > nios2: drop definition of PTE_ORDER > nios2: drop definition of PGD_ORDER > loongarch: drop definition of PTE_ORDER > loongarch: drop definition of PMD_ORDER > loongarch: drop definition of PUD_ORDER > loongarch: drop definition of PGD_ORDER > parisc: Rename PGD_ORDER to PGD_TABLE_ORDER > xtensa: drop definition of PGD_ORDER > > arch/csky/include/asm/pgalloc.h | 2 +- > arch/csky/include/asm/pgtable.h | 6 +-- > arch/loongarch/include/asm/pgalloc.h | 6 +-- > arch/loongarch/include/asm/pgtable.h | 27 +++++------- > arch/loongarch/kernel/asm-offsets.c | 5 --- > arch/loongarch/mm/pgtable.c | 2 +- > arch/loongarch/mm/tlbex.S | 6 +-- > arch/mips/include/asm/pgalloc.h | 8 ++-- > arch/mips/include/asm/pgtable-32.h | 19 ++++----- > arch/mips/include/asm/pgtable-64.h | 61 +++++++++++++--------------- > arch/mips/kernel/asm-offsets.c | 5 --- > arch/mips/kvm/mmu.c | 2 +- > arch/mips/mm/pgtable.c | 2 +- > arch/mips/mm/tlbex.c | 14 +++---- > arch/nios2/include/asm/pgtable.h | 7 +--- > arch/nios2/mm/init.c | 5 +-- > arch/nios2/mm/pgtable.c | 2 +- > arch/parisc/include/asm/pgalloc.h | 6 +-- > arch/parisc/include/asm/pgtable.h | 8 ++-- > arch/xtensa/include/asm/pgalloc.h | 2 +- > arch/xtensa/include/asm/pgtable.h | 1 - > 21 files changed, 84 insertions(+), 112 deletions(-) > > > base-commit: 03c765b0e3b4cb5063276b086c76f7a612856a9a