From patchwork Wed Dec 5 12:28:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Hildenbrand X-Patchwork-Id: 10713995 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 D5A0E14E2 for ; Wed, 5 Dec 2018 12:29:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C45902CAFA for ; Wed, 5 Dec 2018 12:29:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B6B962CC55; Wed, 5 Dec 2018 12:29:16 +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=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 56A1A2CC62 for ; Wed, 5 Dec 2018 12:29:16 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 509A36B744D; Wed, 5 Dec 2018 07:29:15 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 4DF976B744E; Wed, 5 Dec 2018 07:29:15 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3F6156B744F; Wed, 5 Dec 2018 07:29:15 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by kanga.kvack.org (Postfix) with ESMTP id 153296B744D for ; Wed, 5 Dec 2018 07:29:15 -0500 (EST) Received: by mail-qt1-f198.google.com with SMTP id j5so20273707qtk.11 for ; Wed, 05 Dec 2018 04:29:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id; bh=TFCLrQPqar/WBE3kzl+4nQu/J+Z7iryHnfv4ouWoEUA=; b=crwwwbBr2ejXtZMdbP8X0EGmnDzrpFgm2M7W4KLrQuJE+6BpxxBX5KMJl58waxOr7G AJo+1cIQl1ixNhFGSvPQXqgEMoJI+0B1pLYQ4l4IVk+OoeYUEfinGBKUMKv3sxBvGlaC bOliKfMcKLWScdLJHNNd5X4xCzDNDH5Z5BbfeHP8ZAn78JdXP/xpKsyINOICi4uAbeQt /BPO+8A023elGPcJL6RipvKVXVVVBFsL4wKGLDwW6J6I81tFDAq9Tdaopcak6cFLStpI GR4ZQhZi4nMvmR5FMxOzi6gGBc+I/6UOu7StNvEPCalMnATNErJpSYrCWku6G3J8QiSJ 7oVA== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of david@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Gm-Message-State: AA+aEWZ0vpv9EdMoi7ARF1WfHlseNE2cL9HKY8TVMnKxwqGK5FJhfeK0 cojBX2Xoo351tNFanbAZlebkMv8weUf2NO6WXTNBuANj7Nlcu7r4aKZ1InwSr7SKoN5XsMlqKWh e+rYSmKAvj8cv1S7Qth+dPJpwnteorDIJFA8hIXbNWfceqZLzufmXzRBS2Xo/GtmTMw== X-Received: by 2002:a37:a141:: with SMTP id k62mr21909910qke.280.1544012954784; Wed, 05 Dec 2018 04:29:14 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vwh3lk9Jg31+vtVYQNCeqpDDnOlTJUK2GnQmgFi9oPbZoP3e6Tg3NkvKI2mzcvY8VA1n35 X-Received: by 2002:a37:a141:: with SMTP id k62mr21909883qke.280.1544012954164; Wed, 05 Dec 2018 04:29:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544012954; cv=none; d=google.com; s=arc-20160816; b=XmxXqbgdp4uB5KCjS+U1haLpnEI5Hdr7QaENVfPPvmQVB+tOJ7O5es+4Z+YxhkLRdc axXuj3azIOI3BPwafqhyOnX+B2+nBD5chEo65dxS/0WCGBkvFqCGMKWmiA6yZc+ef+te gjKuABG46/mozbjOo3k5FudfPERuoRfxHCu8KMQ6eey26ciqo2/BF2quPUO8W2C5XEyg VhhZYw2HAIbLbrz5MlTLIMCxyv1X4AmZiYGeqlCke0TXc87x+GoxwAGc6pgqT3B7e8m/ +ND6HC5Tlkxuc+yBMKWDKjKei/HXxd2gKhAsSBhokHZWlOBk1nHAArfJgIL27FuX1pRd FMgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from; bh=TFCLrQPqar/WBE3kzl+4nQu/J+Z7iryHnfv4ouWoEUA=; b=tpkXxL+5DIdX29mx/HCbM2ovhVEHiwCxTMixYdlEcivsDX+co6ggm+qA73LVcOSEhz SEHpus4n9L18XqsNj7Nc6NCXXHE3NICtFQYFEh0ueWpzLd63pn1kbBFBz/5b267nlGmh HMiG0epBqWoD8lmhNjZ7JpGZPfppBNM96MiPd3nBKjIuA6MeoCiWCMZ94Yht1jYjwIcE RLI8Qbvc9JrX+mMNHfZcUgzzVOGB/qb6rC+0uyAVHeZlCq7d0s4CJuhCt5Zn7eMbIW+K BDYSZt6zCKbAfQwAcHx8FpLopMTwRSc+o6G7UGNNWJdwTKjjcier5uOY8NYdftHeJooX 61AQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of david@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from mx1.redhat.com (mx1.redhat.com. [209.132.183.28]) by mx.google.com with ESMTPS id o14si4989795qtb.200.2018.12.05.04.29.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Dec 2018 04:29:14 -0800 (PST) Received-SPF: pass (google.com: domain of david@redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; Authentication-Results: mx.google.com; spf=pass (google.com: domain of david@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 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 , Albert Ou , Alexander Duyck , Andrew Morton , Anthony Yznaga , Arnd Bergmann , Benjamin Herrenschmidt , Bhupesh Sharma , Catalin Marinas , Christophe Leroy , Dan Williams , Dave Kleikamp , David Airlie , Geert Uytterhoeven , Greg Kroah-Hartman , Heiko Carstens , James Morse , Kees Cook , Marc Zyngier , Mark Rutland , Martin Schwidefsky , Matthew Wilcox , Michael Ellerman , Michal Hocko , Michal Hocko , Mike Rapoport , Miles Chen , Palmer Dabbelt , Paul Mackerras , Pavel Tatashin , Souptick Joarder , Stephen Rothwell , Tobias Klauser , Vasily Gorbik , Will Deacon 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-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP 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(-)