Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp179664ybi; Fri, 14 Jun 2019 22:05:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6XgDA9Z1yIu0e1YRJ0z3gIFR/S9IPlvf3sLpVn0RmoH1iPeclSGKslWsYiRby3Hu/M3Op X-Received: by 2002:a17:90a:35e6:: with SMTP id r93mr5878409pjb.20.1560575114417; Fri, 14 Jun 2019 22:05:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560575114; cv=none; d=google.com; s=arc-20160816; b=iTFovLN+xwU3VgaQ4UYPPsDJXnFHMSu9oejYIYe82FqCcahhvLzB3dXW4dX5iA1FeK jpg5Eopeu2O/jkEFfTWLO9JjQOPB27uhFdKQ++LRGHW1aK0LWcmM2R0PmYRtVAtUuo+7 Mb2ebm1P9Ab6I6D0sfn9m4XDWHyu0mhKPZnueOA0ZGIPWj+S7YE8f4PIZhh8zBVU3e5U nNGNwOU56ERebzNdb6VqsuMx0LgZbmXUHVGCe28V1c9xWbWwArIvAwhWUlbD1BO5TKhp sWfNWjEVsPrp8v2YgVMn23lKGw4QIHoPPzbu3w0Vn7YaTT/vV3BLyU0FqGA6uv8X/5SP EEdw== 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=FOcSy+KiGQxIKss8QBtUtIp7nlP5xib/WpLVin7l/p4=; b=x9ibitzpWQZB61FyywfJaCjIGlCjlmyUPeI+/AGRh8iaVAXCuMWckuSYaZibfF0ti2 FJYK2ozg+4S3UputBI2lwrWBlKV+ZfvBgtTah1ZynE78wMATUqdFJjbFPUklOfILqVyF XrS9/ofo8AERrO99xs513nCuhmk8TReMxzvVgpaX2PiAOzySHVsK80VRg9w+1a9fWb6V 4cf8qYjWXUnSbl7XQM+u0OGErh6X40vRtndh/Pjk9iqWDM74j8YcIN4og5Xu9kYLGciQ SffaaPF1uoeZsuQs6S1+QP45WUPTo22ghVn2iPY7oJiJwef6JD3XKiFoQGpUfCZVQ+b9 E4Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=JWn4GhSP; 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 j23si3943138pll.214.2019.06.14.22.04.59; Fri, 14 Jun 2019 22:05:14 -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=JWn4GhSP; 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 S1726334AbfFOFDk (ORCPT + 99 others); Sat, 15 Jun 2019 01:03:40 -0400 Received: from mail-eopbgr130073.outbound.protection.outlook.com ([40.107.13.73]:28202 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725927AbfFOFDj (ORCPT ); Sat, 15 Jun 2019 01:03:39 -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=FOcSy+KiGQxIKss8QBtUtIp7nlP5xib/WpLVin7l/p4=; b=JWn4GhSPLRKcg14cq/O92KsQzcS5gC7JBW6G0s3siTnHgEhI+4PmelWRDx9EK1UIJkAwtJWfTcRouMdfsleZ2VfeVBkDHOsrooyLViQLMjJwo55JIULKCi1O2qFt0I2i8No20eb4p01/2xmjiBUWakOXRZCXF0QfBnwr5kveWAo= Received: from AM0PR04MB6738.eurprd04.prod.outlook.com (20.179.253.203) by AM0PR04MB5412.eurprd04.prod.outlook.com (20.178.112.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1987.12; Sat, 15 Jun 2019 05:03:33 +0000 Received: from AM0PR04MB6738.eurprd04.prod.outlook.com ([fe80::f41f:5455:d0b3:2527]) by AM0PR04MB6738.eurprd04.prod.outlook.com ([fe80::f41f:5455:d0b3:2527%4]) with mapi id 15.20.1987.013; Sat, 15 Jun 2019 05:03:33 +0000 From: "Z.q. Hou" To: Lorenzo Pieralisi , "bhelgaas@google.com" CC: "linux-pci@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "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 18/20] PCI: mobiveil: Disable IB and OB windows set by bootloader Thread-Topic: [PATCHv5 18/20] PCI: mobiveil: Disable IB and OB windows set by bootloader Thread-Index: AQHU8Qrl2X2dZdmZtkqqPC5pUtT6KKaYlFaAgAPP00A= Date: Sat, 15 Jun 2019 05:03:33 +0000 Message-ID: References: <20190412083635.33626-1-Zhiqiang.Hou@nxp.com> <20190412083635.33626-19-Zhiqiang.Hou@nxp.com> <20190612162347.GF15747@redmoon> In-Reply-To: <20190612162347.GF15747@redmoon> 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: [27.186.246.136] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 341e3ca0-801d-4e28-e2a9-08d6f14ed131 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600148)(711020)(4605104)(1401327)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020);SRVR:AM0PR04MB5412; x-ms-traffictypediagnostic: AM0PR04MB5412: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2887; x-forefront-prvs: 0069246B74 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(366004)(376002)(346002)(136003)(396003)(13464003)(199004)(189003)(53936002)(55016002)(229853002)(9686003)(6436002)(7696005)(53546011)(76176011)(6506007)(102836004)(6246003)(3846002)(2906002)(186003)(6116002)(99286004)(4326008)(446003)(11346002)(316002)(110136005)(54906003)(25786009)(486006)(26005)(476003)(71190400001)(71200400001)(66946007)(76116006)(73956011)(66476007)(66556008)(64756008)(66446008)(7736002)(256004)(305945005)(74316002)(52536014)(5660300002)(14444005)(66066001)(7416002)(68736007)(14454004)(86362001)(2501003)(33656002)(81166006)(8676002)(81156014)(8936002)(478600001);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB5412;H:AM0PR04MB6738.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX: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: V+xKVAJVpNRfIsDDhlRJqz23pIbyf3nUHQ65YngXDGeLKBdT58s29Xm9Cu60jbuGfyrp3H79n18cqHYmPJytmB8b16j0j/AvD3WIku8plQzyg756Dw4gkc7eDwga0+UfMoyiKzAzogz6ZZoChisVWInyxzohRUchca0XwVk60TlA05reZ6/iz8Ey6Wj5nzVzXNu+jiCDsj95O/YkMluwf1yxB2q0UU3H7GCPZbkNwRdINjzMUIY7/7ntZSNboJ1PmcEhjY/PihDhF/K0pdxTvkhKhEPUitIpHxt3wD1Ce8Up4ashroluizEd3e6cO8X0hTlo7EudfUGz+i61CaGVXy/9eusEOJTJRjZKQFv1JQIF2kJmgI057W5y64eG+ZoFouMXcZSUbKKqpR5B0uX7o1kWRgsyZ9zbVorllM1DVNE= 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: 341e3ca0-801d-4e28-e2a9-08d6f14ed131 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jun 2019 05:03:33.8084 (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: AM0PR04MB5412 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgTG9yZW56bywNCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBMb3Jl bnpvIFBpZXJhbGlzaSBbbWFpbHRvOmxvcmVuem8ucGllcmFsaXNpQGFybS5jb21dDQo+IFNlbnQ6 IDIwMTnE6jbUwjEzyNUgMDoyNA0KPiBUbzogWi5xLiBIb3UgPHpoaXFpYW5nLmhvdUBueHAuY29t PjsgYmhlbGdhYXNAZ29vZ2xlLmNvbQ0KPiBDYzogbGludXgtcGNpQHZnZXIua2VybmVsLm9yZzsg bGludXgtYXJtLWtlcm5lbEBsaXN0cy5pbmZyYWRlYWQub3JnOw0KPiBkZXZpY2V0cmVlQHZnZXIu a2VybmVsLm9yZzsgbGludXgta2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