All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] fix cache mode tracking for pmem + dax
@ 2016-09-07 22:26 ` Dan Williams
  0 siblings, 0 replies; 16+ messages in thread
From: Dan Williams @ 2016-09-07 22:26 UTC (permalink / raw)
  To: linux-nvdimm
  Cc: Matthew Wilcox, David Airlie, Nilesh Choudhury, linux-kernel,
	stable, linux-mm, dri-devel, akpm, Kirill A. Shutemov, Kai Zhang

While writing an improved changelog, as prompted by Andrew, for v1 of
"mm: fix cache mode of dax pmd mappings" [1], it struck me that
vmf_insert_pfn_pmd() is implemented correctly.  Instead, it is the
memtype tree that is missing a memtype reservation for
devm_memremap_pages() ranges.

vmf_insert_pfn_pmd() is correct to validate the memtype before inserting
a mapping, but this highlights that vm_insert_mixed() is missing this
validation.

I would still like to take patch 1 through the nvdimm.git tree, with -mm
acks, along with the device-dax fixes for v4.8-rc6.  Patch 2 can go the
typical -mm route for v4.9 since it has potential to change behavior in
its DRI usages, needs soak time in -next, and there no known memtype
conflict problems it would fix.

[1]: https://lists.01.org/pipermail/linux-nvdimm/2016-September/006781.html

---

Dan Williams (2):
      mm: fix cache mode of dax pmd mappings
      mm: fix cache mode tracking in vm_insert_mixed()


 arch/x86/mm/pat.c |   17 ++++++++++-------
 kernel/memremap.c |    9 +++++++++
 mm/memory.c       |    8 ++++++--
 3 files changed, 25 insertions(+), 9 deletions(-)
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2016-09-08 22:49 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-07 22:26 [PATCH v2 0/2] fix cache mode tracking for pmem + dax Dan Williams
2016-09-07 22:26 ` Dan Williams
2016-09-07 22:26 ` Dan Williams
2016-09-07 22:26 ` Dan Williams
2016-09-07 22:26 ` Dan Williams
2016-09-07 22:26 ` [PATCH v2 1/2] mm: fix cache mode of dax pmd mappings Dan Williams
2016-09-07 22:26   ` Dan Williams
2016-09-07 22:26   ` Dan Williams
2016-09-07 22:26   ` Dan Williams
2016-09-07 22:26   ` Dan Williams
2016-09-08 22:49   ` Andrew Morton
2016-09-08 22:49     ` Andrew Morton
2016-09-07 22:26 ` [PATCH v2 2/2] mm: fix cache mode tracking in vm_insert_mixed() Dan Williams
2016-09-07 22:26   ` Dan Williams
2016-09-07 22:26   ` Dan Williams
2016-09-07 22:26   ` Dan Williams

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.