Message ID | 20181214111014.15672-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 0FD5C16B1 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 14 Dec 2018 11:10:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 00F9B2D3B7 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 14 Dec 2018 11:10:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E9B4A2D411; Fri, 14 Dec 2018 11:10:49 +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 7580B2D3B7 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 14 Dec 2018 11:10:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 39F128E01CB; Fri, 14 Dec 2018 06:10:48 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 2D4D98E01C5; Fri, 14 Dec 2018 06:10:48 -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 19E448E01CB; Fri, 14 Dec 2018 06:10:48 -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 D89398E01C5 for <linux-mm@kvack.org>; Fri, 14 Dec 2018 06:10:47 -0500 (EST) Received: by mail-qt1-f198.google.com with SMTP id n95so4576035qte.16 for <linux-mm@kvack.org>; Fri, 14 Dec 2018 03:10:47 -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=ZA9gIjJhwWlEH15WL7cmNvRJFWNUp847tunD9C/hw08d0uY+Y0VymjddLQLHQUm+WL X+3iNMT3q8Du5UsB9CJva4Mk8pZ/HhPerdGWzcjvGmO4mrGSu+JVp7YDyzzMPXb952cF ngB6N9HD/jVOSW9isKKOPbhrdFS5GvZl5WOnWVdRoiEB8pcV9ih9ywaMNSrpRK7tMGHu 4txTzRbha7YFxUjyOXGtWxVukh7KEleHLR7iTNDo5eBJekLq49D7NF+XCQonjJ+q7juH ujsUmCdrXTAgipjjoUBwQHj1i2ffKbhR51Kyd6a+/qmrkP+otke9aOyY6LGappFlDReZ 3scw== 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+aEWZuZkR7M9couFfL8s9lQPqjV5bQEhor/IHGnbT0hliJqsxvyEVv BThUG5oTP6w/ceK95xIZOe7h4PDVYqePOGetAgHgJxVEOcaYOWpEY5bUBEZQPzI/WvD6JzWeZTL l1wvtjakO+5YDTmiId1ppUg7qEZXdO4B1mvEMSPTfWHC9SD8jHF1v+pu0F40PM2gVDg== X-Received: by 2002:a37:848:: with SMTP id 69mr2041513qki.351.1544785847657; Fri, 14 Dec 2018 03:10:47 -0800 (PST) X-Google-Smtp-Source: AFSGD/WYBa8FhVFjAvGZPtAEESB3BIqbt119T+SAYa59gXjF7DFvV3a/r22DJNwmS8kJjCOmp8Fm X-Received: by 2002:a37:848:: with SMTP id 69mr2041489qki.351.1544785847177; Fri, 14 Dec 2018 03:10:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544785847; cv=none; d=google.com; s=arc-20160816; b=DKU1t8USIRcmeE5UHd1GRZ1QFckEApwwD3SP3jPGrBjfS/yu3km5pxdZjxvmZwupg3 Y35B/wzspHuwgPJr4edu0DBsK/M6D/ASK5yz6tyz/Nys9kiQdtdMFAxER+hJhTJVY2OI 9UwljWVNL6g+/yH2uPIm97JyHO/AgDnGEYd6ZcOz2KzgFzTzJmemxa1ci6gGUL7Xu2DP vT9+9c+atHBLbIAMI1U8+J5JSCgkFxyAXPAjfJ/6s1ftSAhjuQBVXUHFL6YCaD8uSmYd nrobR7pGd/CvKC5T5zjo25L3d7ozHKInIEvaGvJct6FTbLh8IX6fglj+u30EcOYzqct1 V3Ww== 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=bfLlxUSCvX5WNHFSr17OtkZJTnPyoLMdUH5siOFm0I6O7wnun3JmpoxbzurC0AqfjI Wcu50J1FKCx+tk4ULAvFRvhzU/0yGlQuoetyRzFRlDpcxpDd/7qU3Y9CwAPj0poGrunT aj0kFZwpGMKB11LchexYVEhORojsi9UMFFr4rfj61zzo2lCcaZdgl+2e+aT/x5Ilm9fT 2FdUb+cB7VM8OFjioq41m5BBMuvzxbD0SbWtxZBAfXfUiuCOahnvVY23zPdGzbSNTlqb /Lhv0GcNK6x/mvtNWO08eGf+ntAeWQB0NjqisQcQMJ740Iv1JEZkVC2IPlm20Rcm7jKU ivVQ== 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 o1si808121qvm.82.2018.12.14.03.10.47 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Dec 2018 03:10:47 -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-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3A3E2307C94C; Fri, 14 Dec 2018 11:10:46 +0000 (UTC) Received: from t460s.redhat.com (ovpn-117-139.ams2.redhat.com [10.36.117.139]) by smtp.corp.redhat.com (Postfix) with ESMTP id F3F276836F; Fri, 14 Dec 2018 11:10:40 +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 v1 1/9] agp: efficeon: no need to set PG_reserved on GATT tables Date: Fri, 14 Dec 2018 12:10:06 +0100 Message-Id: <20181214111014.15672-2-david@redhat.com> In-Reply-To: <20181214111014.15672-1-david@redhat.com> References: <20181214111014.15672-1-david@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Fri, 14 Dec 2018 11:10:46 +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(-)