From patchwork Tue Sep 4 11:45:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 10587197 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8AC96112B for ; Tue, 4 Sep 2018 11:45:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6DE6C29261 for ; Tue, 4 Sep 2018 11:45:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 617AB29267; Tue, 4 Sep 2018 11:45:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E384729261 for ; Tue, 4 Sep 2018 11:45:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A12DE6B6D4F; Tue, 4 Sep 2018 07:45:21 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 9861F6B6D4E; Tue, 4 Sep 2018 07:45:21 -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 875116B6D51; Tue, 4 Sep 2018 07:45:21 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-oi0-f69.google.com (mail-oi0-f69.google.com [209.85.218.69]) by kanga.kvack.org (Postfix) with ESMTP id 5BC6A6B6D4E for ; Tue, 4 Sep 2018 07:45:21 -0400 (EDT) Received: by mail-oi0-f69.google.com with SMTP id l14-v6so3811761oii.9 for ; Tue, 04 Sep 2018 04:45:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id; bh=8V1JH3LsNH6r6peD5QmyNe9h2vbdzn/IHeiuIlQMMJU=; b=W/hCY25W/MFMoAZWWPEyEeGmi2+dMixZFa1dWo12IWjTDgRJAg/JAPp036vEZ0B8O5 4qQDYFMdXZ3Xitl2/6Ci/WEehqGPtkHjL3GYxqaidasdCw0h4MnEDtMjPKzbXpDmiRsN Ei8M8k7CC0rhcj1LZcSK6IRCayJyfCdTAZeeiOCx+DBsJ2+NPYedDqy6kIfHrFk9cNJZ ckzidYd0bSE9uIiETCfucVULKv0XIbz7BTPgAWRUdHwg8IUI9urNlhfUdLlZC1HfsaUP 6pJMF8lrQuVD203Sq3cnIGwG5vR5L0TPQxOdS9lTbHfgjqVkoY11RTiuamvzdSvQjSkj zl8A== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of will.deacon@arm.com designates 217.140.101.70 as permitted sender) smtp.mailfrom=will.deacon@arm.com X-Gm-Message-State: APzg51A9fn1byhQL7UbpbnM68rkax3Vqi1rliII110DeQenl9/1QPDfX Jnr9K0GOLRd/UnDAjrYl2eMIROtZ49YC6NvuQHWulMtOSlMB/9pG3iUyCIK6zN5AHwefA6pXIGn rY/4cO2rkRTFTakXcy/9cCY9C+9gVMlYaAypdnuLoei2HwkdnTj0JTbpWTW6KnW30IQ== X-Received: by 2002:aca:fc8e:: with SMTP id a136-v6mr17011696oii.123.1536061521139; Tue, 04 Sep 2018 04:45:21 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZpVEs94NacIOe4uAZvKOgmExJjugVMBxqmOEiIjWpCdeU1ll3rD1cB4i7rqaVKzogd3j40 X-Received: by 2002:aca:fc8e:: with SMTP id a136-v6mr17011634oii.123.1536061520415; Tue, 04 Sep 2018 04:45:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536061520; cv=none; d=google.com; s=arc-20160816; b=bfEq6UyZjkNzSztbWThbDAcRWjVaErscOqA7DLxrCMryxfUXDyWvU1JeRUf0OlWsOq VQOzq4Ynjm9fGzK5ElPyzK3kVAiwV3nSWZqlAelnGQiWE/tOhH+J6ewOVVVASsNII/AU 2pubWfL1RXmvmQURmeBTrsVENjWk5dbSW+3y23bt2iYPETYPKiYjl82eZOvGSWeQXyn4 /snxtlmYNhGxDH3xcNALgEMaMAAPqHN6RGhWif0tOtQ8w5zaHodrmNLTbw8GONxOrQ7m mf8zx6A9YliK7qRgqb6hv1iucHnfpDcVMFVKO6an8OiOJ42zwg7BX5MV10WmUeuy+S6x ZlFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:arc-authentication-results; bh=8V1JH3LsNH6r6peD5QmyNe9h2vbdzn/IHeiuIlQMMJU=; b=u41IktJO3S4OEs4+Q6PjC6+CZRNSqtcsIg5/+W8aEJMcJvTzpFA+YRMHobK68o0aUC EzAaX3AqSNUPrHUvT0Sam7wewor14P+LHq6+JdjHpHwOWr+99dcYWIYxhBEO3ZyiTQkk eTM5XZlTuLeJ8EBuwJqfDm9toG13u+wksaQOeY2b9TfQdh236DoYT1jKRWu0+IGR9Y2b hfMwKN8BtMsWMlUhCbz/3Ylgrypp61B4qSnu3yrTmXDqQOFiY5EXYoZvr8MuO+GS1eLx GwFcywDmM9f3bi40sJo9LM1Gnwjaeiub5TNe239wluHKklKlMhhAyXCoVDduWxe2dPFS 2ulw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of will.deacon@arm.com designates 217.140.101.70 as permitted sender) smtp.mailfrom=will.deacon@arm.com Received: from foss.arm.com (usa-sjc-mx-foss1.foss.arm.com. [217.140.101.70]) by mx.google.com with ESMTP id v82-v6si13750864oig.99.2018.09.04.04.45.20 for ; Tue, 04 Sep 2018 04:45:20 -0700 (PDT) Received-SPF: pass (google.com: domain of will.deacon@arm.com designates 217.140.101.70 as permitted sender) client-ip=217.140.101.70; Authentication-Results: mx.google.com; spf=pass (google.com: domain of will.deacon@arm.com designates 217.140.101.70 as permitted sender) smtp.mailfrom=will.deacon@arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A84D980D; Tue, 4 Sep 2018 04:45:19 -0700 (PDT) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 762E03F5BC; Tue, 4 Sep 2018 04:45:19 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 7E1F61AE3546; Tue, 4 Sep 2018 12:45:33 +0100 (BST) From: Will Deacon To: linux-kernel@vger.kernel.org Cc: peterz@infradead.org, npiggin@gmail.com, linux-mm@kvack.org, kirill.shutemov@linux.intel.com, akpm@linux-foundation.org, mhocko@suse.com, aneesh.kumar@linux.vnet.ibm.com Subject: [PATCH v2 0/5] Extend and consolidate mmu_gather into new file Date: Tue, 4 Sep 2018 12:45:28 +0100 Message-Id: <1536061533-16188-1-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 2.1.4 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: X-Virus-Scanned: ClamAV using ClamSMTP Hi all, This series builds on the core changes I previously posted here: rfc: http://lists.infradead.org/pipermail/linux-arm-kernel/2018-August/597821.html v1: http://lists.infradead.org/pipermail/linux-arm-kernel/2018-August/598919.html The main changes are: * Move the mmu_gather bits out of memory.c and into their own file (looped in the mm people for this) * Add a MAINTAINERS entry for the new file, and all tlb.h headers. If any mm developers would like to be included here as well, please just ask. I'd like to queue these patches on their own branch in the arm64 git so that others can develop on top of them for the next merge window. Peter and Nick have both expressed an interest in that, and I already have a bunch of arm64 optimisations on top which I posted previously. Cheers, Will --->8 Peter Zijlstra (2): asm-generic/tlb: Track freeing of page-table directories in struct mmu_gather mm/memory: Move mmu_gather and TLB invalidation code into its own file Will Deacon (3): asm-generic/tlb: Guard with #ifdef CONFIG_MMU asm-generic/tlb: Track which levels of the page tables have been cleared MAINTAINERS: Add entry for MMU GATHER AND TLB INVALIDATION MAINTAINERS | 12 +++ include/asm-generic/tlb.h | 86 ++++++++++++--- mm/Makefile | 6 +- mm/memory.c | 247 ------------------------------------------- mm/mmu_gather.c | 259 ++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 348 insertions(+), 262 deletions(-) create mode 100644 mm/mmu_gather.c