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: 10762317 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 CC13F14E5 for ; Mon, 14 Jan 2019 12:59:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC39E28837 for ; Mon, 14 Jan 2019 12:59:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 99DA628880; Mon, 14 Jan 2019 12:59:30 +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 23B0928837 for ; Mon, 14 Jan 2019 12:59:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9FCCE8E0003; Mon, 14 Jan 2019 07:59:28 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 9ACFC8E0002; Mon, 14 Jan 2019 07:59:28 -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 84F3A8E0003; Mon, 14 Jan 2019 07:59:28 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org 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) 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=MA8qSNfjcqKHaWFwXSTueRQlxX93U2CUrc2ubezAx0Y=; b=oO6KgyPEK0dZTKaCSh1aliJzebrRl33pMe0RW8UwISfykUNGlo06bheFaCeZgumSFB Z4vM2fRFcitBJYCjrJnA4V8AUjNXvfsTnZJLNTpjaHExFTUebjNiOgXjbT+Oe3o/zGmr wXXGLlnWZ6zDyTmu2TnkMs8BP3He6H0VdtjRwN4MKOQQUTiL/XRrS+PhIQNbxnFxzKKw XsDqwl+nBz5U7veMqZozzTVUDbfWSBg9T0TsDowTZRzwtE2U9WXEe6Et2Vu+3VfFkisk w4Awl/DN0/LUXgPAWDkt20l1VzkUs7pAt8ITFCKNRhj6dWE18F0fQ5fSZnQ02Nj0vhHJ jRRQ== 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: AJcUukcuq5bsZfjz7qcLCd6RUuFPuG4YV8GCXUYolQai6sqIHOXi7Q1m 17hoZFCd8oFstyo3OL45Lzqripgl8TEUUVLVIIQeweLQp0yjlfTHxpDuOWpsNiwQLBe/odR9AuD BW48Ohp5DLUWK2ZOPXo/p2GLHY1qDNNO9eSnZBQcxxfaSSyXg72PhfgWO2wSbv6acXQ== X-Received: by 2002:ac8:2b99:: with SMTP id m25mr23552702qtm.36.1547470768080; Mon, 14 Jan 2019 04:59:28 -0800 (PST) X-Google-Smtp-Source: ALg8bN4mdYXJe2rbjoI6Kr5jAY6YzQT8OJVtqxkl4r9P/+PnL+v2T9RVG3EReydz1+t7BiyQy9sI X-Received: by 2002:ac8:2b99:: with SMTP id m25mr23552668qtm.36.1547470767426; Mon, 14 Jan 2019 04:59:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547470767; cv=none; d=google.com; s=arc-20160816; b=QheuOsOXf7iq2T1wn02QH4xHF9f79j/i6HWZ1el9Lyxk+a3kU1Ek4xbwXHXLrJL2TZ s5VQY7EGyeKtC0/qsQxPhaddTbenmlOOwPzF66nIrsM8Ty2YVhRlovrzbutyAdcEUQrK zdSswXJg+n1fSh4OGwwtV8rG5RNlpxN4vtyfHcyXgpytcEeTYXhtNwoklY+0CnlxaaH7 rh4OL33mMUFELA5mulEIn3c6+20bvkDiEk2K4Gjx503RezcXnDIcoS2DsKzaKmD79sdN dfe7HdhYf/Y1Eqim2P5HwJSI9Rr7VP4OWoMJ6lC5sl1fo6Dn+nHzgLc0pFt2YmmLK5nS GwUw== 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=MA8qSNfjcqKHaWFwXSTueRQlxX93U2CUrc2ubezAx0Y=; b=jMtUiB/qzNnLrZ7jgnvEL6uWi9vazNbMq0iWiOeCJ7tRy2ijHkpYBvooXeAIgIaru/ cHjikhHB7lCuHB+/qcet8ic9XeXMJps+BpbFo0gG4SspE7oci/OeotJ00VrC+PaHfgO0 ioyBfVanIkXIbyHl1ylS0vujeiLzADX/GxocSnO3aD/u2gfXbbu34ZzcXmHLcreZgP+d PYVRMeidgUJIWAQreODj53/Eq4Yc2ilSr0oE5ikQqWGzrb4JcLaYkYhuIT/uOxlDr0bB +Ot2/37VHXCWcpOd6sH7STKV6CRnRw+rViGgdtVtazX/MRNHBXr/Bd4Sda3fZMaVyLhJ 4s4g== 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 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) 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-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 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 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-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 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(-)