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: 145919 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp3559997ljw; Tue, 4 Sep 2018 04:45:43 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYOzfH81SwzpV8Wd8Gdz1fBe27Rvnro5IN5cG6kxnm8F9REF+IHKv/rXm4xGedTy0Lkbzyw X-Received: by 2002:a62:9645:: with SMTP id c66-v6mr34721577pfe.56.1536061543043; Tue, 04 Sep 2018 04:45:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536061543; cv=none; d=google.com; s=arc-20160816; b=gu88R81Iq4YMv8UT3UvV+zwczku7aRMf4ocMCw6GhOvRQKXaKeuKuJruYgRj9OLIAD 6ZAGXVuypYKBkE6r/1n1vY2Wl5nR6oufwRk73rmbTVZ1haFL4294NS8sTVwVF2wprK1I hBmUEC5PvCP/W2bNxqO0yUSmUast4R6QCUvF7C+9+8wHdBBbnEZX2eRIVSNkzM/O4BUV 8qE6fDah7/IxEWovBRNrDXRiGFDT4xoeiIXQyDvkuDxa5Kf5Gk55Ub0uUPovafrVY8Pa OCKTYsiQeYDUoBXVgmTfTkTXow8Ff0bnLqCU6JrovVsg7AFsTdSe2Aq1yyANirTT8UeO fqaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=8V1JH3LsNH6r6peD5QmyNe9h2vbdzn/IHeiuIlQMMJU=; b=sFSiddprjK0CncmmmIv2lnw9rjUjtLKz2rioMBj9FzHmXUUA4AmwlOxznO5sxv8WeZ YRZcVg0lPtM6kOwrNX4ZX3DtVkA4Dn6JDErxRqRylyF9TlBsHudHN5koRS0dDbYTdvcy rXU8Jq09vhrNdMNO+tCBKga69P1fe9AHwwvVb6JUK6pNc9xBe4+GHB1mU6J+iAblyoIk GHexGIjJ2+J1cusTPpgGva2JHdC0svWSq4OFgqougo5xiNj/E01qa50Wv9NcR+ND+lvT 47+d9N2oYmWZrS5EGK+htyn5Mqzl1oIyVciH3H9a15oiAMBUSJzQkBN144OG43sPqMUx T+xg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e1-v6si21311170plk.166.2018.09.04.04.45.42; Tue, 04 Sep 2018 04:45:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727062AbeIDQKG (ORCPT + 32 others); Tue, 4 Sep 2018 12:10:06 -0400 Received: from foss.arm.com ([217.140.101.70]:41262 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726087AbeIDQKG (ORCPT ); Tue, 4 Sep 2018 12:10:06 -0400 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.1.4