Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3443217ybb; Mon, 13 Apr 2020 08:11:10 -0700 (PDT) X-Google-Smtp-Source: APiQypKC2iVMCdBK7DgZoNriXKNFjXrdYuIcGZYGGG4MsJon+z9qnL+YzLZ/PNOeURHkJ61pTYSu X-Received: by 2002:aa7:cb45:: with SMTP id w5mr12539619edt.169.1586790669906; Mon, 13 Apr 2020 08:11:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586790669; cv=none; d=google.com; s=arc-20160816; b=hLu6FUhI1MAfGRlSKHGDUUMx9u7kltq4tzGz904kEXq+jnqiC5qGcK9kfcYvX1b1BL I92KJEgzwyZpsNIs05JCLWenQT1HUcKv5uCWlVVDjfXbPvhiUBE0z/HrWSGf1TONY+qR p2KFF6O/OS1IXzUwtvu41f3xEwHMzdPoPGUqZKgpzW6togeak9H1tHT+oPR1u9CjHBHs 75mq8NT4jPfdWyXhXyXWqmaGawdnsQ4CwffMjHbBUZKeZ9U/FlrikJAJOsKrU7Jz94I2 UmVJtleUaToSoTuVfUBJ98NO60B2deagkPOcbenipZ4bqh85eDWSGeaiu1ekVikH3A+W kK+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=eLerIzKtSl3zsn2Oymq5fsiJKLq+NQe813C4SL5fbLw=; b=GRCEt3TjLgWhAI9w6GAAKNzLDqTm6ZEcLb9ccrxVw+U/bkkzrRx1verU5ZgrsQlbeG nZYHCFJwIFGs46rI9sR6IRjueQookZNp4Lkg9VxFP1SwLReZTkyOxfSGSaFD2D+mo5Je dtpMW0i5JFgfGC08+v9F1LOSwSJ1TNjbyz18n/wn1MM9X09pkSVFoNIzSOcXzTAZg8ke /SYzNp+1snu9DcqJC5DxD/+CvCBR/D7uyzs/QDvJcArzmClFZz2ugoyE+5Nnf3y3Zm5P 6qg44uu4t85WIrX/JMpOURcFHcJiqy4Hh9K6a3ocA+teaqFiW3RHSAu4MNmo9JATMn7u ft8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=D3TacET4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d21si7293293ejk.498.2020.04.13.08.10.45; Mon, 13 Apr 2020 08:11:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=D3TacET4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729690AbgDMM7t (ORCPT + 99 others); Mon, 13 Apr 2020 08:59:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729673AbgDMM7o (ORCPT ); Mon, 13 Apr 2020 08:59:44 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 955F1C008749; Mon, 13 Apr 2020 05:54:17 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id w3so3359832plz.5; Mon, 13 Apr 2020 05:54:17 -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=rg6S73pwG4Q7icl6RQdQujMnAOn+/zFlQKZZPK/pX5mVQTE8TBXgGEUsyYjOP22EHy hYC/9GuFF1tEFu/N1wcciKVkwhqGFyA1UNAwkCrwGhhcn+b9u/HbRU1Ifv65VE5yzx9m PFrnbfAMWdAgDtPbcdAoJoD+I1tHXKUEA/INs+JeJq7OaoHB/G5GnltTtOSUVr7tWsH8 z0YQa6f3RFFUG34uU7xxZpaxio6XfjLwMPKL3/sVySfvLtIzdzyuU7AMR4CfS/J565Oc saoC3UTgKUtxj2KobkaOkeJlTwfoUa+dnCQAqsV0QVIoRhx2zXRCBHCoRi1yX8i+yILj 5XRg== X-Gm-Message-State: AGi0PubGFZwkWthmoYmhV6gjvDZaLJVUebv/al5odT4w/FlHbML5rnnH q7wejAmuUlHKnwy8NCjwPb4= 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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.23.0