linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/9] mm: PG_reserved cleanups and documentation
@ 2018-12-14 11:10 David Hildenbrand
  2018-12-14 11:10 ` [PATCH v1 1/9] agp: efficeon: no need to set PG_reserved on GATT tables David Hildenbrand
                   ` (8 more replies)
  0 siblings, 9 replies; 14+ messages in thread
From: David Hildenbrand @ 2018-12-14 11:10 UTC (permalink / raw)
  To: linux-mm
  Cc: linux-kernel, linux-arm-kernel, linux-m68k, linuxppc-dev,
	linux-riscv, linux-s390, linux-mediatek, David Hildenbrand,
	AKASHI Takahiro, Albert Ou, Alexander Duyck, Andrew Morton,
	Anthony Yznaga, Arnd Bergmann, Benjamin Herrenschmidt,
	Bhupesh Sharma, Catalin Marinas, CHANDAN VN, Christophe Leroy,
	Dan Williams, Dave Kleikamp, David Airlie, David Howells,
	Fenghua Yu, Florian Fainelli, Geert Uytterhoeven, Greg Hackmann,
	Greg Kroah-Hartman, Heiko Carstens, James Morse, Johannes Weiner,
	Kees Cook, Kristina Martsenko, Laura Abbott, Logan Gunthorpe,
	Marc Zyngier, Mark Rutland, Martin Schwidefsky, Matthew Wilcox,
	Michael Ellerman, Michal Hocko, Michal Hocko, Mike Rapoport,
	Miles Chen, Oleg Nesterov, Palmer Dabbelt, Paul Mackerras,
	Pavel Tatashin, Souptick Joarder, Stefan Agner, Stephen Rothwell,
	Tobias Klauser, Tony Luck, Vasily Gorbik, Will Deacon

I was recently going over all users of PG_reserved. Short story: it is
difficult and sometimes not really clear if setting/checking for
PG_reserved is only a relict from the past. Easy to break things. I
guess I know have a pretty good idea wh things are like that
nowadays and how they evolved.

I had way more cleanups in this series inititally,
but some architectures take PG_reserved as a way to apply a different
caching strategy (for MMIO pages). So I decided to only include the most
obvious changes (that are less likely to break something). So the big
chunk of manual SetPageReserved users are MMIO/DMA related things on
device buffers.

Most notably, for device memory we will hopefully soon stop setting
PG_reserved. The the documentation has to be updated.

RFC -> V1:
- Add more details to "mm: better document PG_reserved"
- Add "arm64: kdump: No need to mark crashkernel pages manually
       PG_reserved"
- Add "ia64: perfmon: Don't mark buffer pages as PG_reserved"
- Added ACKs

David Hildenbrand (9):
  agp: efficeon: no need to set PG_reserved on GATT tables
  s390/vdso: don't clear PG_reserved
  powerpc/vdso: don't clear PG_reserved
  riscv/vdso: don't clear PG_reserved
  m68k/mm: use __ClearPageReserved()
  arm64: kexec: no need to ClearPageReserved()
  arm64: kdump: No need to mark crashkernel pages manually PG_reserved
  ia64: perfmon: Don't mark buffer pages as PG_reserved
  mm: better document PG_reserved

 arch/arm64/kernel/machine_kexec.c |  3 +-
 arch/arm64/mm/init.c              | 27 --------------
 arch/ia64/kernel/perfmon.c        | 59 +++----------------------------
 arch/m68k/mm/memory.c             |  2 +-
 arch/powerpc/kernel/vdso.c        |  2 --
 arch/riscv/kernel/vdso.c          |  1 -
 arch/s390/kernel/vdso.c           |  2 --
 drivers/char/agp/efficeon-agp.c   |  2 --
 include/linux/page-flags.h        | 33 +++++++++++++++--
 9 files changed, 37 insertions(+), 94 deletions(-)

-- 
2.17.2

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

end of thread, other threads:[~2018-12-17 11:38 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-14 11:10 [PATCH v1 0/9] mm: PG_reserved cleanups and documentation David Hildenbrand
2018-12-14 11:10 ` [PATCH v1 1/9] agp: efficeon: no need to set PG_reserved on GATT tables David Hildenbrand
2018-12-14 11:10 ` [PATCH v1 2/9] s390/vdso: don't clear PG_reserved David Hildenbrand
2018-12-14 11:10 ` [PATCH v1 3/9] powerpc/vdso: " David Hildenbrand
2018-12-17 11:38   ` Michael Ellerman
2018-12-14 11:10 ` [PATCH v1 4/9] riscv/vdso: " David Hildenbrand
2018-12-14 11:10 ` [PATCH v1 5/9] m68k/mm: use __ClearPageReserved() David Hildenbrand
2018-12-14 11:10 ` [PATCH v1 6/9] arm64: kexec: no need to ClearPageReserved() David Hildenbrand
2018-12-16 10:44   ` Matthias Brugger
2018-12-14 11:10 ` [PATCH v1 7/9] arm64: kdump: No need to mark crashkernel pages manually PG_reserved David Hildenbrand
2018-12-14 11:10 ` [PATCH v1 8/9] ia64: perfmon: Don't mark buffer pages as PG_reserved David Hildenbrand
2018-12-14 11:10 ` [PATCH v1 9/9] mm: better document PG_reserved David Hildenbrand
2018-12-15  0:12   ` Randy Dunlap
2018-12-17  9:34     ` David Hildenbrand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox