Re: [Nouveau] [PATCH 3/5] mm/notifier: add migration invalidation type

2020-07-10 Thread Ralph Campbell
On 7/10/20 12:39 PM, Jason Gunthorpe wrote: On Mon, Jul 06, 2020 at 03:23:45PM -0700, Ralph Campbell wrote: Currently migrate_vma_setup() calls mmu_notifier_invalidate_range_start() which flushes all device private page mappings whether or not a page is being migrated to/from device private

Re: [Nouveau] [PATCH v3 0/5] mm/hmm/nouveau: add PMD system memory mapping

2020-07-10 Thread Ralph Campbell
On 7/10/20 12:27 PM, Jason Gunthorpe wrote: On Wed, Jul 01, 2020 at 03:53:47PM -0700, Ralph Campbell wrote: The goal for this series is to introduce the hmm_pfn_to_map_order() function. This allows a device driver to know that a given 4K PFN is actually mapped by the CPU using a larger sized