Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4094500ybi; Fri, 19 Jul 2019 14:53:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqzu7U91WnbbftNYOs3HQR4BLOBXRkRrzy2XhBMbF6BeG12McY6xzSDCtf1pB0MkK4DU7xb+ X-Received: by 2002:a17:902:e287:: with SMTP id cf7mr58627649plb.32.1563573233767; Fri, 19 Jul 2019 14:53:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563573233; cv=none; d=google.com; s=arc-20160816; b=M3UPtCh24U8Qt4E0YtS9akr2bQYjck8NjOinAAwO7lKuqfWx5s6hBUCcMuEr+zycGE X4pwTFAQEwrh/NbgI63i+Aw3EvY0jVrq5iKvwkbU9wwPv74As3bPjGBMzuSc/YMXCv9s rFM2Y/eeSU9UrOILwyI92oGrDb12KNkSWaoroaojFYTs3xgFYNlfz0M5cRv//o8Zn8pu Ikc9WWNNAVgPslLiqoO9xlOUao2Q5Co+HCLjmL4oBwjCdNXhbvtMmWo0Ed4vIOeRXMla E5UdcbNdKe1K3M2OS3s8O4+artJXStBZmgcWXjkxZW0SuRXZ47pJ/8lsIxwNYVFukCxo ZSCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=QsS0ZqN4YggOSSwkzcpaGSaK/G4QRt1uJsrCicwV7Ig=; b=hlltMdvoHWQtcGTBZrZVtz9l7a7iWY1s4i/Vlr8c16iQuyVY+vya5cQZ0FAJkh6C3g QdyEEMy4DUH1qes24ARTKYqGAUp4BzTT/uXFdFRRzOk8r9SvytMl293wf+3mCerISR4C RYSUBrqnUvSqhD0bB6W0+w+HIa426QXv6MA7Je3uuEHGMQhaYNtg3jKCicP5U8fbpqbO HaQmwYbJfOPwRpV2ujSoP+1tX2v/QwM18ERoXlzFGCwMn/ahzQ5XXlgURJtYXUIQiyMw avHGAfrhcbdPyTTkPIzyfBe6Jcy6GO63hGlOC6ZUgG9emU3zc4JEbG+a7z4uUOqH7uYd zmCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=jxQEAVW9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u38si1908181pgn.79.2019.07.19.14.53.38; Fri, 19 Jul 2019 14:53:53 -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; dkim=pass header.i=@nvidia.com header.s=n1 header.b=jxQEAVW9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732419AbfGSTHA (ORCPT + 99 others); Fri, 19 Jul 2019 15:07:00 -0400 Received: from hqemgate15.nvidia.com ([216.228.121.64]:11442 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728164AbfGSTG7 (ORCPT ); Fri, 19 Jul 2019 15:06:59 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Fri, 19 Jul 2019 12:07:05 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Fri, 19 Jul 2019 12:06:58 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Fri, 19 Jul 2019 12:06:58 -0700 Received: from HQMAIL105.nvidia.com (172.20.187.12) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 19 Jul 2019 19:06:58 +0000 Received: from hqnvemgw01.nvidia.com (172.20.150.20) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Fri, 19 Jul 2019 19:06:58 +0000 Received: from rcampbell-dev.nvidia.com (Not Verified[10.110.48.66]) by hqnvemgw01.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Fri, 19 Jul 2019 12:06:57 -0700 From: Ralph Campbell To: CC: , Ralph Campbell Subject: [PATCH 0/3] mm/hmm: fixes for device private page migration Date: Fri, 19 Jul 2019 12:06:46 -0700 Message-ID: <20190719190649.30096-1-rcampbell@nvidia.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-NVConfidentiality: public Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1563563225; bh=QsS0ZqN4YggOSSwkzcpaGSaK/G4QRt1uJsrCicwV7Ig=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: MIME-Version:X-NVConfidentiality:Content-Type: Content-Transfer-Encoding; b=jxQEAVW9dL6wzzJZhi9oVQfu95yulOt+20Uvj544XLjwMiQF2QVwEX293Qs43kMoS 4Vso1R6MQwYZIUgf2p1UD0BhTiYszqeVq93M0aNeGArCRA0EAGnU6mIwDh4Hy7ROmh ymYxVgjQHBtZkADvjbeoVXPih7pWmzkC7XnJjQUHdLr68pryGeO9O0J4uEUPphuhjD nNFSht/knyqL7UOJ6vRE4LDm2AMiTgrYJVPm6GmFKmTj+1+AXEFwpPXIFGEb670h7c jIttNprxT/CtiaFP7+TrcdMm1fYvhVD/p19AVkGdnVLwB7E+YUhgFhCZn1xsiKqIg8 dE/I33qUqnaPQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Testing the latest linux git tree turned up a few bugs with page migration to and from ZONE_DEVICE private and anonymous pages. Hopefully it clarifies how ZONE_DEVICE private struct page uses the same mapping and index fields from the source anonymous page mapping. Patch #3 was sent earlier and this is v2 with an updated change log. http://lkml.kernel.org/r/20190709223556.28908-1-rcampbell@nvidia.com Ralph Campbell (3): mm: document zone device struct page reserved fields mm/hmm: fix ZONE_DEVICE anon page mapping reuse mm/hmm: Fix bad subpage pointer in try_to_unmap_one include/linux/mm_types.h | 9 ++++++++- kernel/memremap.c | 4 ++++ mm/rmap.c | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) --=20 2.20.1