From patchwork Thu Nov 21 16:21:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 11256515 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5D31C138C for ; Thu, 21 Nov 2019 16:21:44 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 2A018206D7 for ; Thu, 21 Nov 2019 16:21:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="X+XtSni8" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2A018206D7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 330056B034C; Thu, 21 Nov 2019 11:21:43 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 2B9426B034E; Thu, 21 Nov 2019 11:21:43 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1A8706B034F; Thu, 21 Nov 2019 11:21:43 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0155.hostedemail.com [216.40.44.155]) by kanga.kvack.org (Postfix) with ESMTP id 00FA56B034C for ; Thu, 21 Nov 2019 11:21:42 -0500 (EST) Received: from smtpin26.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with SMTP id 3B2A8181AEF1A for ; Thu, 21 Nov 2019 16:21:42 +0000 (UTC) X-FDA: 76180800444.26.vase29_2bccb8508e05c X-Spam-Summary: 2,0,0,7e28ff1eaf2598ef,d41d8cd98f00b204,rppt@kernel.org,:ralf@linux-mips.org:paulburton@kernel.org:jhogan@kernel.org:linux-mips@vger.kernel.org:linux-kernel@vger.kernel.org::rppt@kernel.org:rppt@linux.ibm.com,RULES_HIT:41:69:355:379:541:800:960:973:988:989:1260:1311:1314:1345:1437:1515:1534:1541:1711:1730:1747:1777:1792:2393:2559:2562:2890:2895:3138:3139:3140:3141:3142:3352:3865:3867:3871:3874:4042:4184:4605:5007:6261:6653:7576:10004:11657:11658:11914:12043:12114:12297:12517:12519:12679:12683:12895:13069:13161:13227:13229:13311:13357:13894:14096:14180:14181:14384:14394:14721:21060:21080:21450:21627:30001:30054:30070,0,RBL:198.145.29.99:@kernel.org:.lbl8.mailshell.net-62.2.0.100 64.100.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:28,LUA_SUMMARY:none X-HE-Tag: vase29_2bccb8508e05c X-Filterd-Recvd-Size: 2559 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf26.hostedemail.com (Postfix) with ESMTP for ; Thu, 21 Nov 2019 16:21:40 +0000 (UTC) Received: from aquarius.haifa.ibm.com (nesher1.haifa.il.ibm.com [195.110.40.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9679A20692; Thu, 21 Nov 2019 16:21:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574353299; bh=jRHPUdh/q+ZeknX4bTbCJ4Ve3ahDcrni2zelflzUwfU=; h=From:To:Cc:Subject:Date:From; b=X+XtSni8UQeUXzHhQgLBpzMWbOSS8CDcezExjVyZM+2HukuGKwgWJlHLzo2LJ6NkH 0tbR4mVunKgjwM/eMIExSaRQytbZ8+LPWBzgxO0NCFs/SKNog22waUMeSJTSNCNZc/ NKJTA9eoEVY76IzqJD7YZrs9xWI1EzTDndq4KQr4= From: Mike Rapoport To: Ralf Baechle , Paul Burton , James Hogan Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Mike Rapoport , Mike Rapoport Subject: [PATCH 0/3] mips: get rid of __ARCH_USE_5LEVEL_HACK Date: Thu, 21 Nov 2019 18:21:30 +0200 Message-Id: <20191121162133.15833-1-rppt@kernel.org> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000027, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Mike Rapoport Hi, These patches update the mips page table folding/unfolding to take into account the 5th level. Mike Rapoport (3): mips: fix build when "48 bits virtual memory" is enabled mips: drop __pXd_offset() macros that duplicate pXd_index() ones mips: add support for folded p4d page tables arch/mips/include/asm/fixmap.h | 2 +- arch/mips/include/asm/pgalloc.h | 4 +-- arch/mips/include/asm/pgtable-32.h | 6 +--- arch/mips/include/asm/pgtable-64.h | 44 ++++++++++++++++-------------- arch/mips/kvm/mmu.c | 40 ++++++++++++++++----------- arch/mips/kvm/trap_emul.c | 4 ++- arch/mips/mm/c-r3k.c | 4 ++- arch/mips/mm/c-r4k.c | 4 ++- arch/mips/mm/c-tx39.c | 4 ++- arch/mips/mm/fault.c | 12 ++++++-- arch/mips/mm/hugetlbpage.c | 14 +++++++--- arch/mips/mm/init.c | 6 ++-- arch/mips/mm/ioremap.c | 6 +++- arch/mips/mm/pgtable-32.c | 6 ++-- arch/mips/mm/tlb-r4k.c | 4 ++- 15 files changed, 97 insertions(+), 63 deletions(-)