From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 84868C04EB9 for ; Wed, 5 Dec 2018 12:29:39 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 55BA02084C for ; Wed, 5 Dec 2018 12:29:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="uOW+C8kD" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 55BA02084C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-riscv-bounces+infradead-linux-riscv=archiver.kernel.org@lists.infradead.org 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=PPKy3iOfFzv1bGN+X64ecuhBcBYRU1ALdZrpSDYx9rE=; b=uOW +C8kDav5GtYclA0E1eEwFoJPHkt9bBBKoset7w88JStPaHHp4a91z3y/lvDdC+eA/6CHzdXadYSe/ OEappfe2exScjFbWCX+hkg9b2GwNniamTGSn9R98rLQUukMO0HdMHpEM1Lfqp6E1AV+lkuzKK19Dr UHAyAztz1dcrcQaSyaCifzq6Edq1etUhAY6WoFjIcPf/oDpatV/XhrE60QfRJrtPlx7e5OKQnrmi4 u+PvfelVGsDVLQjp6UrKnrrjQG5UiWL58ZRv1NlBHge5rCl/9u3x/UCJ3d44iebnDdzltFxnLNMa+ OHPety83FlhF1qVE2vFbe/4VM6tcF5Q==; 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 1gUWJ7-0000iz-MZ; Wed, 05 Dec 2018 12:29:37 +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 1gUWIu-0000KV-Qp; Wed, 05 Dec 2018 12:29:26 +0000 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6A6FB307D975; Wed, 5 Dec 2018 12:29:11 +0000 (UTC) Received: from t460s.redhat.com (ovpn-117-65.ams2.redhat.com [10.36.117.65]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6BC0A82719; Wed, 5 Dec 2018 12:28:52 +0000 (UTC) From: David Hildenbrand To: linux-mm@kvack.org Subject: [PATCH RFC 0/7] mm: PG_reserved cleanups and documentation Date: Wed, 5 Dec 2018 13:28:44 +0100 Message-Id: <20181205122851.5891-1-david@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Wed, 05 Dec 2018 12:29:13 +0000 (UTC) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181205_042924_892007_6F7B366C X-CRM114-Status: GOOD ( 12.63 ) X-BeenThere: linux-riscv@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 , David Hildenbrand , David Airlie , Benjamin Herrenschmidt , Bhupesh Sharma , Palmer Dabbelt , Heiko Carstens , Michal Hocko , Paul Mackerras , linux-riscv@lists.infradead.org, Alexander Duyck , linux-s390@vger.kernel.org, Vasily Gorbik , Michael Ellerman , Pavel Tatashin , Matthew Wilcox , Geert Uytterhoeven , Catalin Marinas , Anthony Yznaga , Tobias Klauser , Albert Ou , Kees Cook , Arnd Bergmann , Stephen Rothwell , Marc Zyngier , Will Deacon , linux-m68k@lists.linux-m68k.org, Dave Kleikamp , linux-mediatek@lists.infradead.org, Dan Williams , linux-arm-kernel@lists.infradead.org, Christophe Leroy , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Miles Chen , Mike Rapoport , James Morse , Souptick Joarder , Martin Schwidefsky , Andrew Morton , linuxppc-dev@lists.ozlabs.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+infradead-linux-riscv=archiver.kernel.org@lists.infradead.org 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 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 let's see if the documentation update for PG_reserved I crafted actually covers most cases or if there is plenty more. Most notably, for device memory we can hopefully soon stop setting it PG_reserved I only briefly tested this on s390x. David Hildenbrand (7): 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() mm: better document PG_reserved arch/arm64/kernel/machine_kexec.c | 1 - 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 | 18 ++++++++++++++++-- 7 files changed, 17 insertions(+), 11 deletions(-) -- 2.17.2 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv