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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 27E83C4167B for ; Tue, 29 Nov 2022 15:33:04 +0000 (UTC) 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:In-Reply-To:From: References:Cc:To:Subject:Date:Message-ID:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=saeiH/hNAyYzIe9unZV8ii5jSuB56daT/IzO5+yJweA=; b=wiZ5p5pEovP5JMLj2iGCWDdpCh pkoQfuBG9vl9I+doZ4DaZFR3PHeByzFTH0zFMsRT21HUB3zYn8Ko6PhF9bLKX0421QSIaTe2eQn8k Jq9GCQATlWTfQfSKiXQWkxjNXlOHgymNQEQZQng7UeI3W8NTBh39OJ6PpPBvnekALYvpzTCfR2z+v DiKpOKdslTlLkqBB4YFe53xyVLx98+uF0LTt4OsAneWeVYyKIb7uh9fcYlIs6/db15r4VUTnqQREP zS5FfgD4m896sCHhB2r7bULeiFj1zywDPh4/73jaIuCDr8VTeeSSMirt6GKhNefMTWJTsbg+JX81r BP1g+cwg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p02aD-009jnP-8I; Tue, 29 Nov 2022 15:31:41 +0000 Received: from mail-am7eur03on20618.outbound.protection.outlook.com ([2a01:111:f400:7eaf::618] helo=EUR03-AM7-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p02a7-009jjS-Oi for linux-arm-kernel@lists.infradead.org; Tue, 29 Nov 2022 15:31:38 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FLUIVfTdZihmkLuhJRT6CzdW/+EetHKchXY3Tb/35FdYynS3eJMstGOlr9ZM3ojVRhbhzqWHmbdBbcxSKViIWA2PSKlo8EbBQpstqVX88dSrvjZGL4cMAV9CAqzbB9/RG5VOviPyjpePmo41ck3HmPd7T4XnPKcU94+x+NFSzAse+a2AQWF+izZAejMOXGrCrCHMsmhS/CrSHUFKwxWWFKebHm5/6gSMiUJX4U6MUUpI5xGmPVKooq+Fx9FH0OSOnbn+E6S65cvQzKQ5Z7zsp1qXAc6qHf7HHr+UNfVytHT4A5V820NdUFxMG2bIF1J9XiLB8T0SOzCVmE9GKlm0qQ== 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:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=3kpvP1bsgnuWZi0UGkSE70YRCFTgQQBmdNuJ81xTe24=; b=bTcWv7Y7AZvhRCgEm7AfD5BXA0RLhq4/qJXnM9sHkyOMWNJ3fu+ADMUsZ2HwDisd4C2kM+ub67HnHYcbHLxZy2fK6MGWRSM3DhAe61ogebtUI+E/ia5adgCfGQsoO7wbpdiE+4l5fObKALUFAhrcgxABD6xFDwyxsLnScfqraVzPoiEvLcjhv7S7CCZ1fLYc6azlueEaeiOqXzsJgaVEMytVHe5Ji5FSzlxmwpx4etuTZEqqBlANW5uq/+jL5Z4X+WcmKuuqZBI3e69JmVI4pq5GF34aDOxFvBHIYhMDRWAewe2gkhRzsn+0PwG5DulCD6T+IPTTrWzNYuJ1uP+rYQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3kpvP1bsgnuWZi0UGkSE70YRCFTgQQBmdNuJ81xTe24=; b=JvI01l9H4bwgt3wrXTLNo1By8MhP3euPcago1kyQN/SpJa96JBsaevl5XmrayXBEBxGKiOF9X/e68ODgGfqnWXgLbXoaIuQsexwCOIPLgqi77bABQBj6Qg2nc7pM9+eH75ot3RM+UFYerOmY83C7UfxAXjgY4U6/CRN8tQ7JKLk= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from AS8PR08MB6995.eurprd08.prod.outlook.com (2603:10a6:20b:34d::13) by AS8PR08MB6072.eurprd08.prod.outlook.com (2603:10a6:20b:296::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.8; Tue, 29 Nov 2022 15:31:30 +0000 Received: from AS8PR08MB6995.eurprd08.prod.outlook.com ([fe80::e825:ff01:1f8:4c1f]) by AS8PR08MB6995.eurprd08.prod.outlook.com ([fe80::e825:ff01:1f8:4c1f%4]) with mapi id 15.20.5880.008; Tue, 29 Nov 2022 15:31:30 +0000 Message-ID: <053a9129-2424-e1fe-0e7d-b410984b7bfa@arm.com> Date: Tue, 29 Nov 2022 15:31:28 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH v2 00/19] arm64: Enable LPA2 support for 4k and 16k pages Content-Language: en-US To: Ard Biesheuvel , linux-arm-kernel@lists.infradead.org Cc: Marc Zyngier , Will Deacon , Mark Rutland , Kees Cook , Catalin Marinas , Mark Brown , Anshuman Khandual , Richard Henderson References: <20221124123932.2648991-1-ardb@kernel.org> From: Ryan Roberts In-Reply-To: <20221124123932.2648991-1-ardb@kernel.org> X-ClientProxiedBy: LO4P265CA0110.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:2c3::14) To AS8PR08MB6995.eurprd08.prod.outlook.com (2603:10a6:20b:34d::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR08MB6995:EE_|AS8PR08MB6072:EE_ X-MS-Office365-Filtering-Correlation-Id: 17356c62-d7b9-464f-f4dc-08dad21ec953 NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: X1QKvLUPpFHx8zRUz4wLjyFYGdO6J9W/vnl8HebMzogro0z3n/qovgo9zmn7dNDYKEnDvgGtRmXXm5zdNN6eilgeQB/+Oqi910oHMYWVUddvF86Y36l0neHr5mckEqW18o3xWZxG++xJGiocwuAFUT+39gxu32YjbZoYua3+DED1SmRxZE1Pnjw6mN+KlUDFFCxxmOzuRWa6xIFNGI5p0AH9tsnF1yP0xWQAYs5pV21YfSKZV7UT6OI5auNpBG8XQIVD96kEEC8OT9Nj92e1eIq23cL2lOQeK8A9HXGskskY6kW8VERiWmvirXTiWI3sq1wKdoZVW3zb9M1EzIG/e/zf4HbB6OoGetbxBLvxrr9gEVjzNxG8pcM79mkN2rSy02ySECxLAXzb0hcyAnKnRdVhLth1RQeN+YozE0hsidwj2TGkpvpo1cWQprEYdsnzuRsDJf+vinBgniCkuRVuYYsKNZhajP/DnolEGMdoHmrHGrGNMgEvs3bnUAc+jXsq7ox40ZRMvvjLK+ejPXjXHocRFslj5RJnb1F09AlHL+H5t8/ruZ2JLSuSqYjEL0e39hFjrJyCExHirriBXD5G8tsLhs2TNZisHSYYCa04BuCWCA7xhjQGAm0D2NoMzaDTx0+O0ckq/FCPA3AlOnHnk0JtmvSxO0WA32ZaeQGBcyKmqOMW2dMIaWZqO+88aUWLHCfBbuRxDkdTzzD7//5wDr+eGRpuUvt3NgO7L7iO5yJtqzZiCtLOV0r7GYlK+ZeC X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS8PR08MB6995.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(366004)(346002)(39860400002)(396003)(376002)(136003)(451199015)(2616005)(31686004)(2906002)(83380400001)(26005)(38100700002)(966005)(66946007)(66476007)(41300700001)(66556008)(478600001)(8676002)(53546011)(36756003)(6506007)(6512007)(6486002)(186003)(8936002)(66899015)(5660300002)(31696002)(4326008)(86362001)(54906003)(44832011)(316002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Sk1TS2JwVEZoeVMyajJITG9aOHNOYk9WcGpSMk5yT0ZGZldHTytiRDBXNVRo?= =?utf-8?B?R0ZVclZBTzloTFF4SUMrQWxGdVp5YU4vVzY5MUF5U2JXTVoyOERtQkVzZGgz?= =?utf-8?B?NjdESURqc1JoWlhNZXBud1JIZG5qVlhaaUhiSGxqL3JJRVB3eWorblBWNVpm?= =?utf-8?B?eHRWNmVLMDdiL1paN3Y0dUsrSi9WOW9ERzZIekN6MW5ITWM5N0VYWG80VDI5?= =?utf-8?B?VDFaRmpIUk9CTDA2UjJMdm1ZUmo1WGk1dXl2S25DN2xsNFFjTXRGem1xNHp4?= =?utf-8?B?ZUljVCtJc2VYck1TL2c3a05MS2JkQ2lkVkkzbTkra01LUFZEU3FTRjhjMWxS?= =?utf-8?B?M2kyUUowblQrd0dZellkSFgyQ1ZOcWo0Ni9JZ0ViZDk1d2tQdkhVUExnczJa?= =?utf-8?B?d0EzTEE4Q1kvTHhJamdTTEJtNEc3QVA5cWxSRWxyQVk5bm5LMDRnZXQzT0du?= =?utf-8?B?OHhqazRaK0lneGZPOFVLUldmOXlwRk1JdGhTc2k5aFZlQjN2cVpqUFlkZUtD?= =?utf-8?B?Q0lwWENQV2gxUU9wQ1loV3ZHVktjbmpIWUlrRlFZcHV5Uzd1SHIwQnIwR0pu?= =?utf-8?B?ZDNhbmNDb2VTRmlqcStKTVUxSmNaRGpCS1dlc0RmczNTVjJsSFlKVjBZcm1z?= =?utf-8?B?ckZuYlhINWF0cGN4dHBCNTZLc09GMWdmS2NHMTVvSHhJRXpocVdhbnJHQkF5?= =?utf-8?B?ckhmSlh1WFdNaGVrNzl5bk9JZXJWYjVxNUpBME9GSWRQYUdNYzl6UFliYjNk?= =?utf-8?B?emR1ZFNZTDdIcmVpRnY3R2RSTDNSOXkvOXFZYUNJYzFqUkh4bHJmNGkzQmoy?= =?utf-8?B?NTIwUGgwUEhuanZJYnNYajF6T3VqUTNXQThDU2drMGVWbzNKS2JuY1k3ZEZM?= =?utf-8?B?eTFOUUMvNVJNcTNXb2tJa2ZNMEdvZ0Y2ZTN2NVU4RXNxSnVGazdteE1NSmZt?= =?utf-8?B?OUF2Zkhhc0FPdUxmSVFvSkw1MGFLbUYxaHZCNUxSQ1V2ZEpRVldKYmg4SUN4?= =?utf-8?B?WWdKeUhSOHlHc0FiSGRyTjk5VzdpaFR6SzY4bTlZWVNhV3IvNi81QVF4bWM1?= =?utf-8?B?cnZQc1NnMkE4SGo3dVJWejdqdEpYR3FPQndGOGNFSlQzVW5Wd2x1S3JGTm5u?= =?utf-8?B?Z0xZdEtYVEVWdGtodGhiY3Y5ckxUNS9vS284QkFkQTh4WTZsdE1PdDk5MXBr?= =?utf-8?B?dVJySm54ZUdac0hrUGMzNTAwSVA1VTdNei9NQllyZ3BNTTgyVndzM3NVMTZ2?= =?utf-8?B?S1ptSGpid2FucmJYOVN4YTZrRHFsUzdReEV2dWxtU3ROTkxXMnh5R1ZsVDFq?= =?utf-8?B?WU8yY2o3M2pySmpSdVRRWGNsemJTam5neUI1ZXUwN0RDZTNQeFpxb2VGNGFX?= =?utf-8?B?K1hweUV4bFhOVkt4aVlxZnBObjZrR2ZSK3NXUko0SVQvbTRLazlhNW5SVEpy?= =?utf-8?B?cFNYclQ0ZXNQVDdPR1kxeHhJRUk2VTRvWjZTUHNHUGMyeHQ5ZUFoTDBaZXFO?= =?utf-8?B?R1V5aDMyZlB3WGpKbFV4OWUxVmtpNzJqcEgzcjlMakp5YnBSRjVnTVhiRWR0?= =?utf-8?B?ckVoMlpFRy9SdndmZVV1MzUxR240L1VaelZWK1h1SmY4TkR3WnZBakd2MVZm?= =?utf-8?B?c244VVpzRVlCWnY3YldOTXBQRG5rTWlzRTQxSFFTNnY4OG11aFc3M05WeEFI?= =?utf-8?B?ZUtvdUtOQ05saWpsVkhYZlF0cllJR3NGaXRZam1lSHJXeUJwclBOeVlSWnhU?= =?utf-8?B?Z0JzMUwyM2NDSXBRTHZCR1Q5Um12T1J4NGpTVUpQcEJ5bWg5eUk2dldUdGlC?= =?utf-8?B?Sm5McERHSmY1NVFSdnU5b1hPekFKRlJvc3Q1bi9LY250OGJuNW92M2F0Ymtl?= =?utf-8?B?b2E0bGFhWGY0TjAycU9HNlJ3U25rYkN5WDNjcksreVpHV1ZOZ1JEamN4UzFJ?= =?utf-8?B?UmFhY2tHeFBEMEl5VWoyY2pnR2o5dDcwZGpHR1RheE41OXd5UDBHNjNPMDlS?= =?utf-8?B?WnllYWUyNTVNdmhLY0h3bVdyaTNEcFNBZWlha2NUVmoyK1dRZDQ0NFRLNlRG?= =?utf-8?B?eUJYTkVUTlhLZUhNUE02VFlzaWg3THRGbWpiK2ttMTZqaVVnZzRNTGowdVpK?= =?utf-8?Q?2dIr6g6TXIbfIUL+N5d5XPqTX?= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: 17356c62-d7b9-464f-f4dc-08dad21ec953 X-MS-Exchange-CrossTenant-AuthSource: AS8PR08MB6995.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Nov 2022 15:31:29.7108 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: HTTUfouhBqiVyjiFdRIAFwShG5dU4YktftpRCEQRb6KVH0Si/s3MHGaIxBdMU1sZtMSAtIUvPfziQSkKhQwR1w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6072 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221129_073136_314204_F179FD7C X-CRM114-Status: GOOD ( 37.81 ) 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 Hi Ard, As promised, I ran your patch set through my test set up and have noticed a few issues. Sorry it turned into rather a long email... First, a quick explanation of the test suite: For all valid combinations of the below parameters, boot the host kernel on the FVP, then boot the guest kernel in a VM, check that booting succeeds all the way to the guest shell then poweroff guest followed by host can check shutdown is clean. Parameters: - hw_pa: [48, lpa, lpa2] - hw_va: [48, 52] - kvm_mode: [vhe, nvhe, protected] - host_page_size: [4KB, 16KB, 64KB] - host_pa: [48, 52] - host_va: [48, 52] - host_load_addr: [low, high] - guest_page_size: [64KB] - guest_pa: [52] - guest_va: [52] - guest_load_addr: [low, high] When *_load_addr is 'low', that means the RAM is below 48 bits in (I)PA space. 'high' means the RAM starts at 2048TB for the guest (52 bit PA), and it means there are 2 regions for the host; one at 0x880000000000 (48 bit PA) sized to hold the kernel image only and another at 0x8800000000000 (52 bit PA) sized at 4GB. The FVP only allows RAM at certain locations and having a contiguous region cross the 48 bit boundary is not an option. So I chose these values to ensure that the linear map size is within 51 bits, which is a requirement for nhve/protected mode kvm. In all cases, I preload TF-A bl31, kernel, dt and initrd into RAM and run the FVP. This sidesteps problems with EFI needing low memory, and with the FVP's block devices needing DMA memory below 44 bits PA. bl31 and dt are appropriately fixed up for the 2 different memory layouts. Given this was designed to test my KVM changes, I was previously running these without the host_load_addr=high option for the 4k and 16k host kernels (since this requires your patch set). In this situation there are 132 valid configs and all of them pass. I then rebased my changes on top of yours and added in the host_load_addr=high option. Now there are 186 valid configs, 64 of which fail. (some of these failures are regressions). From a quick initial triage, there are 3 failure modes: 1) 18 FAILING TESTS: Host kernel never outputs anything to console TF-A runs successfully, says it is jumping to the kernel, then nothing further is seen. I'm pretty confident that the blobs are loaded into memory correctly because the same framework is working for the other configs (including 64k kernel loaded into high memory). This affects all configs where a host kernel with 4k or 16k pages built with LPA2 support is loaded into high memory. 2) 4 FAILING TESTS: Host kernel gets stuck initializing KVM During kernel boot, last console log is "kvm [1]: vgic interrupt IRQ9". All failing tests are configured for protected KVM, and are build with LPA2 support, running on non-LPA2 HW. 3) 42 FAILING TESTS: Guest kernel never outputs anything to console Host kernel boots fine, and we attempt to launch a guest kernel using kvmtool. There is no error reported, but the guest never outputs anything. Haven't worked out which config options are common to all failures yet. Finally, I removed my code, and ran with your patch set as provided. For this I hacked up my test suite to boot the host, and ignore booting a guest. I also didn't bother to vary the KVM mode and just left it in VHE mode. There were 46 valid configs here, of which 4 failed. They were all the same failure mode as (1) above. Failing configs were: id hw_pa hw_va host_page_size host_pa host_va host_load_addr ------------------------------------------------------------------ 40 lpa 52 4k 52 52 high 45 lpa 52 16k 52 52 high 55 lpa2 52 4k 52 52 high 60 lpa2 52 16k 52 52 high So on the balance of probabilities, I think failure mode (1) is very likely to be due to a bug in your code. (2) and (3) could be my issue or your issue: I propose to dig into those a bit further and will get back to you on them. I don't plan to look any further into (1). Thanks, Ryan On 24/11/2022 12:39, Ard Biesheuvel wrote: > Enable support for LPA2 when running with 4k or 16k pages. In the former > case, this requires 5 level paging with a runtime fallback to 4 on > non-LPA2 hardware. For consistency, the same approach is adopted for 16k > pages, where we fall back to 3 level paging (47 bit virtual addressing) > on non-LPA2 configurations. (Falling back to 48 bits would involve > finding a workaround for the fact that we cannot construct a level 0 > table covering 52 bits of VA space that appears aligned to its size in > memory, and has the top 2 entries that represent the 48-bit region > appearing at an alignment of 64 bytes, which is required by the > architecture for TTBR address values. Also, using an additional level of > paging to translate a single VA bit is wasteful in terms of TLB > efficiency) > > This means support for falling back to 3 levels of paging at runtime > when configured for 4 is also needed. > > Another thing worth to note is that the repurposed physical address bits > in the page table descriptors were not RES0 before, and so there is now > a big global switch (called TCR.DS) which controls how all page table > descriptors are interpreted. This requires some extra care in the PTE > conversion helpers, and additional handling in the boot code to ensure > that we set TCR.DS safely if supported (and not overridden) > > Note that this series is mostly orthogonal to work by Anshuman done last > year: this series assumes that 52-bit physical addressing is never > needed to map the kernel image itself, and therefore that we never need > ID map range extension to cover the kernel with a 5th level when running > with 4. And given that the LPA2 architectural feature covers both the > virtual and physical range extensions, where enabling the latter is > required to enable the former, we can simplify things further by only > enabling them as a pair. (I.e., 52-bit physical addressing cannot be > enabled for 48-bit VA space or smaller) > > This series applies onto some of my previous work that is still in > flight, so these patches will not apply in isolation. Complete branch > can be found here: > https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git/log/?h=arm64-4k-lpa2 > > It supersedes the RFC v1 I sent out last week, which covered 16k pages > only. It also supersedes some related work I sent out in isolation > before: > > [PATCH] arm64: mm: Enable KASAN for 16k/48-bit VA configurations > [PATCH 0/3] arm64: mm: Model LVA support as a CPU feature > > Tested on QEMU with -cpu max and lpa2 both off and on, as well as using > the arm64.nolva override kernel command line parameter. Note that this > requires a QEMU built from the latest sources. > > Cc: Marc Zyngier > Cc: Will Deacon > Cc: Mark Rutland > Cc: Kees Cook > Cc: Catalin Marinas > Cc: Mark Brown > Cc: Anshuman Khandual > Cc: Richard Henderson > Cc: Ryan Roberts > > Anshuman Khandual (3): > arm64/mm: Simplify and document pte_to_phys() for 52 bit addresses > arm64/mm: Add FEAT_LPA2 specific TCR_EL1.DS field > arm64/mm: Add FEAT_LPA2 specific ID_AA64MMFR0.TGRAN[2] > > Ard Biesheuvel (16): > arm64: kaslr: Adjust randomization range dynamically > arm64: mm: get rid of kimage_vaddr global variable > arm64: head: remove order argument from early mapping routine > arm64: mm: Handle LVA support as a CPU feature > arm64: mm: Deal with potential ID map extension if VA_BITS > > VA_BITS_MIN > arm64: mm: Add feature override support for LVA > arm64: mm: Wire up TCR.DS bit to PTE shareability fields > arm64: mm: Add LPA2 support to phys<->pte conversion routines > arm64: mm: Add definitions to support 5 levels of paging > arm64: mm: add 5 level paging support to G-to-nG conversion routine > arm64: Enable LPA2 at boot if supported by the system > arm64: mm: Add 5 level paging support to fixmap and swapper handling > arm64: kasan: Reduce minimum shadow alignment and enable 5 level > paging > arm64: mm: Add support for folding PUDs at runtime > arm64: ptdump: Disregard unaddressable VA space > arm64: Enable 52-bit virtual addressing for 4k and 16k granule configs > > arch/arm64/Kconfig | 23 ++- > arch/arm64/include/asm/assembler.h | 42 ++--- > arch/arm64/include/asm/cpufeature.h | 2 + > arch/arm64/include/asm/fixmap.h | 1 + > arch/arm64/include/asm/kernel-pgtable.h | 27 ++- > arch/arm64/include/asm/memory.h | 23 ++- > arch/arm64/include/asm/pgalloc.h | 53 +++++- > arch/arm64/include/asm/pgtable-hwdef.h | 34 +++- > arch/arm64/include/asm/pgtable-prot.h | 18 +- > arch/arm64/include/asm/pgtable-types.h | 6 + > arch/arm64/include/asm/pgtable.h | 197 ++++++++++++++++++-- > arch/arm64/include/asm/sysreg.h | 2 + > arch/arm64/include/asm/tlb.h | 3 +- > arch/arm64/kernel/cpufeature.c | 46 ++++- > arch/arm64/kernel/head.S | 99 +++++----- > arch/arm64/kernel/image-vars.h | 4 + > arch/arm64/kernel/pi/idreg-override.c | 29 ++- > arch/arm64/kernel/pi/kaslr_early.c | 23 ++- > arch/arm64/kernel/pi/map_kernel.c | 115 +++++++++++- > arch/arm64/kernel/sleep.S | 3 - > arch/arm64/mm/init.c | 2 +- > arch/arm64/mm/kasan_init.c | 124 ++++++++++-- > arch/arm64/mm/mmap.c | 4 + > arch/arm64/mm/mmu.c | 138 ++++++++++---- > arch/arm64/mm/pgd.c | 17 +- > arch/arm64/mm/proc.S | 76 +++++++- > arch/arm64/mm/ptdump.c | 4 +- > arch/arm64/tools/cpucaps | 1 + > 28 files changed, 907 insertions(+), 209 deletions(-) > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel