From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by kanga.kvack.org (Postfix) with ESMTP id 5574E8E0002 for ; Mon, 14 Jan 2019 07:59:28 -0500 (EST) Received: by mail-qk1-f199.google.com with SMTP id s14so16473322qkl.16 for ; Mon, 14 Jan 2019 04:59:28 -0800 (PST) Received: from mx1.redhat.com (mx1.redhat.com. [209.132.183.28]) by mx.google.com with ESMTPS id z37si951237qve.158.2019.01.14.04.59.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Jan 2019 04:59:27 -0800 (PST) From: David Hildenbrand Subject: [PATCH v2 0/9] mm: PG_reserved cleanups and documentation Date: Mon, 14 Jan 2019 13:58:54 +0100 Message-Id: <20190114125903.24845-1-david@redhat.com> Sender: owner-linux-mm@kvack.org List-ID: To: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-m68k@lists.linux-m68k.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-mediatek@lists.infradead.org, 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 , Matthias Brugger , Michael Ellerman , Michal Hocko , Michal Hocko , Mike Rapoport , Miles Chen , Oleg Nesterov , Palmer Dabbelt , Paul Mackerras , Pavel Tatashin , Randy Dunlap , Souptick Joarder , Stefan Agner , Stephen Rothwell , Tobias Klauser , Tony Luck , Vasily Gorbik , Will Deacon Nothing major changed since the last version. I would be happy about additional ACKs. If there are no further comments, can this go via the mm-tree in one chunk? 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 now 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. Then the documentation has to be updated. v1 -> v2: - Minor speeling errors in "mm: better document PG_reserved" fixed - Added ACKs 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