Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2014754ybi; Mon, 1 Jul 2019 04:41:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqxroDNj6rcF3is6GGn61HjQ0xcRgQ/6iDPFeyPA6PtxLA/bYyIOnjzsSvJ+DJODw9w1e7Fw X-Received: by 2002:a17:902:b612:: with SMTP id b18mr12393858pls.8.1561981303594; Mon, 01 Jul 2019 04:41:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561981303; cv=none; d=google.com; s=arc-20160816; b=YEFXqCb1s504brTjqfNZvc4nBeEHTD4P17E52pGuH6VATf+9u6B0lXk0vlozBfB7vo KFA7mvISxdkAFJS4YJlCCjZJFSmA5tDfkE4OApJHsQPhQPx10PxZ2PBezgjR22tZRZ0v lqzO5IQZB9vV0tACKCmsHgLS8SPlfc0lMEQ5kAxa5T1gNwVXW3w4RwAvxgKNji/RP7P/ TzWC29n8qhR8K/KG8ekJnG+GX1FxgYZ/SNNSGZ+Py5Xy1qX01maC07DyCcdjOht+a6Ig 3rBvCaTauvxwy28TT/VR9/qh4zue6auQpWvcbNt1rpwRYdfFzczBRt0lo7HinnqfY8iR cuVg== 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:dkim-signature; bh=JQvdK6/FNmyVmeLnkQyaELdnpguQJHiqdUsYJsda3pM=; b=Z6yQ0fQuZSKvNCsVQWu8IZpcPkCPV5vgElEm7NqaeEPmEpohoWIgwB31LMbWhyieT1 Z7OEeFLr9DtgsPeWz4/+3y5PdWEc28WJvM+XYyye+KCud2QvXPMCX8fzr985qwrvEaWO hnOKPi1h1S34g1GOvGwc3GaBgkW90bl3J1HOBBU19tN7pEp9XnlCXIjVpP4JmnMoC04e Qu/w4gHdQgXzZx5YNnjwgCGp/ydvtPNI+lc392snsJydH5ec09K+HuaYfMQ+h0tecC1t UUMQVNYFzIdPHGSxEprObXO80uFVAQN4fX+qwVrdzm8WQSQLPNpLZmhpUdadKwwHtXAH AEOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=COOYtlt2; 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=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 4si10746761pgo.198.2019.07.01.04.41.28; Mon, 01 Jul 2019 04:41:43 -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=@nxp.com header.s=selector2 header.b=COOYtlt2; 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=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728873AbfGAKY7 (ORCPT + 99 others); Mon, 1 Jul 2019 06:24:59 -0400 Received: from mail-eopbgr60077.outbound.protection.outlook.com ([40.107.6.77]:15854 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726076AbfGAKY7 (ORCPT ); Mon, 1 Jul 2019 06:24:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JQvdK6/FNmyVmeLnkQyaELdnpguQJHiqdUsYJsda3pM=; b=COOYtlt2wbLWroL5F1d9o8Otb0QiGkjxNcJoEcBUOk1Sg5DPjpyOBfXGJlesrB5P+bQ2jC1nBYW3KQngrDIdKvl/rn4qKF+WoBsIJe75w1hJ9kz3Dc5Kc55AYJPrZo8QdWDao3EjHqDLk65g9d9GDqp/N4Xogm4UF+371q33eTw= Received: from DB8PR04MB6747.eurprd04.prod.outlook.com (20.179.250.159) by DB8PR04MB6729.eurprd04.prod.outlook.com (20.179.248.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2032.20; Mon, 1 Jul 2019 10:24:54 +0000 Received: from DB8PR04MB6747.eurprd04.prod.outlook.com ([fe80::93a:4344:1120:4ca0]) by DB8PR04MB6747.eurprd04.prod.outlook.com ([fe80::93a:4344:1120:4ca0%6]) with mapi id 15.20.2032.019; Mon, 1 Jul 2019 10:24:54 +0000 From: "Z.q. Hou" To: Lorenzo Pieralisi CC: "linux-pci@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "bhelgaas@google.com" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "l.subrahmanya@mobiveil.co.in" , "shawnguo@kernel.org" , Leo Li , "catalin.marinas@arm.com" , "will.deacon@arm.com" , Mingkai Hu , "M.h. Lian" , Xiaowei Bao Subject: RE: [PATCHv5 09/20] PCI: mobiveil: Correct inbound/outbound window setup routines Thread-Topic: [PATCHv5 09/20] PCI: mobiveil: Correct inbound/outbound window setup routines Thread-Index: AQHU8QrFfxj3itSLU0yAx2so+j68jaaxvqAAgARMROA= Date: Mon, 1 Jul 2019 10:24:54 +0000 Message-ID: References: <20190412083635.33626-1-Zhiqiang.Hou@nxp.com> <20190412083635.33626-10-Zhiqiang.Hou@nxp.com> <20190628164138.GC21829@e121166-lin.cambridge.arm.com> In-Reply-To: <20190628164138.GC21829@e121166-lin.cambridge.arm.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=zhiqiang.hou@nxp.com; x-originating-ip: [119.31.174.73] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ec9247fd-8c68-4e7d-8d7a-08d6fe0e5bf7 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:DB8PR04MB6729; x-ms-traffictypediagnostic: DB8PR04MB6729: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:457; x-forefront-prvs: 00851CA28B x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(366004)(39860400002)(396003)(136003)(346002)(376002)(13464003)(54534003)(189003)(199004)(5660300002)(52536014)(66946007)(73956011)(66446008)(64756008)(66556008)(66476007)(66066001)(76116006)(74316002)(3846002)(6116002)(305945005)(256004)(7736002)(6916009)(6246003)(71190400001)(71200400001)(53936002)(478600001)(55016002)(9686003)(53546011)(6506007)(102836004)(33656002)(68736007)(229853002)(76176011)(26005)(86362001)(99286004)(7696005)(14454004)(7416002)(186003)(54906003)(4326008)(446003)(476003)(486006)(11346002)(316002)(8936002)(6436002)(81166006)(8676002)(81156014)(2906002)(25786009);DIR:OUT;SFP:1101;SCL:1;SRVR:DB8PR04MB6729;H:DB8PR04MB6747.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: oijkinXUFSawVwtvMxdMXG4SMPSgNFByx+OS25TXLrrXPkZ1hgJ2O9UpGol5njQGPGo0nW19OOODy+NEShFsaKNOdx9dKIJySl+sff5JsWHNOh/s6YyjWO4QZhcGs+kkxuoXmKKxMu4Rw5ypciTlIpexdJjcB2sR7BbI9hqu3EHjbCB1m7UDYqz+p8LjQviVnedMdvCBJnOrIoMWsMoPiuE52g6/9SIRmYmXpwdcBWz4I8JKTde/wEq6b0sD7bOdHeq7MzBmAPY27d8z6kO4vv9MN+LLmhqPk1vwTjUkGG1V6pYLA4meRHkzqSWz3+QlTIJpPKsxYj34viUYTNbbyy5OyJDQ1lrkPNG7emJvQ/7svRXKkgbigx3lgPIqGxTrA4ZwuyCeN5oniLy44v3rx7iWPeIO+o49KrEBSyAOSTI= Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ec9247fd-8c68-4e7d-8d7a-08d6fe0e5bf7 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Jul 2019 10:24:54.3772 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: zhiqiang.hou@nxp.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB6729 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgTG9yZW56bywNCg0KVGhhbmtzIGEgbG90IGZvciB5b3VyIGNvbW1lbnRzIQ0KDQo+IC0tLS0t T3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IExvcmVuem8gUGllcmFsaXNpIDxsb3Jlbnpv LnBpZXJhbGlzaUBhcm0uY29tPg0KPiBTZW50OiAyMDE5xOo21MIyOcjVIDA6NDINCj4gVG86IFou cS4gSG91IDx6aGlxaWFuZy5ob3VAbnhwLmNvbT4NCj4gQ2M6IGxpbnV4LXBjaUB2Z2VyLmtlcm5l bC5vcmc7IGxpbnV4LWFybS1rZXJuZWxAbGlzdHMuaW5mcmFkZWFkLm9yZzsNCj4gZGV2aW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