Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp11405img; Sun, 17 Mar 2019 18:44:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/ukIJyt+yPzAmO656Nz+eGfXdV1b8ogqeiL3tPVyTtiUBlSFtyZoSv/hxGTlkM4NDv50B X-Received: by 2002:a17:902:f095:: with SMTP id go21mr16874433plb.199.1552873469252; Sun, 17 Mar 2019 18:44:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552873469; cv=none; d=google.com; s=arc-20160816; b=lu+bFXfwZzUPQ9ZNQsIJZYd10+iaqm2UjsRhaeP/bzB6LdHCQDxLAV6ZdvsUOqY1eZ 8E8gDvj30KnmC4dI2y88TbBnpfnzD1UeyCHIChohcXtJoQ2UIrIdP/qIeU2e7IiFgUPc hN93jpjjGZKqPcG5iCHo6IzfI8lBzGdZaUsuEIY5XmZjD7bsJjnaQvP8/Icxcd/OcThe oK04k6gchzicfw6tJkHpdP8DTkc7JmrMccW4WEPleeFOAEL107ub3nKsEl3AVLZTsdbq U2nTb+yGhAmfJN3Jf0PXh0A82tgEtNrbwuNdzsMoMDDqhNSbmlDTOhjHnp5VEsw1bj7/ 3iuw== 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-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=fUfWUvNvoTWp2EalMo+CHN9TJr39l4V0P1x/HjH1dHs=; b=lyj+6OS1hcGihbmlVpBfUD3IsYMeYYYGHLqZp3tZVCtARRlZ+391h91UI+RZJUphbt bez8DWYXak4vq14KHIb43kbSf1xvfkAzpvu5zx/UMbHdm1kGgl7BN2GrNCLtmYgou65d jK1CZf+MTGxbHyHaC+YNOaQj4UIVfTn50Am/D8cK1VTxii7qmZ7I130yQJN4c56JkLtQ 3ec0rNnMu3sGj12f18ljBf2gLOzZUQm8vxx/MitoojJGZCM8OKqBXlRD/sT/pv1oAzLv mOpqs9IJM3PoAE8Q1ucpjrotM37/oSOIzyY3VN3bj1OxTjg2+lp+9jbIwUAyVpva59xc F9UA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x23si1418635pfe.141.2019.03.17.18.43.46; Sun, 17 Mar 2019 18:44:29 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727474AbfCRBmV (ORCPT + 99 others); Sun, 17 Mar 2019 21:42:21 -0400 Received: from mail1.windriver.com ([147.11.146.13]:62762 "EHLO mail1.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726828AbfCRBmU (ORCPT ); Sun, 17 Mar 2019 21:42:20 -0400 Received: from ALA-HCB.corp.ad.wrs.com ([147.11.189.41]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id x2I1fTpb022619 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Sun, 17 Mar 2019 18:41:29 -0700 (PDT) Received: from ALA-MBD.corp.ad.wrs.com ([169.254.3.68]) by ALA-HCB.corp.ad.wrs.com ([147.11.189.41]) with mapi id 14.03.0439.000; Sun, 17 Mar 2019 18:41:11 -0700 From: "Liu, Yongxin" To: Sebastian Andrzej Siewior CC: "linux-kernel@vger.kernel.org" , "linux-rt-users@vger.kernel.org" , "tglx@linutronix.de" , "rostedt@goodmis.org" , "dan.j.williams@intel.com" , "pagupta@redhat.com" , "Gortmaker, Paul" , "linux-nvdimm@lists.01.org" Subject: RE: [PATCH RT] nvdimm: make lane acquirement RT aware Thread-Topic: [PATCH RT] nvdimm: make lane acquirement RT aware Thread-Index: AQHU1AQaa42orSwEx0mmBzBs0WZNkaYAw5wAgAAVVLCAAStcgIADmlcQgAfK3QCAA0RWUA== Date: Mon, 18 Mar 2019 01:41:10 +0000 Message-ID: <597B109EC20B76429F71A8A97770610D12A63C81@ALA-MBD.corp.ad.wrs.com> References: <20190306095709.23138-1-yongxin.liu@windriver.com> <20190307143344.ytsnbmot5tjzjhip@linutronix.de> <597B109EC20B76429F71A8A97770610D12A52669@ALA-MBD.corp.ad.wrs.com> <20190308094131.ge4wbsvz4p6xikdf@linutronix.de> <597B109EC20B76429F71A8A97770610D12A5643B@ALA-MBD.corp.ad.wrs.com> <20190315164236.rzbwe7reeprjv3um@linutronix.de> In-Reply-To: <20190315164236.rzbwe7reeprjv3um@linutronix.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [128.224.162.171] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IGxpbnV4LWtlcm5lbC1vd25l ckB2Z2VyLmtlcm5lbC5vcmcgW21haWx0bzpsaW51eC1rZXJuZWwtDQo+IG93bmVyQHZnZXIua2Vy bmVsLm9yZ10gT24gQmVoYWxmIE9mIFNlYmFzdGlhbiBBbmRyemVqIFNpZXdpb3INCj4gU2VudDog U2F0dXJkYXksIE1hcmNoIDE2LCAyMDE5IDAwOjQzDQo+IFRvOiBMaXUsIFlvbmd4aW4NCj4gQ2M6 IGxpbnV4LWtlcm5lbEB2Z2VyLmtlcm5lbC5vcmc7IGxpbnV4LXJ0LXVzZXJzQH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ICAgfCAgICAgICAgICAgICAgICAgICAg ICAgICAgIHwNCiBnZXQgbG9jayBmb3IgTGFuZSAxICAgICAgICAgZ2V0IGxvY2sgZm9yIExhbmUg Mg0KICAgICAgIHwgICAgICAgICAgICAgICAgICAgICAgICAgICB8DQogICAgICAgfCAgICAgICAg ICAgICAgICAgICAgICAgICAgIHwNCiBtaWdyYXRlIHRvIENQVSAyICAgICAgICAgICAgbWlncmF0 ZSB0byBDUFUgMQ0KICAgICAgIHwgICAgICAgICAgICAgICAgICAgICAgICAgICB8DQogICAgICAg fCAgICAgICAgICAgICAgICAgICAgICAgICAgIHwNCiB3YWl0IGxvY2sgZm9yIExhbmUgMiAgICAg ICAgd2FpdCBsb2NrIGZvciBMYW5lIDEgDQogICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAg ICAgIHwNCiAgICAgICB8ICAgICAgICAgICAgICAgICAgICAgICAgICAgfA0KICAgICAgIF9fX19f X19fX19fX19fX19fX19fX19fX19fX19fDQogICAgICAgICAgICAgICAgICAgfA0KICAgICAgICAg ICAgICAgIGRlYWQgbG9jayA/DQoNCg0KVGhhbmtzLA0KWW9nbnhpbg0KDQoNCj4gU2ViYXN0aWFu DQo=