[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190719043439.GA26230@iweiny-DESK2.sc.intel.com>
Date: Thu, 18 Jul 2019 21:34:40 -0700
From: Ira Weiny <ira.weiny@...el.com>
To: john.hubbard@...il.com
Cc: pavel@....cz, SCheung@...dia.com, akpm@...ux-foundation.org,
aneesh.kumar@...ux.vnet.ibm.com, benh@...nel.crashing.org,
bsingharora@...il.com, dan.j.williams@...el.com,
dnellans@...dia.com, ebaskakov@...dia.com, hannes@...xchg.org,
jglisse@...hat.com, jhubbard@...dia.com,
kirill.shutemov@...ux.intel.com, linux-kernel@...r.kernel.org,
liubo95@...wei.com, mhairgrove@...dia.com, mhocko@...nel.org,
paulmck@...ux.vnet.ibm.com, ross.zwisler@...ux.intel.com,
sgutti@...dia.com, torvalds@...ux-foundation.org,
vdavydov.dev@...il.com, Jason Gunthorpe <jgg@...pe.ca>,
Christoph Hellwig <hch@...radead.org>
Subject: Re: [PATCH] mm/Kconfig: additional help text for HMM_MIRROR option
On Thu, Jul 18, 2019 at 06:32:53PM -0700, john.hubbard@...il.com wrote:
> From: John Hubbard <jhubbard@...dia.com>
>
> The HMM_MIRROR option in Kconfig is a little underdocumented and
> mysterious, and leaves people wondering whether to enable it.
>
> Add text explaining just a little bit more about HMM, and also
> mention which hardware would benefit from having HMM_MIRROR
> enabled.
>
> Suggested-by: Pavel Machek <pavel@....cz>
> Cc: Balbir Singh <bsingharora@...il.com>
> Cc: Dan Williams <dan.j.williams@...el.com>
> Cc: Jason Gunthorpe <jgg@...pe.ca>
> Cc: Jerome Glisse <jglisse@...hat.com>
> Cc: Christoph Hellwig <hch@...radead.org>
> Signed-off-by: John Hubbard <jhubbard@...dia.com>
> ---
>
> Hi Pavel and all, does this help? I've tried to capture the key missing bits
> of documentation, but still keep it small, for Kconfig.
>
> thanks,
> John Hubbard
> NVIDIA
>
> mm/Kconfig | 17 ++++++++++++-----
> 1 file changed, 12 insertions(+), 5 deletions(-)
>
> diff --git a/mm/Kconfig b/mm/Kconfig
> index 56cec636a1fc..2fcb92e7f696 100644
> --- a/mm/Kconfig
> +++ b/mm/Kconfig
> @@ -681,11 +681,18 @@ config HMM_MIRROR
> depends on MMU && 64BIT
> select MMU_NOTIFIER
> help
> - 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.
> + This is Heterogeneous Memory Management (HMM) process address space
> + mirroring.
> +
> + 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 >= Pascal, Mellanox IB >= mlx5, or an AMD GPU.
I don't think we want to put device information here. If we want that
information in Kconfig best to put it in the devices themselves. Otherwise
this list will get stale.
Other than that, looks good.
Reviewed-by: Ira Weiny <ira.weiny@...el.com>
Ira
>
> config DEVICE_PRIVATE
> bool "Unaddressable device memory (GPU memory, ...)"
> --
> 2.22.0
>
Powered by blists - more mailing lists