Message ID | 20200928175428.4110504-17-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 DB07C6CA for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 28 Sep 2020 17:56:02 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 968F32184D for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 28 Sep 2020 17:56:02 +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="M7xV7Ip4"; dkim=temperror (0-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="ioPd4MMV" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 968F32184D 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 4EB5990000B; Mon, 28 Sep 2020 13:55:28 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 1D6A0900012; Mon, 28 Sep 2020 13:55:28 -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 DE3C990000B; Mon, 28 Sep 2020 13:55:27 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0149.hostedemail.com [216.40.44.149]) by kanga.kvack.org (Postfix) with ESMTP id B87A5900010 for <linux-mm@kvack.org>; Mon, 28 Sep 2020 13:55:27 -0400 (EDT) Received: from smtpin27.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 7B3E6180AD801 for <linux-mm@kvack.org>; Mon, 28 Sep 2020 17:55:27 +0000 (UTC) X-FDA: 77313222294.27.sugar97_2a1719027183 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin27.hostedemail.com (Postfix) with ESMTP id 475793D668 for <linux-mm@kvack.org>; Mon, 28 Sep 2020 17:55:27 +0000 (UTC) X-Spam-Summary: 1,0,0,030b7df70c868d1e,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:2194:2198:2199:2200:2393:2559:2562:2731:3138:3139:3140:3141:3142:3352:3865:3866:3871:3874:5007:6119:6120:6261:6653:6742:7576:8660:8957:10004:11026:11473:11658:11914:12043:12296:12438:12555:12679:12895:13069:13148:13230:13311:13357:13894:14181:14384:14721:21080:21627:21939:30054:30064,0,RBL:64.147.123.17:@sent.com:.lbl8.mailshell.net-64.100.201.100 62.18.0.100;04yf4x5e9p3hngrff4whb5unxoccooph1gq4it9dnbskba884n544b3bigw8c6u.r64fauqcjgf7e7nj953yj7rnbpbs7cxuszuxw9ikym9bxc8593djitoyydhiuh1.6-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:24,LUA_SUMMARY:none X-HE-Tag: sugar97_2a1719027183 X-Filterd-Recvd-Size: 5312 Received: from wnew3-smtp.messagingengine.com (wnew3-smtp.messagingengine.com [64.147.123.17]) by imf08.hostedemail.com (Postfix) with ESMTP for <linux-mm@kvack.org>; Mon, 28 Sep 2020 17:55:26 +0000 (UTC) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.west.internal (Postfix) with ESMTP id A510ED92; Mon, 28 Sep 2020 13:55:24 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 28 Sep 2020 13:55:25 -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=01LYlc5bDzp3u qzR9xxfv49dl40Bp54QbYMpQqXO/5E=; b=M7xV7Ip4pSaGpM8FfuydMwvO0fCGH zGTwAaxetq6YCSXCJaFSXSMVVRR+7XCaxRwCXRNyRgvbA5OkFS4xogt5/hq8aGYa MHoGtx1bA1WnF8b1xTkDW7Ozxs5jJlm3jvzV18BudEsGJL5oftAXPw+S4KWTtOa+ ovNUwCbq0Z297HcQvaS9OMmRr61NfYe0mPj34A6XZYUdqj33OuZabIA3X/lIm5qQ kX+IBv9LpobNgSBad6u3/iWfsrSjSDi8ew4QriaIGvIoLvOauOwfwhX2VX8S5Wyq gk0kHZMz/uIBJSr+E9lyAVIwyGqfLzsFSpuNhRNBwF23CHHOmpaJEZDTw== 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=01LYlc5bDzp3uqzR9xxfv49dl40Bp54QbYMpQqXO/5E=; b=ioPd4MMV 55cAG7caB4GzPpNXV6YKinZBo+9I1F6vWb8/o0eJAAfr3y6pUAy0AW00miyueaiy uPXAnW+LNFyjleTU/zBsseynT4nAp/OCozX+lBRzBW0SHY14dH4GdjoGXVOOa8m9 CJRkCP/+uVXmAIF6BqGx1g0ZHQvlXbqYlhxI7voWYfMnU5yr9RVGWfs8TOMCpiM4 OW78uxueiVgxYaCNA8vMEwcuM3vB/BsiKaZDTBjBrxqJ+s5nvGYLo7U8+zrZr4Tt jPemCbUCIf0eR/gfG50NExHXRqqQas2NLOVkJIr/x5hOkBP1qm/gIiTlHk7K7kAw IZ7i+fSPvMZL+Q== X-ME-Sender: <xms:jCNyXzLMWxfCOqAa1uWMKjHl_DlvN6LE8G6el-riw_ks-mi_LFxX_A> <xme:jCNyX3L5mE3ux-2OnlKMNXNQdVgabyk-8i7h-4ILb_agi-Wg4T5AumJmijnSXXbZf zC2aOEHu-WMPI2nVg> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvdeigdeliecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgjfhhrggfgsedtkeertdertddtnecuhfhrohhmpegkihcujggr nhcuoeiiihdrhigrnhesshgvnhhtrdgtohhmqeenucggtffrrghtthgvrhhnpeduhfffve ektdduhfdutdfgtdekkedvhfetuedufedtgffgvdevleehheevjefgtdenucfkphepuddv rdegiedruddtiedrudeigeenucevlhhushhtvghrufhiiigvpeduvdenucfrrghrrghmpe hmrghilhhfrhhomhepiihirdihrghnsehsvghnthdrtghomh X-ME-Proxy: <xmx:jCNyX7v5tkIDX3eaTgYOPxaDdLeZSrsOOa-CwR2fmU6DgOJvy-FqMw> <xmx:jCNyX8bCjXPv8GujQnxBO03FvTJIf5fdcFiqQcrowoC4pmPbqEGRkg> <xmx:jCNyX6aWJQ_yFGpUrOMhmdx5DxdkM1myAHoLzX3yqYrU1fuw4RPZvg> <xmx:jCNyXwy1OANFJdy20Zpup9yLCO0CJFn8aVWp2ggsgLbEu_BftbXf_j8cRJY> Received: from nvrsysarch6.NVidia.COM (unknown [12.46.106.164]) by mail.messagingengine.com (Postfix) with ESMTPA id BE8013064688; Mon, 28 Sep 2020 13:55:23 -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 16/30] mm: debug: adapt dump_page to PUD THP. Date: Mon, 28 Sep 2020 13:54:14 -0400 Message-Id: <20200928175428.4110504-17-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/debug.c b/mm/debug.c index ccca576b2899..f5b035dc620d 100644 --- a/mm/debug.c +++ b/mm/debug.c @@ -68,7 +68,9 @@ void __dump_page(struct page *page, const char *reason) goto hex_only; } - if (page < head || (page >= head + MAX_ORDER_NR_PAGES)) { + if (page < head || + (page >= head + max_t(unsigned long, compound_nr(head), + (unsigned long)MAX_ORDER_NR_PAGES))) { /* * Corrupt page, so we cannot call page_mapping. Instead, do a * safe subset of the steps that page_mapping() does. Caution: @@ -109,6 +111,8 @@ void __dump_page(struct page *page, const char *reason) head, compound_order(head), head_compound_mapcount(head)); } + if (compound_order(head) == HPAGE_PUD_ORDER && PMDPageInPUD(page)) + pr_warn("sub_compound_mapcount:%d\n", sub_compound_mapcount(page)); } if (PageKsm(page)) type = "ksm ";