From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 444CCC433EF for ; Wed, 6 Oct 2021 17:14:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 29A28610A2 for ; Wed, 6 Oct 2021 17:14:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238694AbhJFRQg (ORCPT ); Wed, 6 Oct 2021 13:16:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:57626 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229835AbhJFRQf (ORCPT ); Wed, 6 Oct 2021 13:16:35 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A1B2760F58; Wed, 6 Oct 2021 17:14:41 +0000 (UTC) Date: Wed, 6 Oct 2021 18:14:38 +0100 From: Catalin Marinas To: Jisheng Zhang Cc: Will Deacon , Jonathan Corbet , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Documentation/arm64: add memory layout with 4KB pages + VA39-bit Message-ID: References: <20210930185026.1609f12e@xhacker.debian> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210930185026.1609f12e@xhacker.debian> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 30, 2021 at 06:50:26PM +0800, Jisheng Zhang wrote: > The 4KB pages + 3 levels (39-bit) combination is also widely used in > arm64 world, add the memory layout description for this combination. > > Signed-off-by: Jisheng Zhang > --- > Documentation/arm64/memory.rst | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > > diff --git a/Documentation/arm64/memory.rst b/Documentation/arm64/memory.rst > index 901cd094f4ec..d1745b570f0c 100644 > --- a/Documentation/arm64/memory.rst > +++ b/Documentation/arm64/memory.rst > @@ -26,6 +26,23 @@ The swapper_pg_dir address is written to TTBR1 and never written to > TTBR0. > > > +AArch64 Linux memory layout with 4KB pages + 3 levels (39-bit):: > + Start End Size Use > + ----------------------------------------------------------------------- > + 0000000000000000 0000007fffffffff 512GB user > + ffffff8000000000 ffffffbfffffffff 256GB kernel logical memory map > + [ffffffb000000000 ffffffbfffffffff] 64GB [kasan shadow region] > + ffffffc000000000 ffffffc007ffffff 128MB bpf jit region > + ffffffc008000000 ffffffc00fffffff 128MB modules > + ffffffc010000000 fffffffdefffffff 253440MB vmalloc > + fffffffdf0000000 fffffffdfdffffff 224MB fixed mappings (top down) > + fffffffdfe000000 fffffffdfe7fffff 8MB [guard region] > + fffffffdfe800000 fffffffdff7fffff 16MB PCI I/O space > + fffffffdff800000 fffffffdffffffff 8MB [guard region] > + fffffffe00000000 ffffffffefffffff 4GB vmemmap > + ffffffff00000000 ffffffffffffffff 4GB [guard region] I wouldn't bother maintaining these. There are other combinations that people may use. The 4KB + 48-bit VA is defconfig while 64KB + 52-bit was more interesting, so we thought it would be useful. I'm more inclined to remove them altogether and maybe just add some high-level ascii art as per the log of commit f4693c2716b3 ("arm64: mm: extend linear region for 52-bit VA configurations"). -- Catalin From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B124DC433EF for ; Wed, 6 Oct 2021 17:16:41 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6B10660F4B for ; Wed, 6 Oct 2021 17:16:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 6B10660F4B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=eyYhXHQWSuw31JFoS87/Crlcl1hKpwuv5Rl4Y6Uxmtg=; b=Me1Yy6N7/KibnJ 6+fdbEekegQHfd/5/3s0elgva4FTue7waGaVGgRxVFxIaAMQrXWH2Qyku8MvrxNpvNt4m52m5NOGy hj8mcT7/AipUuEvV7SG1baalSODxnd9JNeiY/jLn0qKxMcZ9dWXIrwTkIirG5fEPSiII8qZTJxdew mA7hkjNpeNYW+nVXdsr5jUJm0TsW08BrFl6JfdAWmKvYIYE0T/XEKmJJ+O4oRLEx4hgq5v0EQh+2H HjVt4vrxMRuvRv2anX+irmAA7oKmNPCZNl/6lnv8c4XBk6K3ezEyVXHCqsvyhIseD+s+nHmGF0I4h 2X+YpiZG7SJmYWfn/cVg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mYAVD-00FBdE-J3; Wed, 06 Oct 2021 17:14:47 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mYAVA-00FBcZ-84 for linux-arm-kernel@lists.infradead.org; Wed, 06 Oct 2021 17:14:45 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id A1B2760F58; Wed, 6 Oct 2021 17:14:41 +0000 (UTC) Date: Wed, 6 Oct 2021 18:14:38 +0100 From: Catalin Marinas To: Jisheng Zhang Cc: Will Deacon , Jonathan Corbet , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Documentation/arm64: add memory layout with 4KB pages + VA39-bit Message-ID: References: <20210930185026.1609f12e@xhacker.debian> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210930185026.1609f12e@xhacker.debian> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211006_101444_327063_A73D5185 X-CRM114-Status: GOOD ( 16.05 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Sep 30, 2021 at 06:50:26PM +0800, Jisheng Zhang wrote: > The 4KB pages + 3 levels (39-bit) combination is also widely used in > arm64 world, add the memory layout description for this combination. > > Signed-off-by: Jisheng Zhang > --- > Documentation/arm64/memory.rst | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > > diff --git a/Documentation/arm64/memory.rst b/Documentation/arm64/memory.rst > index 901cd094f4ec..d1745b570f0c 100644 > --- a/Documentation/arm64/memory.rst > +++ b/Documentation/arm64/memory.rst > @@ -26,6 +26,23 @@ The swapper_pg_dir address is written to TTBR1 and never written to > TTBR0. > > > +AArch64 Linux memory layout with 4KB pages + 3 levels (39-bit):: > + Start End Size Use > + ----------------------------------------------------------------------- > + 0000000000000000 0000007fffffffff 512GB user > + ffffff8000000000 ffffffbfffffffff 256GB kernel logical memory map > + [ffffffb000000000 ffffffbfffffffff] 64GB [kasan shadow region] > + ffffffc000000000 ffffffc007ffffff 128MB bpf jit region > + ffffffc008000000 ffffffc00fffffff 128MB modules > + ffffffc010000000 fffffffdefffffff 253440MB vmalloc > + fffffffdf0000000 fffffffdfdffffff 224MB fixed mappings (top down) > + fffffffdfe000000 fffffffdfe7fffff 8MB [guard region] > + fffffffdfe800000 fffffffdff7fffff 16MB PCI I/O space > + fffffffdff800000 fffffffdffffffff 8MB [guard region] > + fffffffe00000000 ffffffffefffffff 4GB vmemmap > + ffffffff00000000 ffffffffffffffff 4GB [guard region] I wouldn't bother maintaining these. There are other combinations that people may use. The 4KB + 48-bit VA is defconfig while 64KB + 52-bit was more interesting, so we thought it would be useful. I'm more inclined to remove them altogether and maybe just add some high-level ascii art as per the log of commit f4693c2716b3 ("arm64: mm: extend linear region for 52-bit VA configurations"). -- Catalin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel