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 X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2F48DC433DF for ; Fri, 9 Oct 2020 14:17:48 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 C91072222F for ; Fri, 9 Oct 2020 14:17:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="iqWEDAxl"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="MCznUafs" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C91072222F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=vBSsycG8wBON4AK1wED3dCB3v/9edKt13EirQb0Uhwc=; b=iqWEDAxlUPDWW4VQxUzEaH7uf /PZ6SjTxPC7KULzchA8EmiM2MVQt228s3ROxxi6OFSuKKmNxyw7ikDzufDhw22rsRl0q4mtrhGffc nGeAYMhdW8xMjn2iv79Ru3Xxd/n6ccmpZEa/gwDrnzgHrek3T8kwbGieUh97iC4MLja7yAnoICEmU F2l03oaRBv3sXpun1bD8JNyQVjaCcvZd0YJv2zMyhmDxaIxB3nLa7OtGinFqp8KKryVdKk/Ls+n1o TtJUOsA6f2JkkPeAxqTL0XUk/C/sqHPkNa7MSdUFwQE0I5aNHMXXqiM9CoOek+Wr1juShgHRdfkfL HknvWSr+w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kQtC9-0000Eg-Oh; Fri, 09 Oct 2020 14:16:29 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kQtC3-0000Cy-C6 for linux-arm-kernel@lists.infradead.org; Fri, 09 Oct 2020 14:16:24 +0000 Received: from mail-oo1-f49.google.com (mail-oo1-f49.google.com [209.85.161.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A9216222C3 for ; Fri, 9 Oct 2020 14:16:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602252982; bh=Hdkfb2EA5AFxV1N1fafpkfect0lrieKvM7ixq0cbPiA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=MCznUafsLx1jE8WS0/W4qPVPbpcVXbhp9fX0DQnueptXAa/WcvIMRFGtJXz1+tU5z MFeC6iJtZLicJ7uEpmpncm6m/tXp4J6/xRcm+y8p4EqGL6Qsdqur1W8NpSLZOVlbsw fFBSMBghrVXK0LG6OnEGAybI5UDC775WteI3v97I= Received: by mail-oo1-f49.google.com with SMTP id f2so1676976ooj.2 for ; Fri, 09 Oct 2020 07:16:22 -0700 (PDT) X-Gm-Message-State: AOAM531B9KF/FXTbZd21BWKqU9nF7cgyrEnluT/YjHd6FdwosfMoHybJ UjS59JNrlGzpW/tOLpSkFKfbm9K5NKk8WafCBI0= X-Google-Smtp-Source: ABdhPJyG9+rlQzEEelBDpnYeyoqndVGbH35ZTwLw8hE6sdYC2EHhmpunThFqSZG6WPwdtNqT898h2v2mXypjXV4dYm8= X-Received: by 2002:a4a:b443:: with SMTP id h3mr9289119ooo.45.1602252981928; Fri, 09 Oct 2020 07:16:21 -0700 (PDT) MIME-Version: 1.0 References: <20201008153602.9467-1-ardb@kernel.org> In-Reply-To: <20201008153602.9467-1-ardb@kernel.org> From: Ard Biesheuvel Date: Fri, 9 Oct 2020 16:16:11 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 0/4] arm64: mm: optimize VA space organization for 52-bit To: Linux ARM X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201009_101623_478837_C4BFC448 X-CRM114-Status: GOOD ( 19.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Catalin Marinas , Anshuman Khandual , Will Deacon , Steve Capper 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, 8 Oct 2020 at 17:36, Ard Biesheuvel wrote: > > This series reorganizes the kernel VA space slightly so that 52-bit VA > configurations can use more virtual address space, i.e., the usable > linear address space almost doubles, from 2^51 to 2^52-2^47. > > Patch #1 merges the physvirt_offset and memstart_addr variables, both of > which represent translations between the physical address space and the > linear region, and there is no need for having both. This fixes a bug too, > as the two values were not properly kept in sync when booting with KASLR > enabled. > > Patch #2 updates the definitions for the boundaries of the linear space, > so that 52-bit VA builds use all available space for the linear region. > > Patches #3 and #4 simplify the way the vmemmap region is configured, and > unify the 48-bit/4k and 52-bit/64k layouts. > > Changes since v1: > - drop incorrect use of untagged_addr() from #2 > - add patches #3 and #4 > > Not boot tested yet on a 52-bit VA capable system. > Boot tested now on FVP Base with and without LVA support enabled. > Cc: Steve Capper > Cc: Anshuman Khandual > > Ard Biesheuvel (4): > arm64: mm: use single quantity to represent the PA to VA translation > arm64: mm: extend linear region for 52-bit VA configurations > arm64: mm: make vmemmap region a projection of the linear region > arm64: mm: tidy up top of kernel VA space > > Documentation/arm64/kasan-offsets.sh | 3 +- > Documentation/arm64/memory.rst | 45 +++++++++----------- > arch/arm64/Kconfig | 20 ++++----- > arch/arm64/include/asm/memory.h | 35 +++++++-------- > arch/arm64/include/asm/pgtable.h | 6 +-- > arch/arm64/mm/init.c | 34 ++++++--------- > 6 files changed, 63 insertions(+), 80 deletions(-) > > -- > 2.17.1 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel