Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp907592pxb; Thu, 5 Nov 2020 16:53:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJwQvGEE2eB7AFcvEATN9LZ9V3bA5iA0rfLMrJIV2WpIx1cvs5Hiy1W0yA7rs5bFdzoNeha6 X-Received: by 2002:a50:a845:: with SMTP id j63mr5722413edc.32.1604624023263; Thu, 05 Nov 2020 16:53:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604624023; cv=none; d=google.com; s=arc-20160816; b=JnYkc1udscLKPx/sHYLEVTDrkIRIUYE9r4PAeUDF7+d56W7cFNSbTjZpT32Or45c/M 3Ia5aToYz+ZzH4f1Yb4rdupktP5j9vyX1yHoWnTaarR+XfYcgLdk0dSflG31U9jY/guu uv5I1ATngQ5YdWa82r+OWZrUvHQ1nt69LKLRp+4O75qZH5SKfYSRwPsVi8a690ljOcVJ xBQvyTO06txnUJbHSupOpFT9WZj2+62nxGR4bJnoCdqwSwssyANXEDvdwQM4u1oVRawg 9wVTGtcTPONXAKvJe373SRP6/BDI/cZtCp/SAnWRaqclcrvjoJiNdGeenS8K8x7TFgIL H6SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=yd2V0Bj7e0BljktQG2A8aEh2H8lDRzFocecZDywzuvo=; b=AnRZIX4X56juVlVgQqezIFFF7mpNQC7H0DqspNn8nf8lUzbhueQgxN3Sks1gg1KpRI n7PBJwprJL9z/gwqkdLPISuSMpS8p2SajWAVptsSE+yUu2ureFPPucIalaR9C/h/0AbZ lAwEAM0+NDyzx7Mw6VQrBOKKbyg1+u0JjH/uEXfpItScnq9N6Wb2hDDXxXreMzBb9PL0 1zys/KmmChhbFTYD4clyX5AvmgRo3iM4qBcNQV56gCRXw/ulLkcbkMnKUsPVI7a/kvkd USjZu8LtaLs9rIhXaCbbl1mOlJzMPkzCnUix4VjFJPLZLlWTVyi6IvrrG4kZa0UOPJ2r y7JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=l1GP2Mqk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n18si2295016eje.443.2020.11.05.16.53.19; Thu, 05 Nov 2020 16:53:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=l1GP2Mqk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732696AbgKFAv4 (ORCPT + 99 others); Thu, 5 Nov 2020 19:51:56 -0500 Received: from hqnvemgate26.nvidia.com ([216.228.121.65]:2066 "EHLO hqnvemgate26.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729784AbgKFAvz (ORCPT ); Thu, 5 Nov 2020 19:51:55 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Thu, 05 Nov 2020 16:51:59 -0800 Received: from HQMAIL105.nvidia.com (172.20.187.12) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 6 Nov 2020 00:51:51 +0000 Received: from rcampbell-dev.nvidia.com (10.124.1.5) by mail.nvidia.com (172.20.187.12) with Microsoft SMTP Server id 15.0.1473.3 via Frontend Transport; Fri, 6 Nov 2020 00:51:51 +0000 From: Ralph Campbell To: , , , CC: Jerome Glisse , John Hubbard , Alistair Popple , Christoph Hellwig , "Jason Gunthorpe" , Bharata B Rao , Zi Yan , "Kirill A . Shutemov" , Yang Shi , Ben Skeggs , "Shuah Khan" , Andrew Morton , "Ralph Campbell" Subject: [PATCH v3 0/6] mm/hmm/nouveau: add THP migration to migrate_vma_* Date: Thu, 5 Nov 2020 16:51:41 -0800 Message-ID: <20201106005147.20113-1-rcampbell@nvidia.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-NVConfidentiality: public Content-Transfer-Encoding: quoted-printable Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1604623919; bh=yd2V0Bj7e0BljktQG2A8aEh2H8lDRzFocecZDywzuvo=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:MIME-Version: X-NVConfidentiality:Content-Transfer-Encoding:Content-Type; b=l1GP2MqkXumBnOLdZPkkI/rhR7a4QkhrOLUzQZ07kAYQ/Co7WXfjmo46mueuuYvZq Br4aCN5s2HI1+/JMzxHxzk9kadPHc2pQPf3Rtj77uLEYEZzaxYsF5HJtLu7+RBGYln kmNW1dk9VrCVI8cp6tvg2EiI4aEyYOfCHItqRY+fTSmi7KzwNWmS44k3KW56sW+MzW o2huLaZevX2k/szf3mkftTbe/zpAKP3yluAPe9gWgMq1+UQwEo9MYmPmH9pM0Ish3f NBf69WgnEPE5Plno3uUZkGtiOrkYQmWQEKVUyZjSs3433S3bzfsqF/n/H07IOMgK7k vZ64sh9YOSrBA== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds support for transparent huge page migration to migrate_vma_*() and adds nouveau SVM and HMM selftests as consumers. Earlier versions were posted previously [1] and [2]. The patches apply cleanly to the linux-mm 5.10.0-rc2 tree. There are a lot of other THP patches being posted. I don't think there are any semantic conflicts but there may be some merge conflicts depending on the order Andrew applies these. Changes in v3: Sent the patch ("mm/thp: fix __split_huge_pmd_locked() for migration PMD") as a separate patch from this series. Rebased to linux-mm 5.10.0-rc2. Changes in v2: Added splitting a THP midway in the migration process: i.e., in migrate_vma_pages(). [1] https://lore.kernel.org/linux-mm/20200619215649.32297-1-rcampbell@nvidi= a.com [2] https://lore.kernel.org/linux-mm/20200902165830.5367-1-rcampbell@nvidia= .com Ralph Campbell (6): mm/thp: add prep_transhuge_device_private_page() mm/migrate: move migrate_vma_collect_skip() mm: support THP migration to device private memory mm/thp: add THP allocation helper mm/hmm/test: add self tests for THP migration nouveau: support THP migration to private memory drivers/gpu/drm/nouveau/nouveau_dmem.c | 289 +++++++++++----- drivers/gpu/drm/nouveau/nouveau_svm.c | 11 +- drivers/gpu/drm/nouveau/nouveau_svm.h | 3 +- include/linux/gfp.h | 10 + include/linux/huge_mm.h | 12 + include/linux/memremap.h | 9 + include/linux/migrate.h | 2 + lib/test_hmm.c | 437 +++++++++++++++++++++---- lib/test_hmm_uapi.h | 3 + mm/huge_memory.c | 147 +++++++-- mm/memcontrol.c | 25 +- mm/memory.c | 10 +- mm/memremap.c | 4 +- mm/migrate.c | 429 +++++++++++++++++++----- mm/rmap.c | 2 +- tools/testing/selftests/vm/hmm-tests.c | 404 +++++++++++++++++++++++ 16 files changed, 1522 insertions(+), 275 deletions(-) --=20 2.20.1