Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp767imm; Thu, 30 Aug 2018 12:40:10 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYcOwRaH6c2zYqgPUVWyo1dFthco7+0mmPzK/MmsWZSOimTGXRjnunYsbmBz2l3fsELIb3h X-Received: by 2002:a17:902:6501:: with SMTP id b1-v6mr11659097plk.31.1535658010744; Thu, 30 Aug 2018 12:40:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535658010; cv=none; d=google.com; s=arc-20160816; b=P74PEmLIHCJXAHQ8oCTxYgifwD0/5UwfxgSrxGRooZX8hWtpwRjxGYhtjxvohvay08 XHjsRd+DeofPwE/ZQJfPcPHiLLZT7i4JIPRhW/CQTY2fCp+eMyTFqYXkYKzgHatxiLgS SdB7wqg1/UQpGRrUEGVk/nd+wNm9WLhmRI//MJIvHiRlQac6ME4+sRofJ9Al7yrkpJf+ u1eDgifWXoJfUjE9UC535q7D1CZHF49fES6uyKd6kHvFG6zXlF8BvNPpTW0wF8gv/l6m +Y8t3b/cSUZbb+TPuX9Owqwpkl+eBjg43O7cqYRFbsfmDitsx/Lo4KQJfW+JDcBsE/F4 HNWg== 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 :arc-authentication-results; bh=P3Ta/aRlyAeaLaIkC3uUZRmdwXik0pGpVChPhpUFJBc=; b=zNXL9xf8eBj1VeUtixyd1s+yoWJUwUlhRvuE9wZDKAlZdrKvSGbwcs+7jp1E6WdVHr 4qOEapyHbuSPzLNE4E2XBYHaon5oSI/78Iz6xKKZwzZkqWkmddk7vsAiQ3CLwicjoFx9 P6HChzkUUaYuBnzIcLTVdju0X+cVCnd9xCZYIkgxquoDOomrUUPuyPv+mfvQz1ZuYSYH uF8jbOYRQ1T2lHAy6NNiKfQrb1XmeKVSLulIA7ERjy0kDkNYOym2CWne2xDoDT7DwKvp x4ADQIkgke4xu+X9Tjz1+D90U1BsnhnWSYhXZsrqhQ2ts4Jqfo+M4M5FcA+8zQVaIENn ro/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=eU5mahOY; 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 u70-v6si7080213pgd.296.2018.08.30.12.39.56; Thu, 30 Aug 2018 12:40:10 -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=eU5mahOY; 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 S1727531AbeH3XmP (ORCPT + 99 others); Thu, 30 Aug 2018 19:42:15 -0400 Received: from mail-eopbgr680114.outbound.protection.outlook.com ([40.107.68.114]:45941 "EHLO NAM04-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725836AbeH3XmO (ORCPT ); Thu, 30 Aug 2018 19:42:14 -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=P3Ta/aRlyAeaLaIkC3uUZRmdwXik0pGpVChPhpUFJBc=; b=eU5mahOYkC/PDuisU3G18Jo2StUx3PRV/jMz1dK2/hlr7+GgkGVXuPKSeuskFkQH8Nn3tsjMDGC8JYeWBymP+q9ckCi2S7ORG5vYD9RCGHBnw6j0vRCgsPwEe2mTMJl72ZhtfjDIA8H0ZAPHx/Cfx0yKwxLIzFfkmc40l5YVc5s= Received: from DM5PR21MB0508.namprd21.prod.outlook.com (10.172.91.142) by DM5PR21MB0698.namprd21.prod.outlook.com (10.175.112.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1122.2; Thu, 30 Aug 2018 19:38:26 +0000 Received: from DM5PR21MB0508.namprd21.prod.outlook.com ([fe80::65dd:b17f:eb0d:2eee]) by DM5PR21MB0508.namprd21.prod.outlook.com ([fe80::65dd:b17f:eb0d:2eee%8]) with mapi id 15.20.1122.009; Thu, 30 Aug 2018 19:38:26 +0000 From: Pasha Tatashin To: David Hildenbrand , "linux-mm@kvack.org" CC: "linux-kernel@vger.kernel.org" , "linux-doc@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "linux-acpi@vger.kernel.org" , "xen-devel@lists.xenproject.org" , "devel@linuxdriverproject.org" , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Rashmica Gupta , Balbir Singh , Michael Neuling Subject: Re: [PATCH RFCv2 5/6] powerpc/powernv: hold device_hotplug_lock in memtrace_offline_pages() Thread-Topic: [PATCH RFCv2 5/6] powerpc/powernv: hold device_hotplug_lock in memtrace_offline_pages() Thread-Index: AQHUQJkF4A5ugJ7evE+50yrZin0knA== Date: Thu, 30 Aug 2018 19:38:26 +0000 Message-ID: <226aaaf7-7d1c-6f7b-5bf4-e6eb99862ebd@microsoft.com> References: <20180821104418.12710-1-david@redhat.com> <20180821104418.12710-6-david@redhat.com> In-Reply-To: <20180821104418.12710-6-david@redhat.com> 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;DM5PR21MB0698;6:08fVcqfIni5TL/cjeUA1W+AgpLZArXZMGF5PWpLVm8VBpz7F3mrPmTbG0T6ncQxjrt63UE/eBE0QQEJZO9mNiw5YlSE9IuAwX5gOVLpOPjMqpELdoVr/85nh2BZjat3Atnbnx3/8Nr+28f55eK30BFUxqFgoPmCHRBD9tvrhbzgHXQ2tYpATR+40wjbO0bb1KXnWovKSreue6bRCOw1Qr4otq6T6LGWU3KUuZ3qdrVDMX9cWLIiPm8JWbtLH2g2eu8vuFkG+sOQoMvKZ/r725pXV2Q1OlpFEcSHDGS+ZgclTsQetv/Abfi7ySHi5sy7++6XzGMUKGomZpe1M9R8QKzIOgD65b6s5nNGEe9flak2+0wKEuluW0mmdmJvjhdr16TKQngvJfy+En3WExostdW8SoKYAeH+lxsX0HXSiL3LJ6yx7iQGAam0N2mV/AqR0wN8gfQkAGz1xHt+OhEdNFg==;5:4KLONFU77TddsgcFA+iZUb38vq8dVOqV2chkp4aHqzwlPUEKT3m3MZENeqWj3EpDSYJumqcS3ZM4mfYtU2EOgg4hEsz+SgkVb1BDuYb74tZQMyw+Vp8EoVkz2xaRsIGqhm82/5uk7b0WmnN1eXyuxHkv9iVjxqtWHRb4cGYH+9I=;7:7bfZmBSzJmNCx5B4vGgRtIZATNxQsx814Az1CfU7dd8rB16Y2fydWaNjZ7eGgI22+QYmkY3dIxDg5Kt1AeDSmyP4AWESp84bL1mdzNsAMcQFOdn0zo8XbhbcVzGBdMws8QpaxC4w/ftPYnnmVzD+6PtbGwgYQiuSePLwaye6JC5m6j+vhOu82/oiS30Rts6/OiBu6pyp1dtMNqIHyJhsyw0Kb9LassAS31JqaFfOOXiTQ6VEdEFGx/FGNPf/DP9K x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 94f1e4a6-d601-4ec8-3652-08d60eb02808 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(4534165)(4627221)(201703031133081)(201702281549075)(5600074)(711020)(4618075)(2017052603328)(7193020);SRVR:DM5PR21MB0698; x-ms-traffictypediagnostic: DM5PR21MB0698: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Pavel.Tatashin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(85827821059158); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(3231340)(944501410)(52105095)(2018427008)(6055026)(149027)(150027)(6041310)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(201708071742011)(7699049)(76991033);SRVR:DM5PR21MB0698;BCL:0;PCL:0;RULEID:;SRVR:DM5PR21MB0698; x-forefront-prvs: 07807C55DC x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(396003)(39860400002)(376002)(136003)(366004)(189003)(199004)(22452003)(110136005)(54906003)(7416002)(31686004)(6116002)(316002)(10090500001)(3846002)(6486002)(97736004)(36756003)(105586002)(229853002)(106356001)(68736007)(2906002)(66066001)(14454004)(8936002)(186003)(14444005)(11346002)(26005)(486006)(2616005)(256004)(5660300001)(476003)(10290500003)(102836004)(72206003)(53546011)(478600001)(6506007)(31696002)(7736002)(81166006)(446003)(81156014)(25786009)(76176011)(2900100001)(8676002)(86362001)(5250100002)(39060400002)(99286004)(305945005)(6512007)(53936002)(86612001)(6246003)(6436002)(4326008)(2501003);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR21MB0698;H:DM5PR21MB0508.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: fEI5hOfY38Pb/M0P4sWh7k9Ro96mMAuMzE0coIvApxboXdr5tZJYC6wuBnRFS/0ZdKaZaCmZzWAU3ooLdSZHLoJ4ihVm3vpAtbv98fiQp1qnQuKSomyeMeR58+C5jk4S72iVKQGsAHeLUfdfh8MoGebl/0JrBQqqRrv5afBF38zy0AgaigozJOeFzu3y4pe5bUkmpUComboIBUkW4FyZTZep9E/cc9kYVMqPXATyW2Tasp13UFuOxzbbRAQrC6JQtRYPKSjSaRSUd2IWBQyv1ABiWHO9ryqUGIaG2ABCz+X8RRLUxTW6Cr7C6izq+34a99qngXoTGrG50CVwBbXXQ5TJYG6ilVtBP2THII0gJOg= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <22514313AC9ABF4BA9891A4203E5CEF8@namprd21.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 94f1e4a6-d601-4ec8-3652-08d60eb02808 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Aug 2018 19:38:26.6702 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR21MB0698 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org UmV2aWV3ZWQtYnk6IFBhdmVsIFRhdGFzaGluIDxwYXZlbC50YXRhc2hpbkBtaWNyb3NvZnQuY29t Pg0KDQpPbiA4LzIxLzE4IDY6NDQgQU0sIERhdmlkIEhpbGRlbmJyYW5kIHdyb3RlOg0KPiBMZXQn cyBwZXJmb3JtIGFsbCBjaGVja2luZyArIG9mZmxpbmluZyArIHJlbW92aW5nIHVuZGVyDQo+IGRl dmljZV9ob3RwbHVnX2xvY2ssIHNvIG5v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