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 X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 99623C43613 for ; Sun, 23 Jun 2019 09:47:27 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C864A20679 for ; Sun, 23 Jun 2019 09:47:26 +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="YVFZcHHR" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C864A20679 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 45Wndm26dXzDqZR for ; Sun, 23 Jun 2019 19:47:24 +1000 (AEST) Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::643; helo=mail-pl1-x643.google.com; envelope-from=npiggin@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="YVFZcHHR"; dkim-atps=neutral Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 45Wnbg4NnzzDqWx for ; Sun, 23 Jun 2019 19:45:33 +1000 (AEST) Received: by mail-pl1-x643.google.com with SMTP id m7so5175210pls.8 for ; Sun, 23 Jun 2019 02:45:32 -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=SGbjyf75c99S79YkNwkfWRcRA4lvd4Chuhz40PQahwQ=; b=YVFZcHHRNu+26snpxjow4PoPX3ej9w1hIhawqEAsLMcTCFID9VPgiJtIlfYY9I8ekU JHhCB/zPJAvezYn3+jBFu0jrKfoqfzKhqna855JLQGx61EWHs2G5OMlEx/F/HaXmqXxN uMqOC5FXfnnNAOI0hJ4vmhyOxsws4Dg0ROZovq00OX8kRtNeLxpcvzwvX24PKb5kFiI3 NPSR927rYsfiApkiSg+JNTDLoCtfPdmnH3wB8TsvcQIU6Osdax+YeVE6+Hu7gbi9cIg7 p3/Hd6FeQKKDDPFhvpfDMmiJQWFcL7m8XNy2VKJvSUMmUIRM1LpX9Ih3FSs/aqAQYOwf 3y4w== 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=SGbjyf75c99S79YkNwkfWRcRA4lvd4Chuhz40PQahwQ=; b=POuqA/pgBZbr7v6fzVgrq7FJc/qX5nETxZ2O/ERBq626rhxYMcnzWpvqNymwllfT1w 6dfngNT2RB0cKYBbSMsAKKukssGq/qxKjTzu5dUsfrqC/y9aIgwLHqEOdWk2aQYuir5b teDIoNNZDC+/PBODTlqG6Yo+ilnQ0Bh6ef+mtHDI4+QBfGUe/eMpncb8hZzC3oFIV1/I EsH1/N4yyMLIDUtQXm5/RraX5YlZKmLTIir4vynK/9MNiwwaUl0fAZLB5CKfxIDRBdDd gwylI+3sbJnvMHDTWSLfXf42hrYxYcSgXtBdpepqLs/mOAAZQ/0ThE0S7XMgS+AUAF94 uKbg== X-Gm-Message-State: APjAAAUzJ/2oDHiPaDhk8t/WtSnJ5vprEPk4zME8HqcriB85GCEdbAEW wDhKJT6bbwiOZ82jGbKhn+E= X-Google-Smtp-Source: APXvYqzi0wlf2RThtnnqN1XRmfWGl8V2A0Rdx29HeMZt12F8AiiBvwFVo8ATHxQq1XcX9A2BGcBKqQ== X-Received: by 2002:a17:902:be10:: with SMTP id r16mr78309008pls.294.1561283129539; Sun, 23 Jun 2019 02:45:29 -0700 (PDT) Received: from bobo.ozlabs.ibm.com ([1.129.156.141]) by smtp.gmail.com with ESMTPSA id d26sm6181062pfn.29.2019.06.23.02.45.24 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 23 Jun 2019 02:45:28 -0700 (PDT) From: Nicholas Piggin To: linux-mm@kvack.org Subject: [PATCH 0/3] fix vmalloc_to_page for huge vmap mappings Date: Sun, 23 Jun 2019 19:44:43 +1000 Message-Id: <20190623094446.28722-1-npiggin@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Anshuman Khandual , Ard Biesheuvel , Nicholas Piggin , Andrew Morton , linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" This is a change broken out from the huge vmap vmalloc series as requested. There is a little bit of dependency juggling across trees, but patches are pretty trivial. Ideally if Andrew accepts this patch and queues it up for next, then the arch patches would be merged through those trees then patch 3 gets sent by Andrew. I've tested this with other powerpc and vmalloc patches, with code that explicitly tests vmalloc_to_page on vmalloced memory and results look fine. Thanks, Nick Nicholas Piggin (3): arm64: mm: Add p?d_large() definitions powerpc/64s: Add p?d_large definitions mm/vmalloc: fix vmalloc_to_page for huge vmap mappings arch/arm64/include/asm/pgtable.h | 2 ++ arch/powerpc/include/asm/book3s/64/pgtable.h | 24 ++++++++----- include/asm-generic/4level-fixup.h | 1 + include/asm-generic/5level-fixup.h | 1 + mm/vmalloc.c | 37 +++++++++++++------- 5 files changed, 43 insertions(+), 22 deletions(-) -- 2.20.1 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 X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 93E9DC48BE8 for ; Sun, 23 Jun 2019 09:45:40 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 67B1220679 for ; Sun, 23 Jun 2019 09:45:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="IGAKokvi"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YVFZcHHR" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 67B1220679 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=f98ptrnDAV9W4QvrSKSn3Qs0z+7bwXf5t/PiGM892sA=; b=IGAKokvizAwJ80 ClK/nyDU9Tqt0UtPh2/6pMdTDEz7gYi2y+eXK+aq8qBrqpR/cQLbwdLCzTTbMQmk/Ua2p4zBeSy2n RpQuIxOgDl2koXxzHEAPYdDT26z4cJmYwTvfkZUpfSJ8YtZChJnRSPCaESNsHTwAObnARJBCCnCBx 5STOXK9p43IH4nehShjmAGLQzTyCcSRJCIRQofB9+tRTEys1PBILMl4ryYMuXNQZye/vJvHdyDRv1 XwyNaYBle5N6lJPZyM5wlRl3Ul7EVsOlzga8KoJX1zoWJ1xi2eAWDMRqeoGZTJYpZKBewe31yoicS gqP2mQUaOvxnT0hKCnVA==; 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 1hez41-00016D-T5; Sun, 23 Jun 2019 09:45:34 +0000 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hez3y-00015n-Rq for linux-arm-kernel@lists.infradead.org; Sun, 23 Jun 2019 09:45:32 +0000 Received: by mail-pl1-x643.google.com with SMTP id bh12so5194813plb.4 for ; Sun, 23 Jun 2019 02:45:29 -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=SGbjyf75c99S79YkNwkfWRcRA4lvd4Chuhz40PQahwQ=; b=YVFZcHHRNu+26snpxjow4PoPX3ej9w1hIhawqEAsLMcTCFID9VPgiJtIlfYY9I8ekU JHhCB/zPJAvezYn3+jBFu0jrKfoqfzKhqna855JLQGx61EWHs2G5OMlEx/F/HaXmqXxN uMqOC5FXfnnNAOI0hJ4vmhyOxsws4Dg0ROZovq00OX8kRtNeLxpcvzwvX24PKb5kFiI3 NPSR927rYsfiApkiSg+JNTDLoCtfPdmnH3wB8TsvcQIU6Osdax+YeVE6+Hu7gbi9cIg7 p3/Hd6FeQKKDDPFhvpfDMmiJQWFcL7m8XNy2VKJvSUMmUIRM1LpX9Ih3FSs/aqAQYOwf 3y4w== 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=SGbjyf75c99S79YkNwkfWRcRA4lvd4Chuhz40PQahwQ=; b=UQKqJzH2MqGramQ10vnpcZa2G31JpHDsDlm3/S7EFF+37HSXYM9ez0LDyG4wCBIdH7 N0asbGfjs2x45Fz+TjjbutXe5yOVc95RIulFt/l9yEQZue6zBwtFERhm657/8xh1VwgT 2PF4ihTlF0JAXGI5YDI6ESE7RQN/VIV1n8Dx52TCMNfyule8zrr8EFPw+mayQMRPgwor xgekWp7x/BDKouJkCEXRRQfnWM5jOg/M06Suj6Ze3Ch1z39y8K71kKT2rxKB9LjeGRkh ZHY8eDyo4WElJ7x8OlTX0zem2iE8Q/0HDY9RRN7/DGFGQhS/FL12dAaNnRxoF85Dp1oP FqyQ== X-Gm-Message-State: APjAAAUx7IHWtd6v47bR6mzVc1mc1zCIZJXbtVbTPZ13Tc+K1ompjIxk S8ZcYbXWX0Hr58SO3Lyv2Rq3e432 X-Google-Smtp-Source: APXvYqzi0wlf2RThtnnqN1XRmfWGl8V2A0Rdx29HeMZt12F8AiiBvwFVo8ATHxQq1XcX9A2BGcBKqQ== X-Received: by 2002:a17:902:be10:: with SMTP id r16mr78309008pls.294.1561283129539; Sun, 23 Jun 2019 02:45:29 -0700 (PDT) Received: from bobo.ozlabs.ibm.com ([1.129.156.141]) by smtp.gmail.com with ESMTPSA id d26sm6181062pfn.29.2019.06.23.02.45.24 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 23 Jun 2019 02:45:28 -0700 (PDT) From: Nicholas Piggin To: linux-mm@kvack.org Subject: [PATCH 0/3] fix vmalloc_to_page for huge vmap mappings Date: Sun, 23 Jun 2019 19:44:43 +1000 Message-Id: <20190623094446.28722-1-npiggin@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190623_024530_927730_20832C15 X-CRM114-Status: UNSURE ( 9.15 ) 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: Christophe Leroy , Mark Rutland , Anshuman Khandual , Ard Biesheuvel , Nicholas Piggin , Andrew Morton , linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org This is a change broken out from the huge vmap vmalloc series as requested. There is a little bit of dependency juggling across trees, but patches are pretty trivial. Ideally if Andrew accepts this patch and queues it up for next, then the arch patches would be merged through those trees then patch 3 gets sent by Andrew. I've tested this with other powerpc and vmalloc patches, with code that explicitly tests vmalloc_to_page on vmalloced memory and results look fine. Thanks, Nick Nicholas Piggin (3): arm64: mm: Add p?d_large() definitions powerpc/64s: Add p?d_large definitions mm/vmalloc: fix vmalloc_to_page for huge vmap mappings arch/arm64/include/asm/pgtable.h | 2 ++ arch/powerpc/include/asm/book3s/64/pgtable.h | 24 ++++++++----- include/asm-generic/4level-fixup.h | 1 + include/asm-generic/5level-fixup.h | 1 + mm/vmalloc.c | 37 +++++++++++++------- 5 files changed, 43 insertions(+), 22 deletions(-) -- 2.20.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel 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 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6DEA0C43613 for ; Sun, 23 Jun 2019 09:45:33 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 0FC8220679 for ; Sun, 23 Jun 2019 09:45:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YVFZcHHR" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0FC8220679 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 517846B0003; Sun, 23 Jun 2019 05:45:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4C9458E0002; Sun, 23 Jun 2019 05:45:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 390E68E0001; Sun, 23 Jun 2019 05:45:32 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by kanga.kvack.org (Postfix) with ESMTP id F3AD46B0003 for ; Sun, 23 Jun 2019 05:45:31 -0400 (EDT) Received: by mail-pf1-f199.google.com with SMTP id 140so7374546pfa.23 for ; Sun, 23 Jun 2019 02:45:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:date :message-id:mime-version:content-transfer-encoding; bh=SGbjyf75c99S79YkNwkfWRcRA4lvd4Chuhz40PQahwQ=; b=r6z/ieFyQCF4LUbI4VKYiYxE8P3apUlxT7/IOQi9KUBDjqzR4pMfW2elxRE0bjYnsN 3A9Z/GVWsudp9b3zx3d99G7DAtSPcXjHq115SKJ7JChbW2KKnzoI6M+xLqLG5XO3vNxL trQ/I64vDeCS87jzWhXexCyAn5WRejf5+smLTwNHjTEP4kfSkT5bKjggq8NHSjRiw8ia sNgI9TWZ2+a5l+OTkUBhDIlCjGFMIalLNHvcMaGws9Xt9VjZtPJGumnX6jbYnsYHHgIB Sho32KUBNW88mnwDlH71VIObTn142sKOB1cKJf9KbKcM/gDrdl4G+dJkjTRJEFQUw6bs S2RA== X-Gm-Message-State: APjAAAXiyaC7OT9sLa/ypNRg+ARVOQhHYe8I81w0nRCK3Y7QRQ0Tz7wq 2n2CcZDg6ZT36fWv5KNKRyEbYP0rtAete3iiLQl/6mqCpX1o02qcu/nSVcXQWvYlnIZHvsk7XCG D2mmFiLBhSPaF2xnwDmdUDZgkGg7nGCxhIT1cdK8fKSVKxfoFMDfmuaQJg/3yMM+Y+g== X-Received: by 2002:a63:4185:: with SMTP id o127mr26218023pga.82.1561283131368; Sun, 23 Jun 2019 02:45:31 -0700 (PDT) X-Received: by 2002:a63:4185:: with SMTP id o127mr26217965pga.82.1561283130396; Sun, 23 Jun 2019 02:45:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561283130; cv=none; d=google.com; s=arc-20160816; b=uMOyzJDNwoSj5Eu3AKyKHJCtRg9pTvukGMaqQx3xbDSHaoSTp7OZIzkaUgqGxFIhpV vG/ucBD3Q2xAfzVUlEksU6yrnSBDcSVaZryk/Pi0WMsAHsXOkhqS4fGSaORRQUwffb6s H3nXVloE32BR5J9wDtUi1A/F/vU7OenpiVnXVQKbBc6DSeer1cupBYtZi8DtYhEQ4xB/ O247iKJk4xUeh8885EYGeGjCzb6Ie8EKfiecczYOQ82DqRc2FODgctn7Y04B9ipEupOv sRtO8Yn1w6jYpclt+lq0iBQ/hGnruW3diaPFPLVSo+aMRbzaGR60fR02mL/nR5U6CCcp A8Yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=SGbjyf75c99S79YkNwkfWRcRA4lvd4Chuhz40PQahwQ=; b=CF5pPqf5ZKhXv9nrL7/UjMbDG6GLlFaQan+8BFTtBNpjmWJTAC1rQlI4its3dgTcSd NhDX8I5SopYF7Uj/8eaqPYN5H8fXZ9Bgmp61k0pMroUdA9bnv/7TlZ1eScBU6UJuH/yY duCTMQxHVNY5wgHm7YJVih0mLy8alYjMjKIoPcYwf7B/2dk0DLF8wQffoZPjQhPPltBf +OIQVTWCsrzQIfcHh3yEweoRfMOka0wXa21qfD2Ajp2N+Ae4NemUq0qQUU6nWiJL2BBW qPMCUxsaVNQffhqO7EcNY+rzaB8L89zCHP4hwrOQO5w7W0D/Thmk4zBsPhKugsWjUmyI mWSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YVFZcHHR; spf=pass (google.com: domain of npiggin@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=npiggin@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id d2sor9332700pln.13.2019.06.23.02.45.29 for (Google Transport Security); Sun, 23 Jun 2019 02:45:30 -0700 (PDT) Received-SPF: pass (google.com: domain of npiggin@gmail.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YVFZcHHR; spf=pass (google.com: domain of npiggin@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=npiggin@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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=SGbjyf75c99S79YkNwkfWRcRA4lvd4Chuhz40PQahwQ=; b=YVFZcHHRNu+26snpxjow4PoPX3ej9w1hIhawqEAsLMcTCFID9VPgiJtIlfYY9I8ekU JHhCB/zPJAvezYn3+jBFu0jrKfoqfzKhqna855JLQGx61EWHs2G5OMlEx/F/HaXmqXxN uMqOC5FXfnnNAOI0hJ4vmhyOxsws4Dg0ROZovq00OX8kRtNeLxpcvzwvX24PKb5kFiI3 NPSR927rYsfiApkiSg+JNTDLoCtfPdmnH3wB8TsvcQIU6Osdax+YeVE6+Hu7gbi9cIg7 p3/Hd6FeQKKDDPFhvpfDMmiJQWFcL7m8XNy2VKJvSUMmUIRM1LpX9Ih3FSs/aqAQYOwf 3y4w== X-Google-Smtp-Source: APXvYqzi0wlf2RThtnnqN1XRmfWGl8V2A0Rdx29HeMZt12F8AiiBvwFVo8ATHxQq1XcX9A2BGcBKqQ== X-Received: by 2002:a17:902:be10:: with SMTP id r16mr78309008pls.294.1561283129539; Sun, 23 Jun 2019 02:45:29 -0700 (PDT) Received: from bobo.ozlabs.ibm.com ([1.129.156.141]) by smtp.gmail.com with ESMTPSA id d26sm6181062pfn.29.2019.06.23.02.45.24 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 23 Jun 2019 02:45:28 -0700 (PDT) From: Nicholas Piggin To: linux-mm@kvack.org Cc: Nicholas Piggin , linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, Andrew Morton , Anshuman Khandual , Christophe Leroy , Ard Biesheuvel , Mark Rutland Subject: [PATCH 0/3] fix vmalloc_to_page for huge vmap mappings Date: Sun, 23 Jun 2019 19:44:43 +1000 Message-Id: <20190623094446.28722-1-npiggin@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: This is a change broken out from the huge vmap vmalloc series as requested. There is a little bit of dependency juggling across trees, but patches are pretty trivial. Ideally if Andrew accepts this patch and queues it up for next, then the arch patches would be merged through those trees then patch 3 gets sent by Andrew. I've tested this with other powerpc and vmalloc patches, with code that explicitly tests vmalloc_to_page on vmalloced memory and results look fine. Thanks, Nick Nicholas Piggin (3): arm64: mm: Add p?d_large() definitions powerpc/64s: Add p?d_large definitions mm/vmalloc: fix vmalloc_to_page for huge vmap mappings arch/arm64/include/asm/pgtable.h | 2 ++ arch/powerpc/include/asm/book3s/64/pgtable.h | 24 ++++++++----- include/asm-generic/4level-fixup.h | 1 + include/asm-generic/5level-fixup.h | 1 + mm/vmalloc.c | 37 +++++++++++++------- 5 files changed, 43 insertions(+), 22 deletions(-) -- 2.20.1