commit | b2ef9f5a5cb37643ca5def3516c546457074b882 | [log] [tgz] |
---|---|---|
author | Ralph Campbell <rcampbell@nvidia.com> | Wed Apr 22 12:50:26 2020 -0700 |
committer | Jason Gunthorpe <jgg@mellanox.com> | Tue May 19 16:48:30 2020 -0300 |
tree | 8df33fda37b9cba9f18f4c98ea7a158b51f60259 | |
parent | 2733ea144dcce789de20988c1056e228a07b1bff [diff] [blame] |
mm/hmm/test: add selftest driver for HMM This driver is for testing device private memory migration and devices which use hmm_range_fault() to access system memory via device page tables. Link: https://lore.kernel.org/r/20200422195028.3684-2-rcampbell@nvidia.com Link: https://lore.kernel.org/r/20200516010424.2013-1-rcampbell@nvidia.com Signed-off-by: Ralph Campbell <rcampbell@nvidia.com> Signed-off-by: Jérôme Glisse <jglisse@redhat.com> Link: https://lore.kernel.org/r/20200509030225.14592-1-weiyongjun1@huawei.com Link: https://lore.kernel.org/r/20200509030234.14747-1-weiyongjun1@huawei.com Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Link: https://lore.kernel.org/r/20200511183704.GA225608@mwanda Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 21d9c5f..6ddd646 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug
@@ -2201,6 +2201,19 @@ If unsure, say N. +config TEST_HMM + tristate "Test HMM (Heterogeneous Memory Management)" + depends on TRANSPARENT_HUGEPAGE + depends on DEVICE_PRIVATE + select HMM_MIRROR + select MMU_NOTIFIER + help + This is a pseudo device driver solely for testing HMM. + Say M here if you want to build the HMM test module. + Doing so will allow you to run tools/testing/selftest/vm/hmm-tests. + + If unsure, say N. + endif # RUNTIME_TESTING_MENU config MEMTEST