diff options
author | Ralph Campbell <rcampbell@nvidia.com> | 2020-04-22 12:50:26 -0700 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2020-05-19 16:48:30 -0300 |
commit | b2ef9f5a5cb37643ca5def3516c546457074b882 (patch) | |
tree | 8df33fda37b9cba9f18f4c98ea7a158b51f60259 /lib/Kconfig.debug | |
parent | 2733ea144dcce789de20988c1056e228a07b1bff (diff) | |
download | linux-b2ef9f5a5cb37643ca5def3516c546457074b882.tar.bz2 |
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>
Diffstat (limited to 'lib/Kconfig.debug')
-rw-r--r-- | lib/Kconfig.debug | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 21d9c5f6e7ec..6ddd646335dd 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -2201,6 +2201,19 @@ config TEST_MEMINIT 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 |