Message ID | 20190114125903.24845-2-david@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 F27B614E5 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 14 Jan 2019 12:59:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E3A7928837 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 14 Jan 2019 12:59:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D798128880; 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=-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 6008828837 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 14 Jan 2019 12:59:33 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 433848E0004; Mon, 14 Jan 2019 07:59:32 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 3BC428E0002; Mon, 14 Jan 2019 07:59:32 -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 25D138E0004; Mon, 14 Jan 2019 07:59:32 -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 ED7898E0002 for <linux-mm@kvack.org>; Mon, 14 Jan 2019 07:59:31 -0500 (EST) Received: by mail-qk1-f199.google.com with SMTP id c71so16265066qke.18 for <linux-mm@kvack.org>; Mon, 14 Jan 2019 04:59:31 -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:in-reply-to:references; bh=5f1RX8PgtIxd6340o2+u9UfUNpwJ2JR8T6eBwDHn5iE=; b=WmaYtzLYLAqhrV2Eea2707z6W7/PWvo2v8NxafnAZF3doOV32UgJue/amP8rfeq/I4 Mf0rWse6vUKxpf0uLkfmZXqmXHGZpGg7RJeEnPhyeHC8PdOMxULGqjUeDg98821zDIe8 bGKZG6Fc1nrfKfpIrYu/6aom9ndnIRsMwEUldR1mOTiE3xVZuRlaeBrChUFvDRKUwYxc F8ShusotnYVzRFGCfqzNY3GFrm7JfKJLxt4hjSy44g/xi8YMOQMR20kJuQcn01waCDWk qGrC9gwQSOJ3YM3tK83AaGqjXfd/bVFMJKnKRhWgNNdqHEsEpdeLUetaIHYLUMMBvimr rRNQ== 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: AJcUukck2D49Jwak7y2uKWx/Uzi/R36NV6LENKNhcetcNZWXnAzlMNg4 XcrRa3Oet90ebE8X76TgVza6JgZW3K2HWTc31WlfrfqcQVJGYtEpd/PEhIlhS/yxKQB6U2KjvA1 qfPjZhzAf/VaxgsNxVIc33BU144OdnAK1tkcIUfmMumGHxuZ2MXEGaOa1vFAIuDvFdA== X-Received: by 2002:a37:7206:: with SMTP id n6mr21999747qkc.64.1547470771743; Mon, 14 Jan 2019 04:59:31 -0800 (PST) X-Google-Smtp-Source: ALg8bN5F3nVOJ6LUuii3lNoOYSQcMqa99cW+pNk72TNnq7BCedAk7dHiyuYIEia7Ze3Vs0elNY8r X-Received: by 2002:a37:7206:: with SMTP id n6mr21999724qkc.64.1547470771228; Mon, 14 Jan 2019 04:59:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547470771; cv=none; d=google.com; s=arc-20160816; b=fd/iUtbJ/+qO/AsaEPMYrP1V029Ra7T0JTdYuhPslJjQ25Nb8kwYCGLXSKnVrMWnwJ cQiY4P9fvf6J0Ym9lPiDwCY+cSRybu4qDCF6Q8/FnIc/GQQ99+PAFqEU0iNRoeaWPH46 CKZyMlpWyJDpQGSD1lUL9rHKmjDSVXBGTVcIexVfzvRQhemmF88rd7e2TMWsVWHlaZ1o Bn/mdhKD4SxsU4+/pfBrnYnMeAeBHj77mRMVDXSibrYhDNGT7xAXj3qijyFhbxV/1oS8 MgHDAISbRWa3NYU3qfffwTGsytxSOO/V6UICVI8oHhr2+ry+/in3G27V7/womnO/MTjE fWXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from; bh=5f1RX8PgtIxd6340o2+u9UfUNpwJ2JR8T6eBwDHn5iE=; b=bXi/4kSWCK350kFiWK0MIGfSPO6xWunwDt6UB9at61TYw5efafkw1jfzWJH2PTjgXq lzPAkgNRGiGHRza52KvJQDp7J1fisEoSVwaVv+KoJ6Vj6JYwlHke6ILP1aURxZ1l7k3d ktVfIdpQCYY32AVxbPr7TghhdBWN38J2I2vWmrHeLPJdm1dywhfBZZHlwG93nhlXCRcv a6amyb8+YrOaXNStQTcaVkdjmI8yviS52ieirisTajpZV5uec46c4YTaa/uPCvUA4gcV lNpAxLzU4H1CPmLrqRRoPAROoLx9ZcK3kqvAew3p47JD5WTzxzuGiC4JFq14yA6BQ936 4ywg== 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 41si16635064qvy.216.2019.01.14.04.59.31 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Jan 2019 04:59:31 -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 49D2289AC1; Mon, 14 Jan 2019 12:59:30 +0000 (UTC) Received: from t460s.redhat.com (unknown [10.36.118.91]) by smtp.corp.redhat.com (Postfix) with ESMTP id D587E5D76A; Mon, 14 Jan 2019 12:59:23 +0000 (UTC) From: David Hildenbrand <david@redhat.com> 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 <david@redhat.com>, David Airlie <airlied@linux.ie>, Arnd Bergmann <arnd@arndb.de>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Andrew Morton <akpm@linux-foundation.org>, Michal Hocko <mhocko@kernel.org>, Matthew Wilcox <willy@infradead.org> Subject: [PATCH v2 1/9] agp: efficeon: no need to set PG_reserved on GATT tables Date: Mon, 14 Jan 2019 13:58:55 +0100 Message-Id: <20190114125903.24845-2-david@redhat.com> In-Reply-To: <20190114125903.24845-1-david@redhat.com> References: <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.26]); Mon, 14 Jan 2019 12:59:30 +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: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
mm: PG_reserved cleanups and documentation
|
expand
|
diff --git a/drivers/char/agp/efficeon-agp.c b/drivers/char/agp/efficeon-agp.c index 7f88490b5479..c53f0f9ef5b0 100644 --- a/drivers/char/agp/efficeon-agp.c +++ b/drivers/char/agp/efficeon-agp.c @@ -163,7 +163,6 @@ static int efficeon_free_gatt_table(struct agp_bridge_data *bridge) unsigned long page = efficeon_private.l1_table[index]; if (page) { efficeon_private.l1_table[index] = 0; - ClearPageReserved(virt_to_page((char *)page)); free_page(page); freed++; } @@ -219,7 +218,6 @@ static int efficeon_create_gatt_table(struct agp_bridge_data *bridge) efficeon_free_gatt_table(agp_bridge); return -ENOMEM; } - SetPageReserved(virt_to_page((char *)page)); for (offset = 0; offset < PAGE_SIZE; offset += clflush_chunk) clflush((char *)page+offset);
The l1 GATT page table is kept in a special on-chip page with 64 entries. We allocate the l2 page table pages via get_zeroed_page() and enter them into the table. These l2 pages are modified accordingly when inserting/removing memory via efficeon_insert_memory and efficeon_remove_memory. Apart from that, these pages are not exposed or ioremap'ed. We can stop setting them reserved (propably copied from generic code). Cc: David Airlie <airlied@linux.ie> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Michal Hocko <mhocko@kernel.org> Cc: Matthew Wilcox <willy@infradead.org> Signed-off-by: David Hildenbrand <david@redhat.com> --- drivers/char/agp/efficeon-agp.c | 2 -- 1 file changed, 2 deletions(-)