From patchwork Thu Sep 30 10:50:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 12527967 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 30900C433EF for ; Thu, 30 Sep 2021 10:53:26 +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 EE91F613CD for ; Thu, 30 Sep 2021 10:53:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org EE91F613CD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=synaptics.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:MIME-Version: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:In-Reply-To:References: List-Owner; bh=FVAjyNj+tfJvYf0xKQDOqmAmGx/tS6mR02b2whqZGVU=; b=SXofP/FnhdFYtB VluQ0x1sIEQbDVv0H0g31aI5tBlqwbtbA/mb8/qRZSeb9o3mYoK0CBk4xadLwHQXMWxNcFWgBwsny YzLicPW7LcLL66zjnvCzNxwCDWdyc336sIGuzrk9m+IqOiTG9q/JvEdW6FVp3WzUsayMDKjWTa6ou NicAv3EVD5tr9y0TF43KvV7jAexZWE79h0tWF0u7zyl0WIpZqYmiPkVw96VWIaDb9eZjW3uwRWXQO Qolcvhmuuf4vxkx/U7YSdUBexuRyuM38LgEE9OcNRPBMnnxc/6L0r3HNhTPtpwtGk4vfgjwqHo2VB bM9tdlS/wVhAt6B/tQcQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVteK-00Duwr-KA; Thu, 30 Sep 2021 10:50:49 +0000 Received: from mail-dm6nam11on2072.outbound.protection.outlook.com ([40.107.223.72] helo=NAM11-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVteH-00Duvj-4G for linux-arm-kernel@lists.infradead.org; Thu, 30 Sep 2021 10:50:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b25JIX3bPazqwae7P1w98hSwHEYGxIAEpHUM8IACX2MX1oRAYgsQrcKLI73I2HI2o85Th9i+urgT0AyR0iheWeo2NGq7gEaphBTqNX4k6cvJOCEGyIb2ia3tCEbrpEUIz9fjM1FurEAUiIol23seemxvU81OYKvOAMp4Xw4pcMy2zfbRqytATJbdYChB4KW1ONGTLj8JLxrjCysOvO3JrRKT54m5418rCJJvSB3zHgqFMb0Q61FDGrxA0BvvgKXRQQxGptpJgKaSMcTwnfALxBBcBYkQDou2cW45m7FxnzczfxLwoDU0gAWMtwYWeyddkGjizP9JrQE9m/GSe74N3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=GK+QUfWvw0cYqYwmuqg+yPPv3B0AewQdmXMj9bblINA=; b=OiU/bSK7HFE5DY6DXw5t+3MvKN9N2nUjuUBA8keoBAdULru5MXNcJwlaJNgSIdZm/uNTNVF1hSbMJZygimSMFWFMuJGgTE2HvMBLllI9oQqILmN8wYbWsVsO9Je1/cQPt4ArjT9rPVdWd8+VCAGU9p4yWQQPRQFW21vuW4c8tiCfs7SzLquHZ9Jb9hQB42AtKVHhlgYdd1YYO/sOOMG0Pe3cU9/3hKIgyTkQ26XgAT/FwWUIcI8/JU87CRLQF2BiqDTtUcpjXLCIFJBJYIzC2QaoIW9fJffXoE+ed/AZnsbm9ryWu4f89oBR3V8HO0rbcL8XliNZCk7uRIaIX5wE6g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=synaptics.com; dmarc=pass action=none header.from=synaptics.com; dkim=pass header.d=synaptics.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Synaptics.onmicrosoft.com; s=selector2-Synaptics-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GK+QUfWvw0cYqYwmuqg+yPPv3B0AewQdmXMj9bblINA=; b=FN2dwSTqe0QUEFxSeJ02F0Fvb1IjFIkfvbBsgoWg4gClgAJ7W1ykMj9pQhvnv1UwA1IW3hCrj7AQsLBSb1uGUxZA3wuHi72nBYq0d4v/VT5JqioQqBnEQT3sVsL06KKkdlkNV5ubHAvsgf3NrwvBdo5C/pzvF/iMu5Hr7Oa20FQ= Authentication-Results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=synaptics.com; Received: from BN9PR03MB6058.namprd03.prod.outlook.com (2603:10b6:408:137::15) by BN8PR03MB4788.namprd03.prod.outlook.com (2603:10b6:408:98::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.15; Thu, 30 Sep 2021 10:50:41 +0000 Received: from BN9PR03MB6058.namprd03.prod.outlook.com ([fe80::19a1:1a10:ff3b:be65]) by BN9PR03MB6058.namprd03.prod.outlook.com ([fe80::19a1:1a10:ff3b:be65%7]) with mapi id 15.20.4544.021; Thu, 30 Sep 2021 10:50:40 +0000 Date: Thu, 30 Sep 2021 18:50:26 +0800 From: Jisheng Zhang To: Catalin Marinas , Will Deacon , Jonathan Corbet Cc: linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] Documentation/arm64: add memory layout with 4KB pages + VA39-bit Message-ID: <20210930185026.1609f12e@xhacker.debian> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) X-ClientProxiedBy: BY5PR04CA0019.namprd04.prod.outlook.com (2603:10b6:a03:1d0::29) To BN9PR03MB6058.namprd03.prod.outlook.com (2603:10b6:408:137::15) MIME-Version: 1.0 Received: from xhacker.debian (192.147.44.204) by BY5PR04CA0019.namprd04.prod.outlook.com (2603:10b6:a03:1d0::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.15 via Frontend Transport; Thu, 30 Sep 2021 10:50:38 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1ee76cf0-d1b8-4dab-1d16-08d9840024e2 X-MS-TrafficTypeDiagnostic: BN8PR03MB4788: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4941; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: b+Q/OCx9QYjlvzI8Glxac5ZIRkOe9M5PCGPVtvMVYlls4wudS/egYld7YEQ5c6RO8nCYIxA3538KZFeORzFrXrqgrK1x1FqnZh4GrytdL+jRz2vRhJhxYLkaMJYo2rQTUR/Vfths5X9DuYKGzIwvfLndPibpzIbBLgz+NFjsEiE7VuWdqI/qpY0RAKyaB0eL4UevsRbUvu/e+VFEaxttQ6jJsqKbvlur6Qzdw7jwIoe/4OAfb8kZfALLA95IdrWPIEhbLnXMFNYhtmWAjkgz0vZuiypphi6r+thfa3b5rgai9cKV8WDLLZYIyyPg4l9/TCFd/mqZzrphwon3oQbp2JpUYeegcxmKn4CaJZs6k0dN3mWJpMlyxCu6BSMEqkCMlXVCGbAXIOUFhHtHovjJ36Vfl6jYPQ2FYeQkcSpBGRmkMMTTdNScofKFdYnqR7bUO3h/yns8y+E21S7F5lkZMvMwX5nPhKWdvVfbI+HuV1ZbnEiGV1qD2+uwx3XBvETw3tY7bcK4wqNS98oPofZ0LqZT3Onu5O69hfF1IzrbgtfvP30FuYTYLoxgq1aACRuHh7l3/IQS7+PqxD3AluLWYL8rwN/bnWDgCb2H37cHf5DV+Mkc3pBJVSBqcFEhaeW/fHi+ipOjBFC3jv9QCZGq7yi2w2fM1bIMqi+jIxCVWMSMMqHp0M3o9ahi0gxuLfBa0Y1vBIlT+g5+wyZDaS/Jqg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN9PR03MB6058.namprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(316002)(956004)(2906002)(55016002)(9686003)(38350700002)(38100700002)(6666004)(86362001)(186003)(5660300002)(52116002)(1076003)(6506007)(508600001)(110136005)(26005)(4326008)(7696005)(66476007)(66946007)(8676002)(66556008)(8936002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: vnSUaT1kto3nIbJplDExXEpOSAyOGeopDqAEi0QvJDwjqzLTglQ3nqUybQ/T6JUW+d7S6BZz4Ku11MzS8OP1iISZBgPmIrquemEmJ/1TMBSAv/W5vR5Cq1g796Gdab+Zc4/WcFscG79huo4IR7S1g3AVYuU+Ct8vapAujRAsDPAFEeaqZgcvNVnbmA0lKVkIRGd14f0WRjIfTsTsqd+65lJu++f5BKPFmHCDeMLWuvRt4P+GPRHUojgzKtEtJeVZ92ncc1yKi7Zlesl5FOMq2mfaMza5oUnj1+zHMsqSquMNFqAWtR+q1zYdfB5ccqWHPdeXwmDKCQ/+xjaA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8-4dab-1d16-08d9840024e2 X-MS-Exchange-CrossTenant-AuthSource: BN9PR03MB6058.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2021 10:50:40.5003 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: HMtgVtP/M2falngc3lZxIKcsDwdQl6SwNeO8wPBrrzW8JhlfqTlXGGJaxIOGlZzOgixw39P7xNB2rXvUnRFNPQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR03MB4788 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210930_035045_288562_C2A32DBF X-CRM114-Status: UNSURE ( 7.97 ) X-CRM114-Notice: Please train this message. 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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] + + AArch64 Linux memory layout with 4KB pages + 4 levels (48-bit):: Start End Size Use