Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2375138ybi; Thu, 18 Jul 2019 07:27:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqzl8drmiIK93X1G1LJwMQEHamy2oypcWTfYu0AZW5WWzbnTk4u6c0qf9GyIpulJvAHezGHj X-Received: by 2002:a17:90a:898e:: with SMTP id v14mr51297234pjn.119.1563460064561; Thu, 18 Jul 2019 07:27:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563460064; cv=none; d=google.com; s=arc-20160816; b=XLOQatd44Wnw+s5Z+brAlRfiJcVKDg9uRIe16M7TZQITkocr6H6l/R/cdordAXIr97 pjIlQBfb4Aeqhu+wYxMen3DzFR7Aaj0c4eWLwZZO86rIDGsa5u7R5WXM9iGBJHuPOmky 4obbyzg4jP7XwqqQfI1Nmt2yZgNDwZ9WhwfjnjSDkh5LJG1oSlCgIMS2BXD47NUyBJMa JA0mo49PcOdYPb/sjK4E9sU1GZoJv1zDdz+0EWjfrYFjkZaFJ8IqljEYLlGHjdKVuTIZ MeRYTY9hLwXi7ZHhJVl7Tfuo+9yRfEpjRFjcHv/l6/tWrfbcK+OdUIeQRaX4nSmxISzt A6Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=NEfHbVHTHxaeDRfwOPqdRBhxdA+kWRw0lTsxb4KwEKY=; b=r5qX1dX+2sz1EhJw9L7Ye3/U8QG6nJVkEHFZX5uX7rE8B9rnoEvJVSrIaVq5HGQISe SqXutTJkofIEtqJ0Z8k/1wCy3bKGaOACu0Wk4vo+6rBN9vPD8Zm9uEF/tqTnOIqfhxpi lTzxwh3jm3rvXXjm4xDHg5IPGvWHzmFa12WqxjJmjrKt7/35fUCev32JmXEAHTR+zGte 7spde9ngtoXz8xoOi6Etgjyrz4ch002m04bhciL8EVjv6QamEs2sQfwESot5WgdefzSr e/1I+lIAscAiWNYA1RY7Otd3FhLgC4UoiwSyoU+oCUHha5QiHDyjs9IC9NLwMpfjdsUw L0Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=ehV7+gKg; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q14si24315644pjp.78.2019.07.18.07.27.28; Thu, 18 Jul 2019 07:27:44 -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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=ehV7+gKg; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390524AbfGROZ5 (ORCPT + 99 others); Thu, 18 Jul 2019 10:25:57 -0400 Received: from mail-oi1-f175.google.com ([209.85.167.175]:43731 "EHLO mail-oi1-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727770AbfGROZy (ORCPT ); Thu, 18 Jul 2019 10:25:54 -0400 Received: by mail-oi1-f175.google.com with SMTP id w79so21645207oif.10 for ; Thu, 18 Jul 2019 07:25:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NEfHbVHTHxaeDRfwOPqdRBhxdA+kWRw0lTsxb4KwEKY=; b=ehV7+gKgD9TaoC10Ox+amOqzeQyE5iWOsMyaZ6c6J97blX6bDdl27Fkxll2rfap8Ie d3FvKZu4jnSjHtRt+zyjzfqyUjUezaboOSKVN2rTmg6atVMl8zO6SlGfAHF5NRNq3YEw Da9CHQ8/1BtOlwmuHDFcn1FM0YL9LYregEa7sLPL4H/Eso3q4o4OfqiFXIBxIBk7nNYw yfS06g3/EhNX53CTlRtQJf7p4U8FvnwIXEBvkjLcjCMVksc8fMjyCFpN+M7AAyiBsHO9 ajCJm7+QxK/4rsLnxw+X8NB8DVWVtPwlt0zdSobQsocGQiqVIqoy/WBxhvdtQXdEqAxE b0RQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NEfHbVHTHxaeDRfwOPqdRBhxdA+kWRw0lTsxb4KwEKY=; b=G50EEfKYPJIveFzmhTz9w7af1Fhb6gOXUTOSseN9rlXOMDtk+T1zDMt7uAZQ5KKY8l gFzFOfiNTTRQPqiXBP614/1VXQoy5DkBqE0xGj7eDf/yfuWPPDtTKkfeiOSXKa8QJXoS Kvvgt4ZepYulf/0BFqpmN3dAiwTjCUd6lWDQJ48imqoiHyJzD6lMHqMR6zbV1HcCR9+/ CuT1yWiTCR9eSKI7XyANoCYoz7iLqWHklHn6E8NvABORC14TZfpR5wwHbvuzYwr74D5q 1ozDqtgIprk2HSG8vSZ9EiERGztG/KLE36eB/nOZ0rw3bahXeCoYuH/50cIiYsy1Sbip Xh6A== X-Gm-Message-State: APjAAAX7/sBN+2ysm/Z+UupzjM+Rqm4x/Gfg0+00GTFTAcioAJpdud2k 4PgIWs+p3++e0FI0jY3wHySI2DxBfDwjdNegytxg3w== X-Received: by 2002:aca:d80a:: with SMTP id p10mr23203418oig.105.1563459954012; Thu, 18 Jul 2019 07:25:54 -0700 (PDT) MIME-Version: 1.0 References: <20190717074124.GA21617@amd> In-Reply-To: From: Dan Williams Date: Thu, 18 Jul 2019 07:25:42 -0700 Message-ID: Subject: Re: HMM_MIRROR has less than useful help text To: Balbir Singh Cc: Pavel Machek , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Evgeny Baskakov , John Hubbard , Mark Hairgrove , Sherry Cheung , Subhash Gutti , Aneesh Kumar KV , Benjamin Herrenschmidt , David Nellans , Johannes Weiner , "Kirill A. Shutemov" , Michal Hocko , "Paul E. McKenney" , Ross Zwisler , Vladimir Davydov , Bob Liu , "akpm@linux-foundation.org" , Linus Torvalds , kernel list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 18, 2019 at 4:04 AM Balbir Singh wrote: > > On Wed, Jul 17, 2019 at 5:41 PM Pavel Machek wrote: > > > > Hi! > > > > Commit c0b124054f9e42eb6da545a10fe9122a7d7c3f72 has very nice commit > > message, explaining what HMM_MIRROR is and when it is > > needed. Unfortunately, it did not make it into Kconfig help: > > > > CONFIG_HMM_MIRROR: > > > > Select HMM_MIRROR if you want to mirror range of the CPU page table of > > a > > process into a device page table. Here, mirror means "keep > > synchronized". > > Prerequisites: the device must provide the ability to write-protect > > its > > page tables (at PAGE_SIZE granularity), and must be able to recover > > from > > the resulting potential page faults. > > > > Could that be fixed? > > > > This is key information for me: > > > > # This is a heterogeneous memory management (HMM) process address space > > # mirroring. > > # This is useful for NVidia GPU >= Pascal, Mellanox IB >= mlx5 and more > > # hardware in the future. > > > > That seems like a reasonable request Hi Pavel, care to send a patch?