|
@@ -133,6 +133,7 @@ int __meminit arch_add_memory(int nid, u64 start, u64 size, struct vmem_altmap *
|
|
|
start, start + size, rc);
|
|
|
return -EFAULT;
|
|
|
}
|
|
|
+ flush_inval_dcache_range(start, start + size);
|
|
|
|
|
|
return __add_pages(nid, start_pfn, nr_pages, altmap, want_memblock);
|
|
|
}
|
|
@@ -159,6 +160,7 @@ int __meminit arch_remove_memory(u64 start, u64 size, struct vmem_altmap *altmap
|
|
|
|
|
|
/* Remove htab bolted mappings for this section of memory */
|
|
|
start = (unsigned long)__va(start);
|
|
|
+ flush_inval_dcache_range(start, start + size);
|
|
|
ret = remove_section_mapping(start, start + size);
|
|
|
|
|
|
/* Ensure all vmalloc mappings are flushed in case they also
|