mirror of
https://github.com/torvalds/linux.git
synced 2025-08-15 22:21:42 +02:00
lib: test_hmm add module param for zone device type
In order to configure device coherent in test_hmm, two module parameters should be passed, which correspond to the SP start address of each device (2) spm_addr_dev0 & spm_addr_dev1. If no parameters are passed, private device type is configured. Link: https://lkml.kernel.org/r/20220715150521.18165-10-alex.sierra@amd.com Signed-off-by: Alex Sierra <alex.sierra@amd.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Felix Kuehling <Felix.Kuehling@amd.com> Reviewed-by: Alistair Poppple <apopple@nvidia.com> Cc: David Hildenbrand <david@redhat.com> Cc: Jason Gunthorpe <jgg@nvidia.com> Cc: Jerome Glisse <jglisse@redhat.com> Cc: Matthew Wilcox <willy@infradead.org> Cc: Ralph Campbell <rcampbell@nvidia.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
188f48268d
commit
25b80162d5
2 changed files with 53 additions and 21 deletions
|
@ -66,6 +66,7 @@ enum {
|
|||
enum {
|
||||
/* 0 is reserved to catch uninitialized type fields */
|
||||
HMM_DMIRROR_MEMORY_DEVICE_PRIVATE = 1,
|
||||
HMM_DMIRROR_MEMORY_DEVICE_COHERENT,
|
||||
};
|
||||
|
||||
#endif /* _LIB_TEST_HMM_UAPI_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue