Message ID | 20181019160442.18723-1-jglisse@redhat.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 7505617DE for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 19 Oct 2018 16:04:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 633202836F for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 19 Oct 2018 16:04:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 56FA3283C7; Fri, 19 Oct 2018 16:04:52 +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 E7C1C2836F for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 19 Oct 2018 16:04:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7F8136B000A; Fri, 19 Oct 2018 12:04:50 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 7A86C6B000C; Fri, 19 Oct 2018 12:04:50 -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 697DF6B000D; Fri, 19 Oct 2018 12:04:50 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by kanga.kvack.org (Postfix) with ESMTP id 3FC066B000A for <linux-mm@kvack.org>; Fri, 19 Oct 2018 12:04:50 -0400 (EDT) Received: by mail-qt1-f199.google.com with SMTP id w5-v6so1447776qto.18 for <linux-mm@kvack.org>; Fri, 19 Oct 2018 09:04:50 -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:mime-version:content-transfer-encoding; bh=57HZv9U7qdD6CUXMzQv4OZY4HXDAzHcBT8XCX81eux8=; b=TgBVT5nyBoJSVRJr1TIEpvES8KCxzIUPUcfjvH51W4cRg4kAB3FvwDkzhI68GgXeW7 7F6StgzqBq31YL7YZ/qoqjzCp3hZY0Ph5SE4jQU7brzDAZTroVh9ldOc2t3fofMdGqrQ 0tVFGaKELMX5E6Ckjab+hx7Uv196jiHcWb982/fOqdzV6inBPhFNTMYtIn9O9mea6Ovq CefaWF8bQeMJB5IFMXokLGgLEf3NC/QrZErNDQojQ6qNLGO6UG+SgMnN8Be1e5vtZuLq 9sJUJAcapABLrR+n1pLy9aD3k1FTu6lLZq7jVsVziLD8b1a/sP+nzbnH0DhnIOE4p/s0 G66Q== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of jglisse@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=jglisse@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Gm-Message-State: ABuFfoj0UVzzB/oZrS9Tp29H0L5mCn6TvK7W0kxTVN9fM5UDEIRLD96h zU8SzyaqWGlNFJZTP8OyS3o3Cs7ufBcwFC5+s9+0NeSoInIqw/WgjyuwGv6N2s2ZHr3Kk7x4BH1 A1OBjGBT6+3WAOq+rCMKUEleFzy94RNkdLF0uKyPsB5a901BO5DmfhpDroOT1foyljQ== X-Received: by 2002:a37:b504:: with SMTP id e4-v6mr31587898qkf.255.1539965090023; Fri, 19 Oct 2018 09:04:50 -0700 (PDT) X-Google-Smtp-Source: ACcGV62Ha3tvkuHmUIIvgHZeAMktbRVL4/yhunaKMbJdjSRBt1NK9hsGqRmtAHcFBHUaoLLyPzw6 X-Received: by 2002:a37:b504:: with SMTP id e4-v6mr31587852qkf.255.1539965089457; Fri, 19 Oct 2018 09:04:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539965089; cv=none; d=google.com; s=arc-20160816; b=feCOr1/1vb/N3PCNrYacin+G16wdbe5fQ4Oj0JjRREKe/Qs03zYxpzPmPRIQNBQtw2 pWf4TNJwzW79Im+j4MATmTEx5OkFBzHEV6RPK93YIErAQGNojEJTG56/efr/+9m6ouMw n+gbeFaKZGwnxZXoDewETiN2mgVVpJj6+xULQb4rS8MeHnb5pym9YW1MilSiyLSzzfZ3 PERxWrSqmjPernXPuU1fBCcRNWxf0FezDDnrQ+ga1NZ3GBlPeX1VdkarEw3ingmtyjXZ +4M/W2sFKjlAFsPOve4XD6FnETQMz1T4t21py9QICrHUafBKzsb3/bphibr9bt+DVWfG 9zDg== 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; bh=57HZv9U7qdD6CUXMzQv4OZY4HXDAzHcBT8XCX81eux8=; b=d0S44Tke2qLpaTsLeheL9qTvpEAZy68Karsvmwc0MiR/6Mgqr8+yTEv7GXd+NCVktX 6PIBbNNNBYvchUYNtxzuwgklK2MroXuw4pfAuB4g6sBE77cg7nK+EQJuyTG0cLdYlh9H KwG+475L+N5YfsQ4p3Qv0GoWk4WncPyqjtT/d+4alFaC+WD9F0YGi8oJU2zm7R/smaCO 1YSpRpt6wY/6CeHGJ8kGsMtCzyZPWH79oNILAy7bYZiW7gUXj40yBUa/iZ5V/lgakbXu vsZU2uz9NQSSlI3CyM0ACjyuUXxCEhmcG1LYpbtZl+A37QN8aVvS21ww1etdm5zaMYIz 1UFA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of jglisse@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=jglisse@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from mx1.redhat.com (mx1.redhat.com. [209.132.183.28]) by mx.google.com with ESMTPS id q125-v6si652584qkd.100.2018.10.19.09.04.49 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Oct 2018 09:04:49 -0700 (PDT) Received-SPF: pass (google.com: domain of jglisse@redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; Authentication-Results: mx.google.com; spf=pass (google.com: domain of jglisse@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=jglisse@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 545FB356F0; Fri, 19 Oct 2018 16:04:48 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-124-217.rdu2.redhat.com [10.10.124.217]) by smtp.corp.redhat.com (Postfix) with ESMTP id A9F0665314; Fri, 19 Oct 2018 16:04:47 +0000 (UTC) From: jglisse@redhat.com To: linux-mm@kvack.org Cc: Andrew Morton <akpm@linux-foundation.org>, linux-kernel@vger.kernel.org, =?utf-8?b?SsOpcsO0bWUgR2xpc3Nl?= <jglisse@redhat.com> Subject: [PATCH 0/6] HMM updates, improvements and fixes v2 Date: Fri, 19 Oct 2018 12:04:36 -0400 Message-Id: <20181019160442.18723-1-jglisse@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Fri, 19 Oct 2018 16:04:48 +0000 (UTC) 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: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
HMM updates, improvements and fixes v2
|
expand
|
From: Jérôme Glisse <jglisse@redhat.com> [Andrew this is for 4.20, stable fixes as cc to stable] Few fixes that only affect HMM users. Improve the synchronization call back so that we match was other mmu_notifier listener do and add proper support to the new blockable flags in the process. For curious folks here are branches to leverage HMM in various existing device drivers: https://cgit.freedesktop.org/~glisse/linux/log/?h=hmm-nouveau-v01 https://cgit.freedesktop.org/~glisse/linux/log/?h=hmm-radeon-v00 https://cgit.freedesktop.org/~glisse/linux/log/?h=hmm-intel-v00 More to come (amd gpu, Mellanox, ...) I expect more of the preparatory work for nouveau will be merge in 4.20 (like we have been doing since 4.16) and i will wait until this patchset is upstream before pushing the patches that actualy make use of HMM (to avoid complex tree inter-dependency). Jérôme Glisse (4): mm/hmm: fix utf8 ... mm/hmm: properly handle migration pmd v3 mm/hmm: use a structure for update callback parameters v2 mm/hmm: invalidate device page table at start of invalidation Ralph Campbell (2): mm/rmap: map_pte() was not handling private ZONE_DEVICE page properly v3 mm/hmm: fix race between hmm_mirror_unregister() and mmu_notifier callback include/linux/hmm.h | 33 +++++++---- mm/hmm.c | 134 +++++++++++++++++++++++++++++-------------- mm/page_vma_mapped.c | 24 +++++++- 3 files changed, 137 insertions(+), 54 deletions(-)