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 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 EA2E0C433FE for ; Fri, 18 Nov 2022 11:19:31 +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:In-Reply-To:From:References:Cc:To: Subject:MIME-Version: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=dmRrjtrYOFQT/4EosPewyqxTXqsM5FCwE+lrJpW4J2A=; b=zn+fpVjjrzJEZJ uGQe7+1jjLoOCq5+gPRXLfIIC/yDfC6k//QsXUe0hXSBO6L+5/BUzw+0DKxjB+bismmHuGNnNaddQ 8oZPNACPBYtwVEENO3mVJXzG9OfJIipioOpYVKPYl1BBghRKZT0TGsmN9BQezsNWUoF43DHg34V7z MawVUiDBnF4O02RIoCRmg2Q1vSQHK7tXMXpNCcqhFyn9J54PUWuXQJLMDs9PHL0yWZsWG7tE2pF3Z oaqvRhi6j1rVS+es724Eyl2/REri4vHjQpeKjMWwL4jT6mwTBA0oAxbP+qJBdudfVzVgZdRnJfYCd XU+9W4SHu7dqTwc2+dbg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovzNx-003bQu-9u; Fri, 18 Nov 2022 11:18:17 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovzNu-003bQa-Hc for linux-arm-kernel@lists.infradead.org; Fri, 18 Nov 2022 11:18:16 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A21AC23A; Fri, 18 Nov 2022 03:18:16 -0800 (PST) Received: from [192.168.0.110] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2DBCA3F587; Fri, 18 Nov 2022 03:18:06 -0800 (PST) Message-ID: Date: Fri, 18 Nov 2022 16:48:03 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [RFC PATCH 0/7] arm64: Enable LPA2 support for 16k pages Content-Language: en-US To: Catalin Marinas , Ard Biesheuvel Cc: linux-arm-kernel@lists.infradead.org, Marc Zyngier , Will Deacon , Mark Rutland , Kees Cook , Mark Brown , Richard Henderson References: <20221117132423.1252942-1-ardb@kernel.org> From: Anshuman Khandual In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221118_031814_678551_D3F91408 X-CRM114-Status: GOOD ( 17.99 ) 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 11/18/22 16:08, Catalin Marinas wrote: > Hi Ard, > > On Thu, Nov 17, 2022 at 02:24:16PM +0100, Ard Biesheuvel wrote: >> Enable support for LPA2 when running with 16k pages. Unlike with 4k >> pages, this does not require adding support for 5 level paging, but >> beyond that, there is no fundamental difference between LPA2 support on >> 4k or 16k pages. > We have some patches already from Anshuman, targeting both 4K and 16K > pages: > > https://lore.kernel.org/r/1632998116-11552-1-git-send-email-anshuman.khandual@arm.com > > I don't think they've been rebased on top of 6.1-rcX though. Could you > please liaise with Anshuman and agree on a way forward? I'd rather only > review a single series if they do the same thing. I have a preference > for a more complete solution (4K and 16K) rather than just 16K pages. I > think we can even ignore some corner cases like 39-bit VA (if anyone is > asking, we could do it later but it doesn't seem realistic). > > And a question for Anshuman: do you plan to refresh your series? This contains above series rebased on v6.1-rc1, but without an working idmap though, which prevents booting the kernel loaded beyond 48 bits PA. https://gitlab.arm.com/linux-arm/linux-anshuman/-/commits/lpa2/rfc/v2/ But in the local tree, fixed 'init_idmap_pg_dir' to boot the kernel beyond 48 bit physical address for [4K|48VA|52PA], but still working towards getting the runtime 'idmap_pg_dir' right, although the kernel still boots if 'init_pg_dir' is used instead in all such places. Regardless, I will post the series early next week for all of us to sync up. - Anshuman _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel