From patchwork Mon Jan 14 12:58:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Hildenbrand X-Patchwork-Id: 10762321 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 07A4C1390 for ; Mon, 14 Jan 2019 12:59:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EC40B2887B for ; Mon, 14 Jan 2019 12:59:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DE32A28875; Mon, 14 Jan 2019 12:59:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 896012883C for ; Mon, 14 Jan 2019 12:59:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=MljbBNtwsFRJ204dnpbKu68Zz/wt2O0h5++8p86Odgk=; b=SAT B14e8E6yfek8xJAAFisBNi+EcLi9ZDLvp3A00vyUqd5ushM2QimXeY3lBjjGuoz8wyvifct5zlnxv ia/WSk6g9wS8E30N0R90R7LCQ+iHmY85VMHFxWk6+4/igrXPC/N+A0L5Inp7OcLmYFoADV3bMXxGZ IwUKiPIkB0VzNRTI0kLloYGkDwjTJ1O7sd6LubNxx0kxGEMQInnCt3+P3AU4h3MvS3mq7K26952PF lX+2cQlLnOsWaAFFpc9CqpkGZ2RFEKyPThh6IS7NsfKh4/mdlOb0f54Tp2ZQIVoqJbyJ8vjOLJEvn r3zUOloGOWHec8wHWqyKVf3EpGLRopA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gj1q0-0005rJ-Rg; Mon, 14 Jan 2019 12:59:32 +0000 Received: from mx1.redhat.com ([209.132.183.28]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gj1px-0005q6-0t; Mon, 14 Jan 2019 12:59:30 +0000 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7237413AA1; Mon, 14 Jan 2019 12:59:23 +0000 (UTC) Received: from t460s.redhat.com (unknown [10.36.118.91]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7E2185D756; Mon, 14 Jan 2019 12:59:04 +0000 (UTC) From: David Hildenbrand To: linux-mm@kvack.org 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> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Mon, 14 Jan 2019 12:59:26 +0000 (UTC) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190114_045929_106635_5191E6B1 X-CRM114-Status: GOOD ( 14.34 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Michal Hocko , CHANDAN VN , David Hildenbrand , David Airlie , Benjamin Herrenschmidt , Bhupesh Sharma , Palmer Dabbelt , Heiko Carstens , Tony Luck , Stefan Agner , Michal Hocko , David Howells , Paul Mackerras , Michael Ellerman , linux-riscv@lists.infradead.org, Alexander Duyck , linux-s390@vger.kernel.org, Florian Fainelli , Vasily Gorbik , Logan Gunthorpe , Pavel Tatashin , Matthew Wilcox , AKASHI Takahiro , Geert Uytterhoeven , Catalin Marinas , Anthony Yznaga , Tobias Klauser , Laura Abbott , Fenghua Yu , Albert Ou , Kees Cook , Arnd Bergmann , Stephen Rothwell , Marc Zyngier , Will Deacon , Kristina Martsenko , linux-m68k@lists.linux-m68k.org, Dave Kleikamp , linux-mediatek@lists.infradead.org, Oleg Nesterov , Dan Williams , linux-arm-kernel@lists.infradead.org, Christophe Leroy , Matthias Brugger , Greg Kroah-Hartman , Randy Dunlap , linux-kernel@vger.kernel.org, Miles Chen , Mike Rapoport , James Morse , Souptick Joarder , Johannes Weiner , Martin Schwidefsky , Andrew Morton , linuxppc-dev@lists.ozlabs.org, Greg Hackmann MIME-Version: 1.0 Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-)