Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp204233imm; Fri, 21 Sep 2018 12:50:54 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYeZnfPqjGrAGyf4VulxvDYeGoSkL7+Zx1+pHKxTFaqiluD+7gSFKsru5fTClANMHZeF4Qp X-Received: by 2002:a63:d00b:: with SMTP id z11-v6mr4351867pgf.317.1537559454325; Fri, 21 Sep 2018 12:50:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537559454; cv=none; d=google.com; s=arc-20160816; b=IeYo22UH3JMbsVwWur+kaUWev7Y8q5l1JlFmEF3YoUfiEQ/3tmNQ5fPow95T6F1PJ9 5Em1CDj5/PhQPCJbQO/FCTrneSNNCBq7R4E0lyNL6C+kGtuDXst0r8U/v8zjLnio/9Dh dkRHWuUE8AcbTzlC4MyfW6/rFAnTs8Nqz/BJh3je2LAgOyrXV3YaXYIatWkpFGs9z8Ix OVzipymbTOgTAXlNv/4p+3BU28JuJOU707Xfkv2fAUgG4oWaKkwbfzzK1/0moVgM4V/I mkwRew43ipyW0YRYjie8c4zsaHQlOz1Wdt4uPihYSRcTaI+iWAzH9Pr7QGRIbIlwOuEs JCHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=nivHmXV0nqP6hvF0DUTzRoK8TUi0o/nLxmKQ+a8f7ps=; b=xNAt1CLnxF4PIjZRM9GPpv46tKoo1Pjhz8kIQgx00O1VhBw5xtbg2oX2S/nEmH5p6H GDsRhOX78C+FO7Q4vprzmIoxUdWsqGnRM7EaJS3joLpIWiKoFL5aKbEG/4Gz1Rk2bt0F LhqJpK3mIFHTLts4d5Ryu61JYI37CUCIatfjSGCVNEWU5F6kycaRChhx0/ic7AWNRw0X 3wmr8E1q03/eWSsm06uvBRwtM4/X+zDxS5fQdyh1KypVW2uiiqsm2NK8W1a+ORnRef6W lL+0cHL6F97zMB1K0Ef4yaOzQlgQj6GWeepON7cskLpSLg6usn2ZdIJczx4mB9bMoKXq mfYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=Fc7fmy39; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e12-v6si27032646pfn.322.2018.09.21.12.50.37; Fri, 21 Sep 2018 12:50:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=Fc7fmy39; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391335AbeIVBkp (ORCPT + 99 others); Fri, 21 Sep 2018 21:40:45 -0400 Received: from mail-eopbgr720102.outbound.protection.outlook.com ([40.107.72.102]:42679 "EHLO NAM05-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2390726AbeIVBko (ORCPT ); Fri, 21 Sep 2018 21:40:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nivHmXV0nqP6hvF0DUTzRoK8TUi0o/nLxmKQ+a8f7ps=; b=Fc7fmy39E6Lmi3bPSd+EdyckAuRe/JN3slZ0fgtDOvrIuLzEJ+rZYGLIx8ORGLaqgU5LVpLI4SSKTpfJcVCF+fHdGMvVZ1GpH9O1fgeH9k48gaHNq9O33acb5VERsUnl2gZibnxb5X2Nk2MIwP1Bfdv0RqjCEcItKvu2tm9MkEw= Received: from DM5PR21MB0508.namprd21.prod.outlook.com (10.172.91.142) by DM5PR21MB0123.namprd21.prod.outlook.com (10.173.173.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1185.9; Fri, 21 Sep 2018 19:50:18 +0000 Received: from DM5PR21MB0508.namprd21.prod.outlook.com ([fe80::88e6:fdc:1d8e:71f5]) by DM5PR21MB0508.namprd21.prod.outlook.com ([fe80::88e6:fdc:1d8e:71f5%4]) with mapi id 15.20.1185.010; Fri, 21 Sep 2018 19:50:18 +0000 From: Pasha Tatashin To: Alexander Duyck , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , "linux-nvdimm@lists.01.org" CC: "mhocko@suse.com" , "dave.jiang@intel.com" , "mingo@kernel.org" , "dave.hansen@intel.com" , "jglisse@redhat.com" , "akpm@linux-foundation.org" , "logang@deltatee.com" , "dan.j.williams@intel.com" , "kirill.shutemov@linux.intel.com" Subject: Re: [PATCH v4 3/5] mm: Defer ZONE_DEVICE page initialization to the point where we init pgmap Thread-Topic: [PATCH v4 3/5] mm: Defer ZONE_DEVICE page initialization to the point where we init pgmap Thread-Index: AQHUUTFwJuKfr51oTUOI402VMkePkKT7JkGA Date: Fri, 21 Sep 2018 19:50:18 +0000 Message-ID: <2254cfe1-5cd3-eedc-1f24-8e011dcf3575@microsoft.com> References: <20180920215824.19464.8884.stgit@localhost.localdomain> <20180920222758.19464.83992.stgit@localhost.localdomain> In-Reply-To: <20180920222758.19464.83992.stgit@localhost.localdomain> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [137.117.57.82] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR21MB0123;6:QEhU5G42EB8oIcyVCGowTkg6hmJGGOooc00KHnjReOMZNX8OG0G5vKWXaIdSuDmoP6vvhk5ka9dsZtSPaHi0lNzjvqWWTfpG+am+o3X+lxIzGbjXpyRKc/Dp+LkuFbherJaaw6+nrFyfa4QV1UZLDEAR/8NDqBE67RUlKS5EQDvP6af64j00z2+Wlvt4rNPKmbGLBQTnuonDpHfjSv321R5x6jazndMwlxk+a/RDYzRD+gkHQtBeuoXQUn22mdiLlFzx4rZQ48Auia7DubQulBh+NltjVmKDbjhNLTGU8kntOcPtTsB/xxBTM6AQ3WyZzoN4LEEJpRyuhPQSoCT26Qmd/VbOE+VdtyvhqXZwphsD144ObjpuhGY9dgSqKxphyxMy3q5KXs6at0Biwh4/JWMnl/N3ZXqgyryMnvfmfkyfP4lVHA5M58zKL36/n4yQG1jRmvONG6CzhoQY0OT1bw==;5:kxnz1iLwep+4Fl7T0zAm2NLwSD9D081oHJCgU1jQQ1RZLx5+1Cz2awr73vN14TkGLZtZZwOgKPQlHaAIipNm5ty3JiV1U1sSp3Cfsm/E3RsrPiPINmnpsa109jalZFQOxYSyu1vvnS0oRXoSktkFD67W1oPL02HKveEKRpcs0D0=;7:GX5uq3H4flIS6VLjNFmUGAmDU2ZcVW2WQrVcGRIpKmnWwZMN5/9NucmGW0/rjDmqEC6L2nBmeTkTvqBvpVJrsEJpB3lMttE3d2/EZs24EqgJfiEsV+9atN5EvVpWF6NVsemfZ22Mu8ghMzhnYOQ83jewyftOm3rqDwqgoVc27oahLpwmqDQ5vrSBTUl3t+ib2KupzHHxa1fnzcQ+UPu4ufveD3MW19WDxfwylr2yPRYgfSPqbCdLJBP7Ch5kMyOy x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: fd6f5376-b1ca-49ee-d6e6-08d61ffb7579 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7193020);SRVR:DM5PR21MB0123; x-ms-traffictypediagnostic: DM5PR21MB0123: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(228905959029699)(28532068793085)(89211679590171); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231355)(944501410)(52105095)(2018427008)(3002001)(10201501046)(6055026)(149051)(150027)(6041310)(20161123560045)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(201708071742011)(7699051)(76991041);SRVR:DM5PR21MB0123;BCL:0;PCL:0;RULEID:;SRVR:DM5PR21MB0123; x-forefront-prvs: 0802ADD973 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(346002)(39860400002)(136003)(366004)(396003)(199004)(189003)(25786009)(36756003)(305945005)(6436002)(7736002)(2201001)(81166006)(81156014)(8676002)(4326008)(53936002)(8936002)(110136005)(2906002)(54906003)(5250100002)(22452003)(71200400001)(68736007)(86612001)(2501003)(5660300001)(71190400001)(31696002)(6512007)(66066001)(6246003)(6486002)(7416002)(316002)(229853002)(10090500001)(72206003)(478600001)(31686004)(6346003)(186003)(486006)(14454004)(86362001)(26005)(11346002)(476003)(2616005)(2900100001)(102836004)(106356001)(105586002)(10290500003)(446003)(14444005)(97736004)(256004)(6506007)(99286004)(76176011)(3846002)(53546011)(6116002);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR21MB0123;H:DM5PR21MB0508.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Pavel.Tatashin@microsoft.com; x-microsoft-antispam-message-info: gA7CF8mWYSYXr2U4q47E+ByuFaXa+oetRp4kOatGjIQZSLf+vPPM7QZr19kMsy9RewicoByOBOvSO/O/B2+J0trXXabL5V56UJwwN97rQKqLnbfWyV4/h6oZSsUtzaeatC1YyYk26nn/JnRr21ZmxDXek/fSv2buKisMw+kzRnLhr8Jz1ggnqbaAJ3Gq3zjcp1ptH6iLlpPMW+tnt6wh0bQKByp4eiq+4ZraCP2AXiNkGrLWmi9joLf4weUK0efjssTbK/pOSYTvMraGhXSZr07pMwHr8adm+6SGjfQ8ssuvzlv8AVdMgFs3tNYHQ4dswinrQ4zm3FrsNvlkrm80uESrGnSulVsx10OB+ZSdxKg= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <4F32675E3C009940AEFBAB1DADA60897@namprd21.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: fd6f5376-b1ca-49ee-d6e6-08d61ffb7579 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Sep 2018 19:50:18.7194 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR21MB0123 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCk9uIDkvMjAvMTggNjoyOSBQTSwgQWxleGFuZGVyIER1eWNrIHdyb3RlOg0KPiBUaGUgWk9O RV9ERVZJQ0UgcGFnZXMgd2VyZSBiZWluZyBpbml0aWFsaXplZCBpbiB0d28gbG9jYXRpb25zLiBP bmUgd2FzIHdpdGgNCj4gdGhlIG1lbW9yeV9ob3RwbHVnIGxvY2sgaGVsZCBhbmQgYW5vdGhlciB3 YXMgb3V0c2l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