On 2026-07-09 12:04:33 [+0200], David Hildenbrand (Arm) wrote: > On 7/7/26 14:59, Wandun Chen wrote: > > From: Wandun Chen <[email protected]> > > > > The region covered by mlock[all] may contain CMA pages. cma_alloc installs > > What about ZONE_MOVABLE where memory is supposed to be migratable?
Would it be bad if the pages would not be movable anymore? Does this effect just memory-hotplug or something else, too? > Also, what about drivers that mmap() CMA memory to user space, and > __mm_populate()->populate_vma_page_range() would actually try mlocking them, > and > they actually must remain on CMA areas? It should be safe to skip those. They belong to device and they shouldn't be affected by anything including getting swapped out. Sebastian
