search for: thp_size

Displaying 5 results from an estimated 5 matches for "thp_size".

Did you mean: nop_size
2020 May 08
2
[PATCH 4/6] mm/hmm: add output flag for compound page mapping
...apping > size the same as the underlying compound page size. > Add a new output flag to indicate this so that callers know it is safe to > use a large device page table mapping if one is available. Why do you need the flag? The caller should be able to just use page_size() (or willys new thp_size helper).
2020 May 26
1
[PATCH 4/6] mm/hmm: add output flag for compound page mapping
...g compound page size. >>> Add a new output flag to indicate this so that callers know it is safe to >>> use a large device page table mapping if one is available. >> >> Why do you need the flag? The caller should be able to just use >> page_size() (or willys new thp_size helper). >> > > The question is whether or not a large page can be mapped with smaller > page table entries with different permissions. If one process has a 2MB > page mapped with 4K PTEs with different read/write permissions, I don't think > it would be OK for a device to...
2020 May 08
0
[PATCH 4/6] mm/hmm: add output flag for compound page mapping
...me as the underlying compound page size. >> Add a new output flag to indicate this so that callers know it is safe to >> use a large device page table mapping if one is available. > > Why do you need the flag? The caller should be able to just use > page_size() (or willys new thp_size helper). > The question is whether or not a large page can be mapped with smaller page table entries with different permissions. If one process has a 2MB page mapped with 4K PTEs with different read/write permissions, I don't think it would be OK for a device to map the whole 2MB with writ...
2020 May 26
0
[PATCH 4/6] mm/hmm: add output flag for compound page mapping
.... >>>> Add a new output flag to indicate this so that callers know it is safe to >>>> use a large device page table mapping if one is available. >>> >>> Why do you need the flag? The caller should be able to just use >>> page_size() (or willys new thp_size helper). >>> >> >> The question is whether or not a large page can be mapped with smaller >> page table entries with different permissions. If one process has a 2MB >> page mapped with 4K PTEs with different read/write permissions, I don't think >> it woul...
2020 May 08
11
[PATCH 0/6] nouveau/hmm: add support for mapping large pages
hmm_range_fault() returns an array of page frame numbers and flags for how the pages are mapped in the requested process' page tables. The PFN can be used to get the struct page with hmm_pfn_to_page() and the page size order can be determined with compound_order(page) but if the page is larger than order 0 (PAGE_SIZE), there is no indication that the page is mapped using a larger page size. To