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=-3.6 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=no 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 BF830C5B578 for ; Mon, 1 Jul 2019 06:42:40 +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 06C3D2145D for ; Mon, 1 Jul 2019 06:42:39 +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="jt7i+Ah0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 06C3D2145D 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 45cd8s5SWczDqW0 for ; Mon, 1 Jul 2019 16:42:37 +1000 (AEST) Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::543; helo=mail-pg1-x543.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="jt7i+Ah0"; dkim-atps=neutral Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) (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 45cd6r1BtKzDqKD for ; Mon, 1 Jul 2019 16:40:51 +1000 (AEST) Received: by mail-pg1-x543.google.com with SMTP id c13so5520408pgg.3 for ; Sun, 30 Jun 2019 23:40:51 -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=dcNOnkZ3QNA3naQZL2QsN8O60WJ6liuss/shdVWzI/w=; b=jt7i+Ah0OIALx3FcRZ1UZkdX1H4ILpm/ltZc9KwQYbH8WrH3GEdinTHq+ex7/HsTed Q/DFlt5PofGsqai1Az11oYNvC8+cxbsQJXJx40MYtNrrkVLO3bvbYJT8wLGxeNRtOg+o 57Hf/eY+JfZUT3NpcNl6/8Uk+X1AO8MWtOT3zpnCnacQdmAqcwOrmxUTuqxdZ7RhEzqK Am48lIIHnwHV8AfSk/jpE+HgXctcEK5PWZhSQXmtFvkQPkQZ3BwTSuM3AfroF++KSYjC 9/BpKeJlEHYoI/ciZKoAF3S3Fc7bM+QF/p7hCLb11IzbCjyKkltoxPZepQ/YfMGX1jkD GVlQ== 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=dcNOnkZ3QNA3naQZL2QsN8O60WJ6liuss/shdVWzI/w=; b=ruFqYFvbHMAxN7nl+cgZ2AHwGExXXXRa7Lj8z/Mn/beRAVTkoNqAb+pFbY/hoIwWv1 rqAmx5uExhfvwkTfQCqSXDCA6DkNyJ90BTpzbuOgsXJ5LJXkioUBp4Co9999CH5Zc7Fo WGDG701XiVqMD5mPFbdJrqL+1ClY1YFJLrkULu9vAyeJvkMg1Pm0ORE3UgclZ0c6+ifr hJNwb8s6ZBV6bl/Y4aQPbhsUTBRHtnMXsVHDQpBMDXy/b+aUUrgoZo4fUXdzupxwDkSd FbmT35TCMG5ElDv1LqPmqEIhoFPoADN8y+kKWWMEa0Nb5bk9M7EHvw4nPSRc8bKJXWpc 2fGw== X-Gm-Message-State: APjAAAXZlckokLsSyeiweNICEidLpj5PUc2YN6+iCbKsfjA6vctTO6Ps IuE6IhQxXiPKmcuRaf1jsJE= X-Google-Smtp-Source: APXvYqyhm6G/Dxj/LNC8ofHNrlWkegS32az/Q37ZJ9wniqzmJWd0cS85z1rpS5JiVW3uLe2ZPBrYNQ== X-Received: by 2002:a65:5248:: with SMTP id q8mr14304334pgp.259.1561963249300; Sun, 30 Jun 2019 23:40:49 -0700 (PDT) Received: from bobo.ozlabs.ibm.com ([122.99.82.10]) by smtp.gmail.com with ESMTPSA id x128sm24238285pfd.17.2019.06.30.23.40.45 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 30 Jun 2019 23:40:48 -0700 (PDT) From: Nicholas Piggin To: "linux-mm @ kvack . org" Subject: [PATCH v2 0/3] fix vmalloc_to_page for huge vmap mappings Date: Mon, 1 Jul 2019 16:40:23 +1000 Message-Id: <20190701064026.970-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. v2: change the order of testing pxx_large and pxx_bad, to avoid issues with arm64 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=-3.8 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=no 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 139F0C5B578 for ; Mon, 1 Jul 2019 06:41:07 +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 BE77C2145D for ; Mon, 1 Jul 2019 06:41:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="vBTtRHqh"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jt7i+Ah0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BE77C2145D 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=MMl8OowmJsTUqfrkexN7tdJSoOsi5CN/EAH7iCKlB5w=; b=vBTtRHqhsusGWj LRrnCQFrRuEZ4N6r9Vl+GSISoZhtcyUfmRUOXQUtU75/0woQcfEsISyhmY3KjCXVxpMxQkygUH6IJ XJsoBRbTse7c/3cSJHmPpgctdYIHFcDFZ3nGmZrgDBTOjLajNZMuPXjgshKHNpNouCAiMLSX2b38q 0NKiJXVUd2y4Yf4BoWi+iWBaVS1LvoRTKtZyLzwZk7/wKp99G9su7jUfDHf0sK3Nw+GnfsY8v8+1Z N74SY2K6VG/8cxWGaelcjca1dyZOmkiMwner6kskvybQ+vwXhfFhRH6htkqInHoY6LYwBPlZhXjNV fvMhSk7zU20BOYuWN6gA==; 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 1hhpzk-0005cO-6T; Mon, 01 Jul 2019 06:40:56 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hhpzh-0005bE-Ex for linux-arm-kernel@lists.infradead.org; Mon, 01 Jul 2019 06:40:54 +0000 Received: by mail-pf1-x444.google.com with SMTP id q10so6042543pff.9 for ; Sun, 30 Jun 2019 23:40:49 -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=dcNOnkZ3QNA3naQZL2QsN8O60WJ6liuss/shdVWzI/w=; b=jt7i+Ah0OIALx3FcRZ1UZkdX1H4ILpm/ltZc9KwQYbH8WrH3GEdinTHq+ex7/HsTed Q/DFlt5PofGsqai1Az11oYNvC8+cxbsQJXJx40MYtNrrkVLO3bvbYJT8wLGxeNRtOg+o 57Hf/eY+JfZUT3NpcNl6/8Uk+X1AO8MWtOT3zpnCnacQdmAqcwOrmxUTuqxdZ7RhEzqK Am48lIIHnwHV8AfSk/jpE+HgXctcEK5PWZhSQXmtFvkQPkQZ3BwTSuM3AfroF++KSYjC 9/BpKeJlEHYoI/ciZKoAF3S3Fc7bM+QF/p7hCLb11IzbCjyKkltoxPZepQ/YfMGX1jkD GVlQ== 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=dcNOnkZ3QNA3naQZL2QsN8O60WJ6liuss/shdVWzI/w=; b=j/kE9cxArHVKl1dTrt5PiuWcKRFbH469bHKqwOAj3sqW0crBeFKb6wRD9rK+21M2us SzgEKXi1adpsGr+rGr8z28A4L+QVRdcZ0z/GBa5T5j6+jZ7oSmuly3KB1aZaHPimpsp7 hZYTyqRXZBQ+9lth6zcAWyq5oNAlaOvUcQLCkfZQ2DHUXQxLT79aqIp83TzPyTox8wPu +jVxF5hkFoZ/2W/ORnhW7fIG9+Ks9uEgMMaUevyfBAOi9syLKdzdAvf3xTsWo1P79gGb yCGt1eW+NvXv1+ypXxObP+Mt1Jp7xx0EQlMva5G1WKRHryc6U1o6d6KHQ3Tka2cPxYQs FFCQ== X-Gm-Message-State: APjAAAXN8T7DriytZbtUK92s1XpmHxOQDjf/Z5tMmKDj82I+farAAND8 lSRz5G25lXD8TmB95tJw8do= X-Google-Smtp-Source: APXvYqyhm6G/Dxj/LNC8ofHNrlWkegS32az/Q37ZJ9wniqzmJWd0cS85z1rpS5JiVW3uLe2ZPBrYNQ== X-Received: by 2002:a65:5248:: with SMTP id q8mr14304334pgp.259.1561963249300; Sun, 30 Jun 2019 23:40:49 -0700 (PDT) Received: from bobo.ozlabs.ibm.com ([122.99.82.10]) by smtp.gmail.com with ESMTPSA id x128sm24238285pfd.17.2019.06.30.23.40.45 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 30 Jun 2019 23:40:48 -0700 (PDT) From: Nicholas Piggin To: "linux-mm @ kvack . org" Subject: [PATCH v2 0/3] fix vmalloc_to_page for huge vmap mappings Date: Mon, 1 Jul 2019 16:40:23 +1000 Message-Id: <20190701064026.970-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-20190630_234053_530096_8B012A38 X-CRM114-Status: GOOD ( 11.09 ) 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. v2: change the order of testing pxx_large and pxx_bad, to avoid issues with arm64 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=-3.9 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=no 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 E0DF5C5B578 for ; Mon, 1 Jul 2019 06:40:52 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id A21922145D for ; Mon, 1 Jul 2019 06:40:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jt7i+Ah0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A21922145D 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 17BFF8E000D; Mon, 1 Jul 2019 02:40:52 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 12DC48E0002; Mon, 1 Jul 2019 02:40:52 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F375C8E000D; Mon, 1 Jul 2019 02:40:51 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from mail-pf1-f206.google.com (mail-pf1-f206.google.com [209.85.210.206]) by kanga.kvack.org (Postfix) with ESMTP id BD5D08E0002 for ; Mon, 1 Jul 2019 02:40:51 -0400 (EDT) Received: by mail-pf1-f206.google.com with SMTP id i27so8250218pfk.12 for ; Sun, 30 Jun 2019 23:40:51 -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=dcNOnkZ3QNA3naQZL2QsN8O60WJ6liuss/shdVWzI/w=; b=n9IPrdjjQHxHyQhnYVlMB2zovBCxSTWfBB9+e/J2VSLpavqqmVUUwCyVq1CBzqaMZ7 PSkB2U0bYgbt6/Ys571/NDW23pDETsB6R+XuF1njUbKjZOyuLIyFo17M+hlMhefQf05M Rvn5SDGTYqNTyy7myxgbQWamowzf5vnZmUV7fjWmF+EODMeihdRIJUDsLans3mYLeIrH n9QfTQjhAeYL6xilOjmHdubDfQUJG+3RZEvvXz/hUdj1BwTyD83dYcb+8W+yZ39Ev1sL 22/qkuWZCe8mZ/8hgwwMqs8BjThSD1QA5dz1bnLde5vrPucZWnV8Pb+GYQhttptycYrv JlQg== X-Gm-Message-State: APjAAAXaQaBo/sFqTBBdcs7sdF6yAymHTM5oXuWvQxdQVoYCRp2TFGOF Lhe6NAK66mWEXjZb0OicbvmQxk2t01tDbvO0NGNLBQYI69pPJX0yWiKw1BLeM0yGZzgMiSBaSaa 8I1YI9wXiLdQQ/LMkw5an8Gj0McfWvCbsgeMYWDlAAWiXbB47rCTCU7W7yp7GbqJf6A== X-Received: by 2002:a63:5045:: with SMTP id q5mr22109431pgl.380.1561963251347; Sun, 30 Jun 2019 23:40:51 -0700 (PDT) X-Received: by 2002:a63:5045:: with SMTP id q5mr22109388pgl.380.1561963250646; Sun, 30 Jun 2019 23:40:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561963250; cv=none; d=google.com; s=arc-20160816; b=jjvD5u5S5QiwutH5LlqblhqFsWWugG998L3CG6DQA7B/i5xzab4mIf1HFeHRBFN1a9 cX0S/d25cr7dPPZ4kfZKx/zOUO7+qE3xMeMsHorKhHPaP4sM+muqo1+CtuprxDqVSiSC C66Y9AQT2t2RDtmE0+VcutoL8nbNtu5QKJ+wUMfdUk/vp/y8TXpm/YxM00jhznCBM+60 wlY0DmPSYGOVoAWcsUmhSp6s0d8+FizIKNp0elVddH5igFRZyogcJs/DYyVyCh+cfQjy GDCf2irP9cQVoPGKvSOspJhArFXplDEFqK7SbNWBDJvXEY98lfBEhMeDYoxNiZD15SsU vcaw== 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=dcNOnkZ3QNA3naQZL2QsN8O60WJ6liuss/shdVWzI/w=; b=MHiqSomYZuMCk2Zjm5hQ0K41l4+q4H/1Hg1OOTgNiweLsvy32CNgNZJ7GGym2dqr2C penI46FboOF3TrFhneQhcHbAuSW3/aXo/x/gi5YqK2co/JU1CtymDwg189RvYUHtrwaR 5VcPz481Aaf7V0r/xU/MrpFBoonTN4DU9KFMvU7GAhobxqIX4WMnJ33VMEkfa71lDO9b 9QoMCJ6putx4UWVP0YOGBFxl/YyX6yy9P7CBvSx5v51xhnOneM2yUkPfFpfWhpwvXmJr tXph78S0nhh4OrDL2Qi7VBWatYoE920dRTPoDSV4ha21hp/CPTlSWBwAVoz7Lz0LvPZi 4idg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jt7i+Ah0; 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 b2sor4353639pgk.44.2019.06.30.23.40.50 for (Google Transport Security); Sun, 30 Jun 2019 23:40:50 -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=jt7i+Ah0; 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=dcNOnkZ3QNA3naQZL2QsN8O60WJ6liuss/shdVWzI/w=; b=jt7i+Ah0OIALx3FcRZ1UZkdX1H4ILpm/ltZc9KwQYbH8WrH3GEdinTHq+ex7/HsTed Q/DFlt5PofGsqai1Az11oYNvC8+cxbsQJXJx40MYtNrrkVLO3bvbYJT8wLGxeNRtOg+o 57Hf/eY+JfZUT3NpcNl6/8Uk+X1AO8MWtOT3zpnCnacQdmAqcwOrmxUTuqxdZ7RhEzqK Am48lIIHnwHV8AfSk/jpE+HgXctcEK5PWZhSQXmtFvkQPkQZ3BwTSuM3AfroF++KSYjC 9/BpKeJlEHYoI/ciZKoAF3S3Fc7bM+QF/p7hCLb11IzbCjyKkltoxPZepQ/YfMGX1jkD GVlQ== X-Google-Smtp-Source: APXvYqyhm6G/Dxj/LNC8ofHNrlWkegS32az/Q37ZJ9wniqzmJWd0cS85z1rpS5JiVW3uLe2ZPBrYNQ== X-Received: by 2002:a65:5248:: with SMTP id q8mr14304334pgp.259.1561963249300; Sun, 30 Jun 2019 23:40:49 -0700 (PDT) Received: from bobo.ozlabs.ibm.com ([122.99.82.10]) by smtp.gmail.com with ESMTPSA id x128sm24238285pfd.17.2019.06.30.23.40.45 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 30 Jun 2019 23:40:48 -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 v2 0/3] fix vmalloc_to_page for huge vmap mappings Date: Mon, 1 Jul 2019 16:40:23 +1000 Message-Id: <20190701064026.970-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. v2: change the order of testing pxx_large and pxx_bad, to avoid issues with arm64 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