Message ID | HK2PR03MB1684101846A9D9639BE00001929A0@HK2PR03MB1684.apcprd03.prod.outlook.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.web.codeaurora.org (Postfix) with ESMTP id 7303160236 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 8 May 2018 02:35:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6183C289CB for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 8 May 2018 02:35:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 56552289E2; Tue, 8 May 2018 02:35:35 +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=unavailable 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 DE802289E1 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 8 May 2018 02:35:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B03026B000C; Mon, 7 May 2018 22:35:33 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id A886B6B000D; Mon, 7 May 2018 22:35:33 -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 92B406B0010; Mon, 7 May 2018 22:35:33 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-it0-f70.google.com (mail-it0-f70.google.com [209.85.214.70]) by kanga.kvack.org (Postfix) with ESMTP id 6A2CE6B000C for <linux-mm@kvack.org>; Mon, 7 May 2018 22:35:33 -0400 (EDT) Received: by mail-it0-f70.google.com with SMTP id p138-v6so10690679itc.3 for <linux-mm@kvack.org>; Mon, 07 May 2018 19:35:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:thread-topic :thread-index:date:message-id:references:in-reply-to:accept-language :content-language:spamdiagnosticoutput:spamdiagnosticmetadata :content-transfer-encoding:mime-version; bh=R1wOf1bFI7zVn3XvlO5o90lko2eMIkZwMbkAfdehBvM=; b=H9hhKqAM/QEmOYnIJoHX8EoT0ZwCaDrrUM8bPCQ0dEbQGV4c82r4zPA5vo83488ebG Nb+P/LWb59ehW/jdCTC1gxPPRhB85Nut/5eMQUtBetueiNfR2LFIvPczGFPtjiX+lrr4 MDkkqYYr/UFC34PMOtigJeHAMZZ4Rgq+ky8K6wsAv0vijln1u9ZqYeq++os0MbGtHcU+ uPtR/Ah1C9G9MgMcnvmw5VQ5UJLur54ybb9C66cKYMRAWNe+vPNDLAPClQSBjPk4K8KN 2cnL1xDgIX3GsO2ovhjlH7SPfv7bCaL46dkRdJ2pKOjzLShIfzc2iMRS7+t0ILhQEiPo uEvQ== X-Gm-Message-State: ALQs6tD19xUdUpoVIJZLABPnjcRsCTslcp8gzEs4ON8caOiPimG3Apgh VNDbbOcAT0nUtz49gicx14E3JLoJDRk9hgRniPrj//VdqmcLj3kWlFtRp+zosuvqnqqz+oT5wEh qH6+zN9Tbgy+Qd2qHfASLSUeH4a9/rXK0mjrw53JOC2gBdbwSmPL6lDMMNcfkZIZjeA== X-Received: by 2002:a6b:885a:: with SMTP id k87-v6mr42349049iod.215.1525746933146; Mon, 07 May 2018 19:35:33 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqUJfDZFR/AYEfUWXUH9UqE919c0rjz9y3iwUOCxpkewItNUenxeF4uChGdD8LF0ovdKGkS X-Received: by 2002:a6b:885a:: with SMTP id k87-v6mr42349031iod.215.1525746932512; Mon, 07 May 2018 19:35:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525746932; cv=none; d=google.com; s=arc-20160816; b=X4iBE8W73UgDzlJFAYAut7HS738DypjBI2Q4Y6DRf1KxL9vBiIaBnY7B93AMx7xeN5 /MPvwx3iPqLp64WflX2kQ4hgJ5QyMeo6LRsQzTdeHAiNJ2cmjSYN08LIQrQvJxjFkgT5 M7S2zrB+U3fD6dZuygLs5699TyRE/dcVrgybWZcmzH0eiOHnsciv0SZMIwl6Sv6s8KiX QCHLNwB3RtGWrBRhvpkP3tyChY56xGXAwzn+xtpz0vyNAswFJS02fTEaHrishWaVx6on hXbrTBAfe91xbvpbMCXugSZUhPPPiiGM4PqWEDK/6/AIDLBCOD5IoAcTnjnIIt6iDydP YwKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-transfer-encoding:spamdiagnosticmetadata :spamdiagnosticoutput:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=R1wOf1bFI7zVn3XvlO5o90lko2eMIkZwMbkAfdehBvM=; b=w3EklXzVAkpuXe1T9M3EoIS1s+U4jeQ5klbjxiP8V216QRQbWZMTiQGd5mOKPfr82D gScgM9XY1BVRg+DVt5d4fXmSNjkKbofmmkmGPPu4ZpebjMrOg2jb0SPmVpGRKqEN/ipb IFHVv0a2uVdjMJeyKAwsbkgn6LqYpg02VBoDylcKQWLJKIRF/6UXCETkxYWQkCZIjuvQ VhUHPLQxQ3uSML6iCifN1Rjkup/OORXA9GL46aOwuLn7KQgsW/Cz1xAytXkFSVMuBMD2 tTalRvzuFsB4QbL8ESaWTSoHNl7X/Aht8Ffx/W2mH8CiIkNNxGbIo4ubAzwnzRknQS7S mwUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@LenovoBeijing.onmicrosoft.com header.s=selector1-lenovo-com header.b=Z+7z2ISY; spf=pass (google.com: domain of yehs1@lenovo.com designates 216.82.251.11 as permitted sender) smtp.mailfrom=yehs1@lenovo.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lenovo.com Received: from mail1.bemta12.messagelabs.com (mail1.bemta12.messagelabs.com. [216.82.251.11]) by mx.google.com with ESMTPS id z127-v6si8581670itg.32.2018.05.07.19.35.32 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 May 2018 19:35:32 -0700 (PDT) Received-SPF: pass (google.com: domain of yehs1@lenovo.com designates 216.82.251.11 as permitted sender) client-ip=216.82.251.11; Authentication-Results: mx.google.com; dkim=pass header.i=@LenovoBeijing.onmicrosoft.com header.s=selector1-lenovo-com header.b=Z+7z2ISY; spf=pass (google.com: domain of yehs1@lenovo.com designates 216.82.251.11 as permitted sender) smtp.mailfrom=yehs1@lenovo.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lenovo.com Received: from [216.82.251.46] (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits)) by server-11.bemta-12.messagelabs.com id 95/F8-16090-2FC01FA5; Tue, 08 May 2018 02:35:30 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA1WTbUwUVxSG987Hzog77WUROW6FpFsbFQUFEzP 1h6XGH5M2GtMmttKqHdphZ+N+4M5Ct9EEUUCrSMFWVFhbaJWULRsUsS5IICAWtFYNWjCIoqip UoQCNlRR6gyDVv89533fnHNuci5LmrczFlbyeSWPS3RYjWGUfPcmETdsGkpeGAzE8P6qSiP/Q 4PM78u6wPA/V6/gL9X5jfz1yv9oflvhVYYPHW4g+J78JD7nVC3Fl2QP0HxJVj7ix/71G5M44V T/ICnUBgOEcOynWKF6eA8jtO0fo4RdJeOUMHSnixKqav6ghHOlLYxw7LdNwvFHS4Wc0UhhpDp mFZdM210pbt+ntNwaukKknce+I6P/0FtQIbcThbFm/CeCYPbfjF60IBj88RtSKyicR8JoRxHS nXwC2r67OhnrRlBVX6E6U1gjngtn+jtIjafhVGh/WEdoIRLn0tCZs3fCiMAyXCwspPSQEy7nH lVDrMqJ0HtP0WQKz4Lbj7tpTebwJzBSE6fJZuyDA1lVRk2egpdBwa9YkxGOhqLeHkJjEkfBwa JiWmPAGA7VXyB1joR7t8YnOiL8PgzUrNNlKxQ3HZqMR0P797smngi4gIa2plqjbiRAa0UjqRt 9NJw43MHoxS8IHjb6JyfEQqj7DqNNALwBLnVadPkt2NF+hdI5BgK7b05yBQl942/qPBP81xqo ArSg+IU36DwfSk8OG3WeB+Vlf5Eaczgczhy4TZUiKoDmKJInQ/LELeLjUzx2m+x1inZHXEJCY rxTUhTRJjnEFCX+M7ezGqnnmGkwoBC62/hxM5rBEtZILoMaSja/kuL+/EtZVOT1nnSHpDSjmS xrBe70VNUL90g2yZdqd6g3/cwG1mSdxoWpV23mlDTRqdhtunUWLWK7c/PySLayZk8eaaZcbpd kieIuap2wFpXTXc8bPfsf7SjaEsEhg8FgNqVJHqfd+7Lfh6JYZI3gerUuJrvL+3xen7oKoa4S fmNQW8Ur/m9ZtqDodWXLg5sDvy99tYy43MOtGVl8P/Or5eUr6l57+8Ebr38QSi//umVv05qVT 2jvrI/un7+2oDlx+3t4qlcZ23+LecDZ3s3OOufuX7taiPgiszVp29GY/p2zO4NL6v1buwyj/s Vb3ab1dSfeMXfMb7u+4cn0s10bwZbh+3D1wW8j1w6kzhk/YqUUWUyIJT2K+BR4kOb5GgQAAA= = X-Env-Sender: yehs1@lenovo.com X-Msg-Ref: server-2.tower-47.messagelabs.com!1525746927!48446338!1 X-Originating-IP: [104.232.225.2] X-SYMC-ESS-Client-Auth: outbound-route-from=pass X-StarScan-Received: X-StarScan-Version: 9.9.15; banners=-,-,- X-VirusChecked: Checked Received: (qmail 18856 invoked from network); 8 May 2018 02:35:30 -0000 Received: from unknown (HELO maesmtp01.lenovo.com) (104.232.225.2) by server-2.tower-47.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 8 May 2018 02:35:30 -0000 Received: from HKGWPEXCH02.lenovo.com (unknown [10.128.62.31]) by maesmtp01.lenovo.com with smtp (TLS: TLSv1/SSLv3,256bits,ECDHE-RSA-AES256-SHA) id 0619_22f8_5532baa6_7661_420a_9cd0_9d3e63815dde; Tue, 08 May 2018 02:35:21 +0000 Received: from APC01-PU1-obe.outbound.protection.outlook.com (65.55.88.16) by HKGWPEXCH02.lenovo.com (10.128.62.31) with Microsoft SMTP Server (TLS) id 14.3.123.3; Tue, 8 May 2018 10:35:15 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=LenovoBeijing.onmicrosoft.com; s=selector1-lenovo-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=R1wOf1bFI7zVn3XvlO5o90lko2eMIkZwMbkAfdehBvM=; b=Z+7z2ISYSbYe3jf1DTwODH00erPJ32s1xVMj6Dck1Nm7HHaJtkAD7iW0hAOGSYJ/W/Km+jUkBnz7yR3jc2vG6mAYUKK/sGUYk5FQLAgwzUGtwElqvEKG8ikUeWnh4zsQD8j59Km1UZUMG91oBYQVyBG4sC855PyP/aW6dglKYIE= Received: from HK2PR03MB1684.apcprd03.prod.outlook.com (10.165.178.14) by HK2PR03MB0802.apcprd03.prod.outlook.com (10.161.188.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.755.10; Tue, 8 May 2018 02:35:14 +0000 Received: from HK2PR03MB1684.apcprd03.prod.outlook.com ([fe80::d87a:89b7:f377:f5d]) by HK2PR03MB1684.apcprd03.prod.outlook.com ([fe80::d87a:89b7:f377:f5d%4]) with mapi id 15.20.0755.012; Tue, 8 May 2018 02:35:13 +0000 From: Huaisheng HS1 Ye <yehs1@lenovo.com> To: "akpm@linux-foundation.org" <akpm@linux-foundation.org>, "linux-mm@kvack.org" <linux-mm@kvack.org> CC: "mhocko@suse.com" <mhocko@suse.com>, "willy@infradead.org" <willy@infradead.org>, "vbabka@suse.cz" <vbabka@suse.cz>, "mgorman@techsingularity.net" <mgorman@techsingularity.net>, "pasha.tatashin@oracle.com" <pasha.tatashin@oracle.com>, "alexander.levin@verizon.com" <alexander.levin@verizon.com>, "hannes@cmpxchg.org" <hannes@cmpxchg.org>, "penguin-kernel@I-love.SAKURA.ne.jp" <penguin-kernel@I-love.SAKURA.ne.jp>, "colyli@suse.de" <colyli@suse.de>, NingTing Cheng <chengnt@lenovo.com>, "Ocean HY1 He" <hehy1@lenovo.com>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "linux-nvdimm@lists.01.org" <linux-nvdimm@lists.01.org> Subject: [External] [RFC PATCH v1 6/6] arch/x86/mm: create page table mapping for DRAM and NVDIMM both Thread-Topic: [External] [RFC PATCH v1 6/6] arch/x86/mm: create page table mapping for DRAM and NVDIMM both Thread-Index: AQHT5nLo8hbgzoGgok+c55ua3SkdRaQlHUeA Date: Tue, 8 May 2018 02:35:13 +0000 Message-ID: <HK2PR03MB1684101846A9D9639BE00001929A0@HK2PR03MB1684.apcprd03.prod.outlook.com> References: <1525746628-114136-1-git-send-email-yehs1@lenovo.com> <1525746628-114136-7-git-send-email-yehs1@lenovo.com> In-Reply-To: <1525746628-114136-7-git-send-email-yehs1@lenovo.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [111.197.250.78] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; HK2PR03MB0802; 7:K7u+0t/QHo5KVnegafuy9WP+X98tLm7qbLFieOFIhDK40lwULIkxUjZHQbei2LKjECti1DJunypwZw/xMZeWpOeveu1pTuAuxIU5AoZDkeDyCwcKsBL4x3CsrHU9GcLMbyoTrFFGhGUOyYssXhCyoWxwasoV39NkvYA6e5TcJuIDoXJ64iIojs5+hbYv9RjT6E4bOhj0vad7OqQinXKLjXzwt9EZ/PTvLYU8aUPqun2244xpNXBba6vLEyWAlRo6; 20:aPsLzq8EBmrMfZSocJ6rmBEHHgu/LW7T5r/mCCuylKtBzclTnYcrF3qgu4PwHi7Y7+glYbog5ciyhGSJ0Jew8hbr43QfL9KgLm0rDor0kLKfkEwIKSHAn7Fk+JceKaCPRo4k7+dTwhEzRqb5G6tJ3IeVHMISeEVMum2pf60fuaTVL6iny1/R/SXwSCY3fkUpv1vL80f6T+ElPklXHZJ1TyGR5uwu4wQwxvBBtRUHJITy0ZMDvQ2WTD9z8R4OfeRVOJ1D1txmEBQu4qsrSN+7Txm/wNV9XpF7KjpdPymoVqA9UOhCbxH3V+ogo0rUrbdWLTTDdSE0qHEwnLElHU6whA== x-ms-exchange-antispam-srfa-diagnostics: SOS;SOR; x-forefront-antispam-report: SFV:SKI; SCL:-1; SFV:NSPM; SFS:(10019020)(366004)(39380400002)(376002)(39850400004)(396003)(346002)(199004)(189003)(14454004)(68736007)(6436002)(106356001)(8676002)(81166006)(81156014)(25786009)(478600001)(66066001)(8936002)(2906002)(110136005)(7736002)(97736004)(305945005)(54906003)(86362001)(3660700001)(3280700002)(105586002)(26005)(55016002)(102836004)(53936002)(7696005)(186003)(76176011)(6506007)(3846002)(9686003)(7416002)(74316002)(5660300001)(446003)(11346002)(33656002)(476003)(486006)(2900100001)(4326008)(316002)(5250100002)(2501003)(99286004)(6116002)(13296004)(217873001); DIR:OUT; SFP:1102; SCL:1; SRVR:HK2PR03MB0802; H:HK2PR03MB1684.apcprd03.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(2017052603328)(7153060)(7193020); SRVR:HK2PR03MB0802; x-ms-traffictypediagnostic: HK2PR03MB0802: x-microsoft-antispam-prvs: <HK2PR03MB08029E6BDBD51516661419CB929A0@HK2PR03MB0802.apcprd03.prod.outlook.com> x-exchange-antispam-report-test: UriScan:(3940261145250); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(3231254)(944501410)(52105095)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011); SRVR:HK2PR03MB0802; BCL:0; PCL:0; RULEID:; SRVR:HK2PR03MB0802; x-forefront-prvs: 0666E15D35 Received-SPF: None (HKGWPEXCH02.lenovo.com: yehs1@lenovo.com does not designate permitted sender hosts) received-spf: None (protection.outlook.com: lenovo.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 5nb14QRHMH9lJV4ZQZc0/ywtGMxOvfF/I7P1vEBes/s7akaScbc4zza3WKLf4B0SFYAdzsgvjB0rzuEl6x/BZtiiUsBPYJUZubzhIVLCOoiki13JqZqTIUZMMK8jjFhoczeQGjqfZmEO2n4vZ4URMYzJ4mNNxs7QM/q3X07fzqfMt3pOt9FhKdT8pXtu3V6R spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 46c7d637-def9-43c7-5aef-08d5b48c53aa X-MS-Exchange-CrossTenant-Network-Message-Id: 46c7d637-def9-43c7-5aef-08d5b48c53aa X-MS-Exchange-CrossTenant-originalarrivaltime: 08 May 2018 02:35:13.3396 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 5c7d0b28-bdf8-410c-aa93-4df372b16203 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2PR03MB0802 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 |
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c index af11a28..c03c2091 100644 --- a/arch/x86/mm/init_64.c +++ b/arch/x86/mm/init_64.c @@ -420,6 +420,10 @@ void __init cleanup_highmap(void) if (!after_bootmem && !e820__mapped_any(paddr & PAGE_MASK, paddr_next, E820_TYPE_RAM) && +#ifdef CONFIG_ZONE_NVM + !e820__mapped_any(paddr & PAGE_MASK, paddr_next, + E820_TYPE_PMEM) && +#endif !e820__mapped_any(paddr & PAGE_MASK, paddr_next, E820_TYPE_RESERVED_KERN)) set_pte(pte, __pte(0)); @@ -475,6 +479,10 @@ void __init cleanup_highmap(void) if (!after_bootmem && !e820__mapped_any(paddr & PMD_MASK, paddr_next, E820_TYPE_RAM) && +#ifdef CONFIG_ZONE_NVM + !e820__mapped_any(paddr & PAGE_MASK, paddr_next, + E820_TYPE_PMEM) && +#endif !e820__mapped_any(paddr & PMD_MASK, paddr_next, E820_TYPE_RESERVED_KERN)) set_pmd(pmd, __pmd(0)); @@ -561,6 +569,10 @@ void __init cleanup_highmap(void) if (!after_bootmem && !e820__mapped_any(paddr & PUD_MASK, paddr_next, E820_TYPE_RAM) && +#ifdef CONFIG_ZONE_NVM + !e820__mapped_any(paddr & PAGE_MASK, paddr_next, + E820_TYPE_PMEM) && +#endif !e820__mapped_any(paddr & PUD_MASK, paddr_next, E820_TYPE_RESERVED_KERN)) set_pud(pud, __pud(0)); @@ -647,6 +659,10 @@ void __init cleanup_highmap(void) if (!after_bootmem && !e820__mapped_any(paddr & P4D_MASK, paddr_next, E820_TYPE_RAM) && +#ifdef CONFIG_ZONE_NVM + !e820__mapped_any(paddr & PAGE_MASK, paddr_next, + E820_TYPE_PMEM) && +#endif !e820__mapped_any(paddr & P4D_MASK, paddr_next, E820_TYPE_RESERVED_KERN)) set_p4d(p4d, __p4d(0));