> > > + if (set_memory_np(decoy_addr, 1)) > > > + pr_warn("Could not invalidate pfn=0x%lx from 1:1 map \n", Another concept to consider is mapping the page as UC rather than completely unmapping it. The uncorrectable error scope could be smaller than a page size, like: * memory ECC width (e.g., 8 bytes) * cache line size (e.g., 64 bytes) * block device logical block size (e.g., 512 bytes, for persistent memory) UC preserves the ability to access adjacent data within the page that hasn't gone bad, and is particularly useful for persistent memory. --- Robert Elliott, HPE Persistent Memory -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href