Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2518490ybi; Thu, 18 Jul 2019 09:37:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqzBBFCdL+G0oYJwohMHLZWFpaiCKu3qM7IvzY3QYlWIVIzmu6kS7BLTr/5Dl0fFH3imTubs X-Received: by 2002:a17:90a:ab01:: with SMTP id m1mr49992785pjq.69.1563467825740; Thu, 18 Jul 2019 09:37:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563467825; cv=none; d=google.com; s=arc-20160816; b=V+KtiPq4VEm9r6RNtU4q5RhN7o8Ran9J6E4fUdIHKdbrGB0BCnkBzYnMGpPSq/D7RQ i49CDI2TYXSYls8xGcQ1cB211DIl+F+ObsxOn0Pwme4io/5A1b8RTHaft366aifSBXVb +GFnYbj1CuudSED1Ua2UQW0eddmXlWATOQYSm3iQLAAWBh1wp7VL2+HnC1UK8VjPl4uZ +2rFcMjPKN70ElTdaQBCkoUgaHaU7ulNC/Sx4gEvDUe1MX9knh9Lwy3zjfRJy2LYKy2z 6R2rgm8CzR3srIwdej2RI6K9XGsvgZHGG1ydqhLpO7LtlQfFqOwAGzMHNrEarkvu1kW4 J2Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=WGdb7YzaWKm7SzToAVYvEu2pfsDkChEkT16SfGn5IhM=; b=gK00U+8kbBRe3tAyutNTZPsbISPTW2wPHmMDbmanFi6tHssaDz5Tah+4dSsVAHjOWM W1n5mLZB1gACQCuaAK3tWSQ8OUhXGmp1s2KqJe31ij6GNRBnHlCtMME/RckO/Lsr8Avp w/uXO3cRZ1CzNAsi9Zw35Uhg/iXjVQQEowMuWXkrVQCWdgeq4S7cgzvq68fKO6sCVxsn 8IuOj8AyQlZQqpDgJseobirUuBz4pi0sTm0FhMzEGokEUDMg1gihbv8bsH6BYY0xIfRY kWACiP9Vl4Ss8h6z8jZzcpbub6Dy9n8KD+12tP0ChPsH8zelmPZko8TNHyndDaiwvxe6 If+A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q24si2398961pls.7.2019.07.18.09.36.49; Thu, 18 Jul 2019 09:37:05 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731741AbfGRQgF (ORCPT + 99 others); Thu, 18 Jul 2019 12:36:05 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:36432 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727780AbfGRQgE (ORCPT ); Thu, 18 Jul 2019 12:36:04 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 262EE8029D; Thu, 18 Jul 2019 18:35:51 +0200 (CEST) Date: Thu, 18 Jul 2019 18:36:01 +0200 From: Pavel Machek To: Dan Williams Cc: Balbir Singh , =?iso-8859-1?B?Suly9G1l?= Glisse , 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 Subject: Re: HMM_MIRROR has less than useful help text Message-ID: <20190718163601.GA21502@amd> References: <20190717074124.GA21617@amd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vkogqOf2sHV7VnPd" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --vkogqOf2sHV7VnPd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu 2019-07-18 07:25:42, Dan Williams wrote: > On Thu, Jul 18, 2019 at 4:04 AM Balbir Singh wrot= e: > > > > 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 spa= ce > > > # mirroring. > > > # This is useful for NVidia GPU >=3D Pascal, Mellanox IB >=3D mlx5 an= d more > > > # hardware in the future. > > > > > > > That seems like a reasonable request >=20 > Hi Pavel, care to send a patch? I hoped patch author would fix up their code. I'm not HMM expert, he should be... Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --vkogqOf2sHV7VnPd Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl0wn/EACgkQMOfwapXb+vLB6ACeLmMyj948TuYUlFIoTfib+UuC 2KwAn3SFfrNn/UFu/9H/1W7LWAGPUp1U =54UH -----END PGP SIGNATURE----- --vkogqOf2sHV7VnPd--