|
@@ -139,11 +139,11 @@ static struct pmem_device *pmem_alloc(struct device *dev, struct resource *res)
|
|
}
|
|
}
|
|
|
|
|
|
/*
|
|
/*
|
|
- * Map the memory as non-cachable, as we can't write back the contents
|
|
|
|
|
|
+ * Map the memory as write-through, as we can't write back the contents
|
|
* of the CPU caches in case of a crash.
|
|
* of the CPU caches in case of a crash.
|
|
*/
|
|
*/
|
|
err = -ENOMEM;
|
|
err = -ENOMEM;
|
|
- pmem->virt_addr = ioremap_nocache(pmem->phys_addr, pmem->size);
|
|
|
|
|
|
+ pmem->virt_addr = ioremap_wt(pmem->phys_addr, pmem->size);
|
|
if (!pmem->virt_addr)
|
|
if (!pmem->virt_addr)
|
|
goto out_release_region;
|
|
goto out_release_region;
|
|
|
|
|