From patchwork Tue Aug 13 17:01:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 11092669 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A124A14F7 for ; Tue, 13 Aug 2019 17:02:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 861CF286DD for ; Tue, 13 Aug 2019 17:02:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 781CD286E0; Tue, 13 Aug 2019 17:02:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 10E49286E0 for ; Tue, 13 Aug 2019 17:02:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From: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=h6I7Ez+meqRhEg1uPuho2kCsgQauDxxMFVoLqfZ6LWY=; b=bVp VuU3VmXc97EQwJ81TmODPoBkejMUXLJuNgQchzKQs26AOhQj89sMzy8JiiW+xXIT2uodymrg4DtEh PffTG+4x7PEVTlBGJ+9c9GWc6WbuvL9gsC3FdPe/2ndyd+grtPw2+3kmu3eBXLYPVw6KNOxdZ91s/ FJbHtLgaKex+K6uVki0X34hPLbP7YWIyV9Sld1EkZUFwI7EFp87M6agg2pS0WmbdGpRfBcNXX+q3D tNcN4sVViZ2P1b7dE1Ll/Z8L+0OvCO0h1B9NJXp8sLmchC9mLNCrcLrf1U1GjtywQ+Ja2b4q9JQYd mgvnLH/XzKj3aa+jENVN38z5x4KLXPA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hxaBM-0008OA-F1; Tue, 13 Aug 2019 17:02:00 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hxaBG-0008JF-R4 for linux-arm-kernel@lists.infradead.org; Tue, 13 Aug 2019 17:01:56 +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 454B0337; Tue, 13 Aug 2019 10:01:54 -0700 (PDT) Received: from fuggles.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 244F53F706; Tue, 13 Aug 2019 10:01:53 -0700 (PDT) From: Will Deacon To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 0/8] Fix issues with 52-bit kernel virtual addressing Date: Tue, 13 Aug 2019 18:01:41 +0100 Message-Id: <20190813170149.26037-1-will@kernel.org> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190813_100154_944287_E3A97C91 X-CRM114-Status: UNSURE ( 8.67 ) X-CRM114-Notice: Please train this message. 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: Mark Rutland , Steve Capper , Catalin Marinas , Qian Cai , Andrey Konovalov , Geert Uytterhoeven , Will Deacon MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Hi all, This patch series addresses some issues with 52-bit kernel VAs reported by Qian Cai and Geert. It's all confined to asm/memory.h and I got a bit carried away cleaning that thing up so the patches get more worthless as you go through the series. Still, I'd like to queue this on top of the 52-bit VA stuff currently sitting in -next. Although Geert and Steve tested my initial hacks, I dropped the tags because I've split things up and could've easily broken things again. Cheers, Will Cc: Mark Rutland Cc: Catalin Marinas Cc: Steve Capper Cc: Qian Cai Cc: Andrey Konovalov Cc: Geert Uytterhoeven --->8 Will Deacon (8): arm64: memory: Fix virt_addr_valid() using __is_lm_address() arm64: memory: Ensure address tag is masked in conversion macros arm64: memory: Rewrite default page_to_virt()/virt_to_page() arm64: memory: Simplify virt_to_page() implementation arm64: memory: Simplify _VA_START and _PAGE_OFFSET definitions arm64: memory: Implement __tag_set() as common function arm64: memory: Add comments to end of non-trivial #ifdef blocks arm64: memory: Cosmetic cleanups arch/arm64/include/asm/memory.h | 89 ++++++++++++++++++++--------------------- 1 file changed, 44 insertions(+), 45 deletions(-) Tested-by: Steve Capper Tested-by: Geert Uytterhoeven Reviewed-by: Mark Rutland