Message ID | 20180816171623.395508866@linuxfoundation.org (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 3BD36109C for <patchwork-linux-mm@patchwork.kernel.org>; Thu, 16 Aug 2018 18:46:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3B4D728C13 for <patchwork-linux-mm@patchwork.kernel.org>; Thu, 16 Aug 2018 18:46:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2F26D2A9A9; Thu, 16 Aug 2018 18:46:25 +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 AB69128C13 for <patchwork-linux-mm@patchwork.kernel.org>; Thu, 16 Aug 2018 18:46:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 34C446B0324; Thu, 16 Aug 2018 14:46:23 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 2FABC6B0325; Thu, 16 Aug 2018 14:46:23 -0400 (EDT) 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 1C4406B0326; Thu, 16 Aug 2018 14:46:23 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by kanga.kvack.org (Postfix) with ESMTP id CD51B6B0324 for <linux-mm@kvack.org>; Thu, 16 Aug 2018 14:46:22 -0400 (EDT) Received: by mail-pf1-f199.google.com with SMTP id d1-v6so2473430pfo.16 for <linux-mm@kvack.org>; Thu, 16 Aug 2018 11:46:22 -0700 (PDT) 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:user-agent :mime-version; bh=Rgbh5dS3egV+LTCYfQveLDViN2NfoVTI46rSu88olEM=; b=C7tbd6uq8ETDlcIdC6DEGoJo0ngRUmnJsnmVNxCw2R49jQMdQjtrf/Dmsj+z6wM0sr b76GlP+YFEDLD/R7lPh51JbxAH+MY/gRT+MMTynIBuwfoZ1zu5noOKASTbjEgDLOgnKM EJP38VcqWVjSk/Mvs10ogkOH14SBtiCOPJXkc3a8Jq61St8t7yj0/yhvQERLzPilWbQ7 nm6sVj9xG6VaI5s4I1YO7oCkhXylaNOxTH3TIvjUgDEdXr1+0SuBuHnMWhFAAXpBSfMJ SaUccV6iz/c41bqFkXKfdezVK/FkXSxxhsX6G00895yXAEbeJaf060B9NUu75/hUdtsy XY3g== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of gregkh@linuxfoundation.org designates 140.211.169.12 as permitted sender) smtp.mailfrom=gregkh@linuxfoundation.org X-Gm-Message-State: AOUpUlGCaQesSxNj6mFUMv8WKK7LBkO51sMYUlny0oWtzpfnaM3AwPkd xS/lqr/Hu/DjDI0R79w0HKM75tW9YS23cMTQjU0mRzsRY4sG7ND2t24IyZCvlbvTnXB+LcP2GY8 VeS3+1RZ4hpWQJH2EYDsKMLnw08wYZBNkgyKradetfP07c4Q8P0HqMEKQA/arUS4LaA== X-Received: by 2002:a63:fa49:: with SMTP id g9-v6mr29435983pgk.18.1534445182508; Thu, 16 Aug 2018 11:46:22 -0700 (PDT) X-Google-Smtp-Source: AA+uWPx5piTFHBrd92oFsbVBC9GFH6tR2FLAfV0D8wsQYchh0qRe9dAopFLo+KdchGHeRjag/NY5 X-Received: by 2002:a63:fa49:: with SMTP id g9-v6mr29435952pgk.18.1534445181945; Thu, 16 Aug 2018 11:46:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534445181; cv=none; d=google.com; s=arc-20160816; b=HwaSkSehLmQJKUP0OuqMPvAxpQ0M391N3fkgnbYNjNS4eKm2yaLOJvB7Qzn5zV4fuM z++iPGSXPGJMojGBnRoWmsnviP3TeG640qxS4QTZfRtJEsbDYdnoOrwx9Ptig5KA98cf fHcqguZZOsaGvh0ZTSCdxfkGKrjN+0QlPI+cHdR0MuLx5272QEhU7Z04QfHZDF94BmuB X0mvBdKn9wVT06Oxnybb6HIAfpWtHxQU8AZDTGlhxuvlVn9VyvF9yP/O4xK5+aqmFD+/ pSQO+SMF0RufgX+l9f38FgYP6nYdC8SgqwUyEfebYUtCs9epy4cxAD1IU29v45Pqdke9 f2Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=Rgbh5dS3egV+LTCYfQveLDViN2NfoVTI46rSu88olEM=; b=TjoOr6gl3i6bFF3W5vvrdKuKdMDxjDky2nyBDkNAHK9l7H1DCZ2tPDCSg4H3nGEWhn NxQmognGJdg3R2XWKsyg/JhLmfo3O8dpApzCgyztVBou6J6BEzvx/tVGOt8VCCo31YAh fLKmh3yXVvpYwYC2j8gpqtIYjvICKOkaD3+QxjpXg6qk5OAMd+ci4ZZcQxKaszRdW/3l esmkg1BQRdr2scJVZSExjID07xp7f1zaRcykdOi1dtBvKO16vXk6vj5L16OW29F5kFK2 WGXCBuLvt8LZc0lsuOsIS+eMvB+lGlllDQ9W45ASI+cXQbwLtX5z06k4n5HkFj5ErygA Y2+A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gregkh@linuxfoundation.org designates 140.211.169.12 as permitted sender) smtp.mailfrom=gregkh@linuxfoundation.org Received: from mail.linuxfoundation.org (mail.linuxfoundation.org. [140.211.169.12]) by mx.google.com with ESMTPS id u76-v6si65470pfj.58.2018.08.16.11.46.21 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Aug 2018 11:46:21 -0700 (PDT) Received-SPF: pass (google.com: domain of gregkh@linuxfoundation.org designates 140.211.169.12 as permitted sender) client-ip=140.211.169.12; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gregkh@linuxfoundation.org designates 140.211.169.12 as permitted sender) smtp.mailfrom=gregkh@linuxfoundation.org Received: from localhost (unknown [194.244.16.108]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 1E6DED25; Thu, 16 Aug 2018 18:46:21 +0000 (UTC) From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Joerg Roedel <joro@8bytes.org>, Toshi Kani <toshi.kani@hpe.com>, Thomas Gleixner <tglx@linutronix.de>, mhocko@suse.com, akpm@linux-foundation.org, hpa@zytor.com, cpandya@codeaurora.org, linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 4.14 03/22] x86/mm: Disable ioremap free page handling on x86-PAE Date: Thu, 16 Aug 2018 20:45:04 +0200 Message-Id: <20180816171623.395508866@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180816171622.831964729@linuxfoundation.org> References: <20180816171622.831964729@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 |
None
|
expand
|
--- a/arch/x86/mm/pgtable.c +++ b/arch/x86/mm/pgtable.c @@ -712,6 +712,7 @@ int pmd_clear_huge(pmd_t *pmd) return 0; } +#ifdef CONFIG_X86_64 /** * pud_free_pmd_page - Clear pud entry and free pmd page. * @pud: Pointer to a PUD. @@ -759,4 +760,22 @@ int pmd_free_pte_page(pmd_t *pmd) return 1; } + +#else /* !CONFIG_X86_64 */ + +int pud_free_pmd_page(pud_t *pud) +{ + return pud_none(*pud); +} + +/* + * Disable free page handling on x86-PAE. This assures that ioremap() + * does not update sync'd pmd entries. See vmalloc_sync_one(). + */ +int pmd_free_pte_page(pmd_t *pmd) +{ + return pmd_none(*pmd); +} + +#endif /* CONFIG_X86_64 */ #endif /* CONFIG_HAVE_ARCH_HUGE_VMAP */