From patchwork Fri Sep 21 15:34:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Capper X-Patchwork-Id: 10610509 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 7D52F913 for ; Fri, 21 Sep 2018 15:34:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6BF132E4CE for ; Fri, 21 Sep 2018 15:34:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 607792E4E2; Fri, 21 Sep 2018 15:34:38 +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,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 184A22E4CE for ; Fri, 21 Sep 2018 15:34:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=3F8G+rUnBQZeGTWoz8tlB7HQcopR4hrx8gDshcxsSsU=; b=t+K 6LaXMGgreG9nO1cCsyusXbfVt+wgNXuAKbJV4ghsyp21abbGZ+5O6Iiivbv1pIbu+C/G5GNh3n/lp VuVTavwYDgUGGKUt2iRMdJJhERJXwkFfLFrUOL6coDE13tn/Dj5b1lc393SZ/Kmuzvc7bsaxkyhLD 6jTSf7L18t2HhWf2QYSIa1jhsimSDa98vBZFb/P6Sn03YJaOUW7FXGkIHZgPPmDG8bNJomYnWK+84 +3d0ZSm1L+b9Iz55WvWcaRgjQEruxK7PcMczkhR11hXVM7Ky8uJtCrlofny6u0cacP6oGWw4Y6rCZ fyb6LmTWrRG06+ZEFz50PJhaSzsIiZw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g3NRq-0005DX-UC; Fri, 21 Sep 2018 15:34:26 +0000 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70] helo=foss.arm.com) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g3NRn-0005C6-JE for linux-arm-kernel@lists.infradead.org; Fri, 21 Sep 2018 15:34:25 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7A69218A; Fri, 21 Sep 2018 08:34:11 -0700 (PDT) Received: from capper-debian.emea.arm.com (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 3429F3F557; Fri, 21 Sep 2018 08:34:11 -0700 (PDT) From: Steve Capper To: linux-arm-kernel@lists.infradead.org Subject: [PATCH V2 0/2] Fixes for contiguous hugetlb Date: Fri, 21 Sep 2018 16:34:03 +0100 Message-Id: <20180921153405.10090-1-steve.capper@arm.com> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180921_083423_661558_A78D3A04 X-CRM114-Status: GOOD ( 10.38 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: catalin.marinas@arm.com, Steve Capper , will.deacon@arm.com, zhang.lei@jp.fujitsu.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch series addresses a couple of issues found with contiguous hugetlb. 1) It is possible for old hugetlb's to be created by remove_migration_pte, the first patch adjusts the code to capture any young ptes that could have been created by hardware dirty bit management. 2) huge_ptep_set_access_flags has been changed in the second patch to prevent it from unnecessarily invalidating contiguous hugetlb mappings (which also stops it from potentially evoking back-to-back page faults). These patches have not yet been tested on hardware. Steve Capper (2): arm64: hugetlb: Fix handling of young ptes arm64: hugetlb: Avoid unnecessary clearing in huge_ptep_set_access_flags arch/arm64/mm/hugetlbpage.c | 50 ++++++++++++++++++++++++++++++++++++++------- 1 file changed, 43 insertions(+), 7 deletions(-)