Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp21077572ybl; Sun, 5 Jan 2020 19:32:39 -0800 (PST) X-Google-Smtp-Source: APXvYqyxdyGK7L1gvy3ajwemCw9kZWvwPyVgS811RUn/KivvlE+0TDsVpHaENRUl6i8kzCBO22NX X-Received: by 2002:a9d:6f07:: with SMTP id n7mr109877842otq.112.1578281559101; Sun, 05 Jan 2020 19:32:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578281559; cv=none; d=google.com; s=arc-20160816; b=tSriFlyB+Yqt7Nwim99vLPf23c69bGYulgXg8GjFoPXm4ROFOAukqiLFvs1Wpp+hSN mEO8dapFzsZy/Nge7Usj3UqVBbZnLFlVy74cCT+5Vfx+6WRQZZRddvslp1KG/s9Pwtzv xn+pWRr3S18eEuBkPoHggePQqus/yTZjTFhD85wD0y6nuBPsZ41KvSK69kMamZijdTwl yjveVTArcVVmUDnqK9wa/nuL82E3h3BuNHdiS9nlZ//S4NEU2wRWC3UCQfe3IFgK2aQ5 Mnyud4lNHp1tHlxqk1sRFFFetDXSZhd/OInyh+vh9PYrVIy5yHLeyS8vkVELSNRS930x IoYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=YZwVMKaMcOJ+utkbq5q01jLjFIdfGimFlt1RlsWbDGo=; b=iZwhDTbsZqY72r+pUnjLj/drPpyWgjRf5c7lBrLYuNV0tAOXBnmngADTJsH7hTYM8W e9cVG6EHFtKgjZGVF5I87dQNZhiw0Wk/XKqhTeYA5dw2jJUSpWM404lJDvNovFCtUexH kFbfmtHAbaaC/2lWPCg0L0Ahc+egHXwVy9gOD7+Ay86pZa1vFd9sHQfhVUFzYtJVHc8G szK5mKUDFf5n46qXpP7veWpCLTUH3H66hQbx7LM8zrE1iUnxKvO0BPN/4+yem23alhAq bezhbxqua2j7bE6QHWjQJAfcVCLFucEB4SsijnzY46Q2XH7+UdmNOPBEyCQQbbA+ZPd8 sL+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=PseaXQkA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 12si29098420oiz.131.2020.01.05.19.32.26; Sun, 05 Jan 2020 19:32:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=PseaXQkA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727432AbgAFDbq (ORCPT + 99 others); Sun, 5 Jan 2020 22:31:46 -0500 Received: from ozlabs.org ([203.11.71.1]:59061 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727307AbgAFDbq (ORCPT ); Sun, 5 Jan 2020 22:31:46 -0500 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 47rgzM5PMRz9sNH; Mon, 6 Jan 2020 14:31:43 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1578281504; bh=XeP8e7qXes4HkHyMRiVW9bZkBg9wHSfCUbqH7aV7fWI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=PseaXQkADJFYGx4SaZsY8sR8oWICr+mRYyYr5fMd+fnxepINCrjznL1PLsh6Nvlcn C1u/dXFf4MPhZL0D3/iqEg9lgO6lddEzi7k8X0HlcU7EhFoWF8V4KqQ1Ld2vrgfOmF 8xJRGQoZEGXrYoUV/poOaGavJ6HBQ2pGlgOVg5ya1DWljIM/GdntvZDnnQIq1d0vrn hTzu3/amT42926Hf0wiuK4vD84ztJ5fo4OrAw0rbPyiT9uWXu/81Da9MUXvFi6V7H1 lLmTIKEcYguwgRIibijKxb9zOk2IpkUFVNbaOcqwzS7oP1rsO6pmo5ALTydI/FzVoh lt/4slorVh1DA== From: Michael Ellerman To: Mike Rapoport Cc: Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Mike Rapoport Subject: Re: [PATCH] powerpc: add support for folded p4d page tables In-Reply-To: <20200102081059.GA12063@rapoport-lnx> References: <20191209150908.6207-1-rppt@kernel.org> <20200102081059.GA12063@rapoport-lnx> Date: Mon, 06 Jan 2020 14:31:41 +1100 Message-ID: <87v9ppi7ky.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mike Rapoport writes: > Any updates on this? It's very ... big, and kind of intrusive. It's not an improvement as far as the powerpc code's readability is concerned. I assume the plan is that the 5-level hack can eventually be removed and so this conversion is a prerequisite for that? cheers > On Mon, Dec 09, 2019 at 05:09:08PM +0200, Mike Rapoport wrote: >> From: Mike Rapoport >> >> Implement primitives necessary for the 4th level folding, add walks of p4d >> level where appropriate and replace 5level-fixup.h with pgtable-nop4d.h. >> >> Signed-off-by: Mike Rapoport >> --- >> arch/powerpc/include/asm/book3s/32/pgtable.h | 1 - >> arch/powerpc/include/asm/book3s/64/hash.h | 4 +- >> arch/powerpc/include/asm/book3s/64/pgalloc.h | 4 +- >> arch/powerpc/include/asm/book3s/64/pgtable.h | 58 ++++++++++-------- >> arch/powerpc/include/asm/book3s/64/radix.h | 6 +- >> arch/powerpc/include/asm/nohash/32/pgtable.h | 1 - >> arch/powerpc/include/asm/nohash/64/pgalloc.h | 2 +- >> .../include/asm/nohash/64/pgtable-4k.h | 32 +++++----- >> arch/powerpc/include/asm/nohash/64/pgtable.h | 6 +- >> arch/powerpc/include/asm/pgtable.h | 8 +++ >> arch/powerpc/kvm/book3s_64_mmu_radix.c | 59 ++++++++++++++++--- >> arch/powerpc/lib/code-patching.c | 7 ++- >> arch/powerpc/mm/book3s32/mmu.c | 2 +- >> arch/powerpc/mm/book3s32/tlb.c | 4 +- >> arch/powerpc/mm/book3s64/hash_pgtable.c | 4 +- >> arch/powerpc/mm/book3s64/radix_pgtable.c | 19 ++++-- >> arch/powerpc/mm/book3s64/subpage_prot.c | 6 +- >> arch/powerpc/mm/hugetlbpage.c | 28 +++++---- >> arch/powerpc/mm/kasan/kasan_init_32.c | 8 +-- >> arch/powerpc/mm/mem.c | 4 +- >> arch/powerpc/mm/nohash/40x.c | 4 +- >> arch/powerpc/mm/nohash/book3e_pgtable.c | 15 +++-- >> arch/powerpc/mm/pgtable.c | 25 +++++++- >> arch/powerpc/mm/pgtable_32.c | 28 +++++---- >> arch/powerpc/mm/pgtable_64.c | 10 ++-- >> arch/powerpc/mm/ptdump/hashpagetable.c | 20 ++++++- >> arch/powerpc/mm/ptdump/ptdump.c | 22 ++++++- >> arch/powerpc/xmon/xmon.c | 17 +++++- >> 28 files changed, 284 insertions(+), 120 deletions(-)