Message ID | 20200928175428.4110504-31-zi.yan@sent.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=Qft/=DF=kvack.org=owner-linux-mm@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ED8CB618 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 28 Sep 2020 17:56:43 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 9FA482311C for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 28 Sep 2020 17:56:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=sent.com header.i=@sent.com header.b="fPRTBnTb"; dkim=temperror (0-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="dTWJdbWC" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9FA482311C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=sent.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id D8CCA90001F; Mon, 28 Sep 2020 13:55:32 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id CF4AD900021; Mon, 28 Sep 2020 13:55:32 -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 AA897900020; Mon, 28 Sep 2020 13:55:32 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0167.hostedemail.com [216.40.44.167]) by kanga.kvack.org (Postfix) with ESMTP id 8D60B90001A for <linux-mm@kvack.org>; Mon, 28 Sep 2020 13:55:32 -0400 (EDT) Received: from smtpin13.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 4FD2F180AD807 for <linux-mm@kvack.org>; Mon, 28 Sep 2020 17:55:32 +0000 (UTC) X-FDA: 77313222504.13.point91_3513a9a27183 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin13.hostedemail.com (Postfix) with ESMTP id 2A45918140B60 for <linux-mm@kvack.org>; Mon, 28 Sep 2020 17:55:32 +0000 (UTC) X-Spam-Summary: 1,0,0,48ef27d0eab1bf96,d41d8cd98f00b204,zi.yan@sent.com,,RULES_HIT:41:355:379:541:800:960:973:988:989:1260:1261:1311:1314:1345:1359:1437:1515:1535:1541:1711:1730:1747:1777:1792:2393:2559:2562:3138:3139:3140:3141:3142:3352:3876:3877:4250:5007:6114:6119:6120:6261:6642:6653:6742:7576:7901:10004:10226:11026:11473:11658:11914:12043:12296:12438:12555:12679:12895:13069:13311:13357:13894:14181:14384:14721:21080:21627:21990:30003:30054:30064,0,RBL:64.147.123.17:@sent.com:.lbl8.mailshell.net-62.18.0.100 64.100.201.100;04ygh463g55taq9j8f83c7uhuk7xxycqtbs1ktpxhseggdf881e1uqjnrx476ex.hs1azydjhj1hmmzhb48gopxftbms1jtxbm4mfitcaa33eqrgnwuyqbpcy9w6bzm.y-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:25,LUA_SUMMARY:none X-HE-Tag: point91_3513a9a27183 X-Filterd-Recvd-Size: 5200 Received: from wnew3-smtp.messagingengine.com (wnew3-smtp.messagingengine.com [64.147.123.17]) by imf48.hostedemail.com (Postfix) with ESMTP for <linux-mm@kvack.org>; Mon, 28 Sep 2020 17:55:31 +0000 (UTC) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.west.internal (Postfix) with ESMTP id 8D15EE05; Mon, 28 Sep 2020 13:55:29 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 28 Sep 2020 13:55:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sent.com; h=from :to:cc:subject:date:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; s=fm1; bh=fBlfD3KicOh48 xsTea8dHE8609zEG6sz2gFrwigOsnU=; b=fPRTBnTbx3dLJDGVIQn2jIdnZlFbQ /Sh5U12/4DT+wEEq6alb2D0bbKX4l6Raks1ESBkiRRU1vkIU3ZYQfU+AQ47rOmKs hI0zhJhNj/6YHcbxlbYCnhkuJIJN/g4b9yV9F7nfjFiBButXfhrqCJaZKaH59+tQ zYil0xzb3Pc4/vV7z3PhWn6VM9cHGplOMd9oV1m6Mk9hdZ1tv1/KakSybD0bp2Ei tjEpkd6qVIx7M28CMa8vvyXUt34XLJ2pN5Zy/TaZmV/87p+eDovVaiF+U2rBUupZ Ki6t4HPv7RcszDXSudrxRqMoLAoePQcOPgatINgD3uSEjDQZHsX94phKg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:reply-to:subject :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=fBlfD3KicOh48xsTea8dHE8609zEG6sz2gFrwigOsnU=; b=dTWJdbWC u6lm0HJBcOlCQ82ni6AMa4eosL4aQbhDOSFYXyYXNe2DUkS4loq8atA1cjmrQybm 6bcITY7fJcFPE+QlZvRJQRuyXYr8hYWBSNAZie5w+tjXbE3jFjsFu7YWCLDqCGsm L9IR4D7YkCDAEnKaH2BZ7lZEbEZ5HEqviZOcU1gW9leIAl9HT8SdTcc/ZUvW0dkO vu5zguNdQHpIbJNYmGEQF+SlgWbPuO5Oo2hUlL0B2mZ3QN2nZQPl3YPqsAinp4YG rAc/U8E9ibZZo6z/FrMdEoCzTytbDpsiPWJDuaD5EljpSc2YUhHnyT/NV3PgTdAe HjJ4nteLlqVJiQ== X-ME-Sender: <xms:kSNyX8rCijGb9kCO6KZBvJlUdIcrKeEd10jKOS1qqQiSPMGuQ7UNkA> <xme:kSNyXyqIRMnl3F333LWKX2Okum3p1Xxd44eCNCRrCw2yoaU-2V3V4A-SrOY-ztGIa XomS1ZO0hCDfAIskw> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvdeigdeliecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgjfhhrggfgsedtkeertdertddtnecuhfhrohhmpegkihcujggr nhcuoeiiihdrhigrnhesshgvnhhtrdgtohhmqeenucggtffrrghtthgvrhhnpeduhfffve ektdduhfdutdfgtdekkedvhfetuedufedtgffgvdevleehheevjefgtdenucfkphepuddv rdegiedruddtiedrudeigeenucevlhhushhtvghrufhiiigvpedvleenucfrrghrrghmpe hmrghilhhfrhhomhepiihirdihrghnsehsvghnthdrtghomh X-ME-Proxy: <xmx:kSNyXxMOnC71wDLgblr86MGMvxT1vkyMpfvnsh3HTUVadx7jwFGYXg> <xmx:kSNyXz58fsVp1OMW1TbIJO_fYnHrNvJoISJmfi49i7eP0UCaJokdoQ> <xmx:kSNyX75e5kOKt7UtxKlJLrc2kYukWj-KPiARoF0IumZUCBrbRFP4rQ> <xmx:kSNyX6R8NjsvhTCvfs5--Od3HezKNO0MmGHmvCLrSHfUIe7AhnnX5g_8yHY> Received: from nvrsysarch6.NVidia.COM (unknown [12.46.106.164]) by mail.messagingengine.com (Postfix) with ESMTPA id AEE59306467E; Mon, 28 Sep 2020 13:55:28 -0400 (EDT) From: Zi Yan <zi.yan@sent.com> To: linux-mm@kvack.org Cc: "Kirill A . Shutemov" <kirill.shutemov@linux.intel.com>, Roman Gushchin <guro@fb.com>, Rik van Riel <riel@surriel.com>, Matthew Wilcox <willy@infradead.org>, Shakeel Butt <shakeelb@google.com>, Yang Shi <shy828301@gmail.com>, Jason Gunthorpe <jgg@nvidia.com>, Mike Kravetz <mike.kravetz@oracle.com>, Michal Hocko <mhocko@suse.com>, David Hildenbrand <david@redhat.com>, William Kucharski <william.kucharski@oracle.com>, Andrea Arcangeli <aarcange@redhat.com>, John Hubbard <jhubbard@nvidia.com>, David Nellans <dnellans@nvidia.com>, linux-kernel@vger.kernel.org, Zi Yan <ziy@nvidia.com> Subject: [RFC PATCH v2 30/30] mm: thp: enable anonymous PUD THP at page fault path. Date: Mon, 28 Sep 2020 13:54:28 -0400 Message-Id: <20200928175428.4110504-31-zi.yan@sent.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200928175428.4110504-1-zi.yan@sent.com> References: <20200928175428.4110504-1-zi.yan@sent.com> Reply-To: Zi Yan <ziy@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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> |
Series |
1GB PUD THP support on x86_64
|
expand
|
diff --git a/mm/memory.c b/mm/memory.c index 9f7b509a3aa7..dc285d9872fc 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -4122,16 +4122,15 @@ static vm_fault_t create_huge_pud(struct vm_fault *vmf) { #if defined(CONFIG_TRANSPARENT_HUGEPAGE) && \ defined(CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD) - /* No support for anonymous transparent PUD pages yet */ if (vma_is_anonymous(vmf->vma)) - goto split; + return do_huge_pud_anonymous_page(vmf); if (vmf->vma->vm_ops->huge_fault) { vm_fault_t ret = vmf->vma->vm_ops->huge_fault(vmf, PE_SIZE_PUD); if (!(ret & VM_FAULT_FALLBACK)) return ret; } -split: + /* COW or write-notify not handled on PUD level: split pud.*/ __split_huge_pud(vmf->vma, vmf->pud, vmf->address, false, NULL); #endif /* CONFIG_TRANSPARENT_HUGEPAGE */