Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3473991ybi; Fri, 19 Jul 2019 03:54:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqzOWO1uV7zUR7lr9XgygU/QICCe+lMwm0M2nKwx0EPXg4HGxPipKzuMm1xT3U+/J7g42jpY X-Received: by 2002:a65:47c1:: with SMTP id f1mr52493877pgs.169.1563533686669; Fri, 19 Jul 2019 03:54:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563533686; cv=none; d=google.com; s=arc-20160816; b=AXuzYp5xFu5TA1ZzQ4rAkyqKl70DNv0Dv8A5omiMMAwI22LtYjSijPvP8exMM6uFgR ku7R+4Y74EmFhv6BVqBYmSm5hsD33y0UZGbR0SfqGwbe0RNzeF4W8P7SMA1X++ehvaXv N27dVZHUDWnWuBokrOnOeBDUlhCeep34sAaoJdJP8d0O0yPE87JYzKBVh/bh23XvyGz7 qAW5AsGCK6LlrLjCkJgwIOIW5ZoD4ytSv7hcQFAWsYcA7rkkDFGZZ3zzAvfyT4zrvrbz EonbeP3+Ry26ztuBwaHrQi0BBsUWsibv70Cq/BfmoVshtJVmWDf56ZsTPiFzZ3gO9TEV Qx6Q== 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=XiCaNwaTmM1PkrfzU6w9ZSDILB8JTlUYhb5UZNf8EJY=; b=dG42PnvlBjtBJsDsrUI672GDY7Vup2g4LGGBk5TVURbd1d4hZfbUFHVMVOb7rpF3Ux bymRD1JcAwW9F4VYwIG/nYdfWJ2Zn/wAMaGBWkuxFtIocbZ38EYqIdKNyTN/UxDkjDVT mox4NlbrRo99ox+9GEpooCgEUwKopY1hfNOL8f70VRSdouCTU0u74KjlH77uaRQfj7aZ hymgEiaLvO+/3mhc43fDtFBY4vjfNsqrcPEKAyLjwikUI3Q8O6xRfloO3xXIz27VQ/3K jdVOgYBZ5rM6ra8d7cGvgdgj+BQFnn6FmIbsVh57cmzzXwXKmfMKXnwPnF8h4IvFWeTV Gq2g== 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 b23si882892pjp.62.2019.07.19.03.54.30; Fri, 19 Jul 2019 03:54:46 -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 S1727640AbfGSKwn (ORCPT + 99 others); Fri, 19 Jul 2019 06:52:43 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:33920 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726239AbfGSKwn (ORCPT ); Fri, 19 Jul 2019 06:52:43 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id AEBEB802EE; Fri, 19 Jul 2019 12:52:28 +0200 (CEST) Date: Fri, 19 Jul 2019 12:52:39 +0200 From: Pavel Machek To: Christoph Hellwig Cc: john.hubbard@gmail.com, SCheung@nvidia.com, akpm@linux-foundation.org, aneesh.kumar@linux.vnet.ibm.com, benh@kernel.crashing.org, bsingharora@gmail.com, dan.j.williams@intel.com, dnellans@nvidia.com, ebaskakov@nvidia.com, hannes@cmpxchg.org, jglisse@redhat.com, jhubbard@nvidia.com, kirill.shutemov@linux.intel.com, linux-kernel@vger.kernel.org, liubo95@huawei.com, mhairgrove@nvidia.com, mhocko@kernel.org, paulmck@linux.vnet.ibm.com, ross.zwisler@linux.intel.com, sgutti@nvidia.com, torvalds@linux-foundation.org, vdavydov.dev@gmail.com, Jason Gunthorpe Subject: Re: [PATCH] mm/Kconfig: additional help text for HMM_MIRROR option Message-ID: <20190719105239.GA10627@amd> References: <20190717074124.GA21617@amd> <20190719013253.17642-1-jhubbard@nvidia.com> <20190719055748.GA29082@infradead.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="liOOAslEiF7prFVr" Content-Disposition: inline In-Reply-To: <20190719055748.GA29082@infradead.org> 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 --liOOAslEiF7prFVr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu 2019-07-18 22:57:48, Christoph Hellwig wrote: > On Thu, Jul 18, 2019 at 06:32:53PM -0700, john.hubbard@gmail.com wrote: > > + HMM_MIRROR provides a way to mirror ranges of the CPU page tables > > + 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. > > + > > + Select HMM_MIRROR if you have hardware that meets the above > > + description. An early, partial list of such hardware is: > > + an NVIDIA GPU >=3D Pascal, Mellanox IB >=3D mlx5, or an AMD GPU. >=20 > Nevermind that the Nvidia support is stagaging and looks rather broken, > there is no Mellanox user of this either at this point. >=20 > But either way this has no business in a common kconfig help. Just > drop the fine grained details and leave it to the overview. I disagree here. This explains what kind of hardware this is for (very new). Partial list does not hurt, and I know that I probably don't need to enable this. How else am I supposed to know if my computer needs page tables synchronized? Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --liOOAslEiF7prFVr Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl0xoPcACgkQMOfwapXb+vIiygCgpZIgxcueA5lGweI7pvQKR6l2 oNQAn2gePbpEnABaDspF4wN2+WKGu1GH =y1s7 -----END PGP SIGNATURE----- --liOOAslEiF7prFVr--