From patchwork Mon Apr 13 12:52:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 11485529 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 2130714B4 for ; Mon, 13 Apr 2020 12:54:20 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id E0E1D2073E for ; Mon, 13 Apr 2020 12:54:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="D3TacET4" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E0E1D2073E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 2D4AC8E010C; Mon, 13 Apr 2020 08:54:19 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 285D88E0104; Mon, 13 Apr 2020 08:54:19 -0400 (EDT) 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 19B708E010C; Mon, 13 Apr 2020 08:54:19 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0145.hostedemail.com [216.40.44.145]) by kanga.kvack.org (Postfix) with ESMTP id F30848E0104 for ; Mon, 13 Apr 2020 08:54:18 -0400 (EDT) Received: from smtpin01.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id B48C61EFF for ; Mon, 13 Apr 2020 12:54:18 +0000 (UTC) X-FDA: 76702824996.01.fan10_42b091003630a X-Spam-Summary: 2,0,0,426901bf595378d8,d41d8cd98f00b204,npiggin@gmail.com,,RULES_HIT:41:69:355:379:541:988:989:1260:1311:1314:1345:1437:1515:1534:1540:1711:1730:1747:1777:1792:1801:2393:2559:2562:3138:3139:3140:3141:3142:3352:3865:3866:3867:3868:3872:4605:5007:6261:6653:6742:9413:10004:11026:11658:11914:12043:12297:12517:12519:12679:12895:13069:13141:13230:13311:13357:13894:14096:14384:14394:14581:14687:14721:21080:21444:21451:21627:21666:30054,0,RBL:209.85.216.66:@gmail.com:.lbl8.mailshell.net-62.50.0.100 66.100.201.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY:none X-HE-Tag: fan10_42b091003630a X-Filterd-Recvd-Size: 4006 Received: from mail-pj1-f66.google.com (mail-pj1-f66.google.com [209.85.216.66]) by imf45.hostedemail.com (Postfix) with ESMTP for ; Mon, 13 Apr 2020 12:54:18 +0000 (UTC) Received: by mail-pj1-f66.google.com with SMTP id ng8so3798499pjb.2 for ; Mon, 13 Apr 2020 05:54:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=eLerIzKtSl3zsn2Oymq5fsiJKLq+NQe813C4SL5fbLw=; b=D3TacET4LkxgSZwrtk0YaO57GIAKjGq2FPxhPIibWo0sfykUkoRPbtT1f79Yc1c0me Jg6ubg805mJwW/UIK0xFjVnvaAhSuErW6yXPEECe9C+aijrMJqQi12GvPnicnJXPQkAD 7s5ZhWNwDiR14hLg1/l5CXCsGNCCoW09+cbd+G7vLYprIu8mAYrfJt5Z7Ej+3+oEbWCm negw6h/cLHxbJGqVoj0xGCTjzWVbxBdALQozOIeVH71ZFyuZ+tbY4voNU7sWACEIebF3 JVVOML3yuc3rFmdAauFn6vfYwVjRjOsHKMlXRUgQBOAmXItxjBRIE1V3smOcR1mge9fP +3Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=eLerIzKtSl3zsn2Oymq5fsiJKLq+NQe813C4SL5fbLw=; b=rkeQte4r0i2h39G3igo0ZzihbftytsuFE19SKBb/QCboIj/M70lD2sZk93RQzNUDJj NumD+/V+fGUVBLDLqEOhnLfqMAyCPKSyTBPTPepHEFrJhEgS08cZbocVxcV856ETNKUU UvrnC2bLYeKSYRLfL83D2VHP4OSqRDgWSAmkjnK6PPnol6j3wcTzPubOVVnrovujzi54 lzeOhYZd/PIDyuqEHNaSbTbJClVYeTflCxc1kbfIMDuticHX485zWps7lzFEaNKvzs/4 jdqJtyI3MLeRUbxn5I0pd35gDsyX5HwXXh6vpqnlS/gk49gx32z+u3iQreTQkoKq7++I mBvg== X-Gm-Message-State: AGi0Puame90BtGCUtnb6zmXZMqGWDUryjGsiRba5Ed7sZHW8CVcrNWfh FhwPVJW3xIsyTnaHsOelbCXLBRMH X-Google-Smtp-Source: APiQypIuKwevaVe7P950qwu0WviRlHpRByIKxXMptZO8oQOn38nAcJkm8e5eaH+Vq6duTZluVkSCtw== X-Received: by 2002:a17:902:464:: with SMTP id 91mr17811244ple.261.1586782456770; Mon, 13 Apr 2020 05:54:16 -0700 (PDT) Received: from bobo.ibm.com (60-241-117-97.tpgi.com.au. [60.241.117.97]) by smtp.gmail.com with ESMTPSA id j24sm9235610pji.20.2020.04.13.05.54.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Apr 2020 05:54:15 -0700 (PDT) From: Nicholas Piggin To: linux-mm@kvack.org Cc: Nicholas Piggin , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" Subject: [PATCH v2 0/4] huge vmalloc mappings Date: Mon, 13 Apr 2020 22:52:59 +1000 Message-Id: <20200413125303.423864-1-npiggin@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: We can get a significant win with larger mappings for some of the big global hashes. Since RFC, relevant architectures have added p?d_leaf accessors so no real arch changes required, and I changed it not to allocate huge mappings for modules and a bunch of other fixes. Nicholas Piggin (4): mm/vmalloc: fix vmalloc_to_page for huge vmap mappings mm: Move ioremap page table mapping function to mm/ mm: HUGE_VMAP arch query functions cleanup mm/vmalloc: Hugepage vmalloc mappings arch/arm64/mm/mmu.c | 8 +- arch/powerpc/mm/book3s64/radix_pgtable.c | 6 +- arch/x86/mm/ioremap.c | 6 +- include/linux/io.h | 3 - include/linux/vmalloc.h | 15 + lib/ioremap.c | 203 +---------- mm/vmalloc.c | 413 +++++++++++++++++++---- 7 files changed, 380 insertions(+), 274 deletions(-)