Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp111601ybi; Tue, 16 Jul 2019 17:16:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqzs/Lqx9gCjOcB6dyGgJUVD8lzXocfb7BFNyfGp+I/JLrfzAxuOmcDLQCH9vWriWeoW4SA7 X-Received: by 2002:a63:6c7:: with SMTP id 190mr36723600pgg.7.1563322571354; Tue, 16 Jul 2019 17:16:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563322571; cv=none; d=google.com; s=arc-20160816; b=iWOn+/v31Kr2NjdWZ/H+48a+dZKO2c/mHGAoP6lvBfB94so+HOfU1Dt/ZAYH5jZpEX 2JA8mJnLsbWrSSw2a3C8HzPOTYDIMGHeoguEaLO6IQrzhJAJNaX0bvbuqvoHQEuvru30 6c76ENeRY4HbDAlY7guJcSdA3LjCQ3Xj+IsX3+v4rgVCh69m9QAA3ys0fhMJvrOuANKD PW2gIV55bJGczzgwPEELiHr3887fRsCht8wIERTQYkF45qzQH8xCcfNKQ05AMWaUKqnP wy2L7ZOrIN0VpR/Bf4SpiLsPI82dZiqY46dJJJNNTXi6sPAZop509LxuGJCB88TLsjNr ggyQ== 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=QOa8BW0E07Ee38avrfpKA+oyUuQLvEQzEap7bbAY0o02MmKKKyHrclOOpIN1RSGBtp 9jddptbg6zi04I5UV/bshq2D4NYhOX/JV80RzxoxkEbHeTeCn2gGNsoYWV7fHcjFQuQA DIO9mbkurUy13pQvbkNwfY4THpXiu8/NK7eNiBaxaJ0zJdXliUcyB3VJqjh7nHRh1w+6 6qOPgiCInMcUMZEWwX6hUgW5cqmrlf1oGogq/Mi5LIqkQcbz0MLQnJHN4dEDiXC+vnEW 6w+p9rSBCL5mEqt0WX+xYfci9Js//zcyl0nmRIVg+JnUzDh/fW8NCbq2aTcuW1XCcMe5 IYjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b="leC/Gb3q"; 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 y8si20894809pji.65.2019.07.16.17.15.55; Tue, 16 Jul 2019 17:16:11 -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="leC/Gb3q"; 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 S2388725AbfGQAPa (ORCPT + 99 others); Tue, 16 Jul 2019 20:15:30 -0400 Received: from hqemgate15.nvidia.com ([216.228.121.64]:11572 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728597AbfGQAPa (ORCPT ); Tue, 16 Jul 2019 20:15:30 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Tue, 16 Jul 2019 17:15:36 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Tue, 16 Jul 2019 17:15:29 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Tue, 16 Jul 2019 17:15:29 -0700 Received: from HQMAIL101.nvidia.com (172.20.187.10) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 17 Jul 2019 00:15:29 +0000 Received: from hqnvemgw01.nvidia.com (172.20.150.20) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Wed, 17 Jul 2019 00:15:29 +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 ; Tue, 16 Jul 2019 17:15:29 -0700 From: Ralph Campbell To: CC: , Ralph Campbell Subject: [PATCH 0/3] mm/hmm: fixes for device private page migration Date: Tue, 16 Jul 2019 17:14:43 -0700 Message-ID: <20190717001446.12351-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=1563322536; 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=leC/Gb3qxcTdl7ZxhD/ykWwGw86krGQRaZO7OGchr2aUxHZbQW/aj6ghYjKJaB2sg LN6dtU9KfwqXAhpso+OWUQNKC6cFk18ZRuZIGgr/EGOvWAdmnylyUg58D3H5vjfvGn 2FAgd6tdTzVwWKB/uTtaEY0+pfsdaMKKJLZgbSedqpka1JJb9zIfa7ooPuLPKnEYyK yzYjLrl4H8kwhU3Q3YBZ28rIzMsv3YfeAGBrRijqQu+amFWj7kLzlLhiSc1sgqNkfl 8GW7bQfebpC8hnNsFLRBGLDCDPTkhXEoXjkMujCpSGkUy+27tEFrSY+YZQY6bLFB1I K51ZVi3Q3NZgg== 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