Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4385372imu; Tue, 29 Jan 2019 00:11:26 -0800 (PST) X-Google-Smtp-Source: ALg8bN43ld6OMvZxPy66TUPjysVoiO7bbW7jDussUAx5xIO/BdWVSAxETi9GD9OaBSTF6oZyfa4h X-Received: by 2002:a17:902:7296:: with SMTP id d22mr25565428pll.265.1548749486582; Tue, 29 Jan 2019 00:11:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548749486; cv=none; d=google.com; s=arc-20160816; b=Ll/ghqccYohB+ZxHyyGvSVEviSsMPGHOa8TYG+Tl8Ddq+CPkBcTFobon3gfx5VTgZ1 wewQ7plIr5lmpgTTsDJeT4JZn9xzi3lJltIQmyzpK/Uwg7XwNLtrd9avmjPtAZpoJ7Cn W5btzqPqNbdaP4hoEjOjDY5qLB5GxrDwgPgtfBJp2kFHCpwPbMc286iHXAAC9FRTZcHB vx3vr3a5FO3klipxH7h9yv5EtnqJ7+PDk844Z5I6Ai9rCciqgt+qyxedtNT0H9TqYk7T wVbIfPHyOaP6wBmw3iOtelNdc2YZ/6TdYCK6JYoccfGhxweEAGHWSZg7sbnX6ffx62fH 3KSw== 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=F4ngRKRTgC9o/7aAxbUCwbrWEu5yLuYKeQkwKN3n7SQ=; b=WXo3pZOeW3HGRggbDcsvZLhZXuwQlzyk/A6WF20/6ZcoMZeVq/oSgH8iTSzAbT+vSe jRwOIb7Vxd7jytJ0qeI/815HA8KwOT24FplEGxwjfRO2J0r0/I8uAirQdgwB+agOjhlY jL3TEVzKwW7e8r4iffibwK0Pl2P7uy/eYO3s7otpORyZGoZ2i671d6DC/KtLeXJqBHHw m5F069udN4tP/PFuDG6XukEfHux+Pzzt75OGEoNrn9APTYYiUbpWeC/IAjE9sWkBo0W/ wyk/3oLzt/vm2hABHr25f2qFQgnvXQLRTNRuepfveoDKoFgbJ0wQKx6WKIykaYrcOgxE Q7jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=KEQ3XvQy; 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 c125si19185694pfa.216.2019.01.29.00.11.11; Tue, 29 Jan 2019 00:11:26 -0800 (PST) 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=selector1 header.b=KEQ3XvQy; 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 S1727761AbfA2IJZ (ORCPT + 99 others); Tue, 29 Jan 2019 03:09:25 -0500 Received: from mail-eopbgr30064.outbound.protection.outlook.com ([40.107.3.64]:43840 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725775AbfA2IJX (ORCPT ); Tue, 29 Jan 2019 03:09:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=F4ngRKRTgC9o/7aAxbUCwbrWEu5yLuYKeQkwKN3n7SQ=; b=KEQ3XvQyLavSE14ASrj+VNok51S/m/WIhrPAAamf2mppiq3I0HW7IWf0c8zjOJ2Bk7R/ub5Z62nfj2HZEw/D73xd81vcWZf/pABEue4spiyBluwuakqVq7xpbdE7bFiHosD4GY29yTW3BIXLAj747Luvl4KkhiNH/XZoMUTTx0w= Received: from AM6PR04MB5781.eurprd04.prod.outlook.com (20.179.3.19) by AM6PR04MB4774.eurprd04.prod.outlook.com (20.177.32.215) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1558.21; Tue, 29 Jan 2019 08:09:20 +0000 Received: from AM6PR04MB5781.eurprd04.prod.outlook.com ([fe80::9c0:e3aa:b41f:9504]) by AM6PR04MB5781.eurprd04.prod.outlook.com ([fe80::9c0:e3aa:b41f:9504%3]) with mapi id 15.20.1558.023; Tue, 29 Jan 2019 08:09:19 +0000 From: "Z.q. Hou" To: "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 , "lorenzo.pieralisi@arm.com" , "catalin.marinas@arm.com" , "will.deacon@arm.com" CC: Mingkai Hu , "M.h. Lian" , Xiaowei Bao , "Z.q. Hou" Subject: [PATCHv3 08/27] PCI: mobiveil: use the 1st inbound window for MEM inbound transactions Thread-Topic: [PATCHv3 08/27] PCI: mobiveil: use the 1st inbound window for MEM inbound transactions Thread-Index: AQHUt6nvuDhY+0ZVQ06tELcOKKSi+g== Date: Tue, 29 Jan 2019 08:09:19 +0000 Message-ID: <20190129080926.36773-9-Zhiqiang.Hou@nxp.com> References: <20190129080926.36773-1-Zhiqiang.Hou@nxp.com> In-Reply-To: <20190129080926.36773-1-Zhiqiang.Hou@nxp.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HK0PR04CA0008.apcprd04.prod.outlook.com (2603:1096:203:36::20) To AM6PR04MB5781.eurprd04.prod.outlook.com (2603:10a6:20b:ad::19) authentication-results: spf=none (sender IP is ) smtp.mailfrom=zhiqiang.hou@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-originating-ip: [119.31.174.73] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AM6PR04MB4774;6:uYlnHcGa4bQS87XswrOkBjftzK/ZiKBvh08JT0WVPgi4x5Ag26QE0yw/Pk40okrtvAvAClAF85nteYq90ysgtzkKL+mDNEjD8EpsDw98VSW3kTDLHNhSm9N1ZvM76zINtY4wIDNYgVDS4Dl++tJVltCqBTAunAkP4X74MIXTsXOFOIZDN+8ZNFG+0dhkKzQeWU4VYAy59TH/iTDAOO8FwT+YZV9plkatf2jR3Fd6D1EZRC0Y4vx0kDz+PvrmI5PRxJ0syR51zH8iY+xOAqKbK5TuHAUyv6FLkzfya9KOhOYcK1URa2DRU/Y5Z2st8XyN3HyOnX4cbJfP67iFFR/ErI4dqpwDegMvHTLvNk+GX+D1H0ydTG6efvgLvkJccw1/VA2CR9fAMMBSE6Q3q2uoSu30nDwtXqQSwJUoUc6nJmgAZHbSA25TXXR5XNfmTNXE3Y4PcGx4alVEs5ihSOKhYg==;5:EW0yTd1eaGzhrZKgpj5sSqa/ROhj2mbuXuknVo1ur7PvwT1t9i5eWbus78Ma0OlYyscczTOriaXEq/bDgyVN2taTdB6AaubWPFmO6k43FI3vG9ZwzK77Az/H2eRUd3RfFJbzxNm1OYx145r8dlLxHhMBQT17WRpTOoV/CMs6EPh8/Qoa85OkID/29jwuUcPa/ChBQwfPoYdoCxct0ioBUg==;7:VSNVhX7k7hHDjoL/m13wlY/fgQQZtXNOVTf5xE+rB9f4Ejm2vmzCdUQ1usZLCEFhNXFI4cc6SPD28f7ldC9vMkC7T+fsns8C4o5dm/Tb8UvU4UAvAigZmY3NFhYYeZjxrPSlZQxTdXS50ChMezBwfg== x-ms-office365-filtering-correlation-id: 49468156-6f9f-489c-2ad7-08d685c1118f x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(4618075)(2017052603328)(7153060)(7193020);SRVR:AM6PR04MB4774; x-ms-traffictypediagnostic: AM6PR04MB4774: x-microsoft-antispam-prvs: x-forefront-prvs: 093290AD39 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(366004)(376002)(396003)(136003)(39860400002)(189003)(199004)(86362001)(2201001)(102836004)(4326008)(305945005)(186003)(478600001)(4744005)(26005)(7736002)(386003)(14444005)(76176011)(71200400001)(14454004)(25786009)(6506007)(446003)(53936002)(71190400001)(52116002)(1076003)(256004)(11346002)(7416002)(68736007)(81166006)(81156014)(8936002)(316002)(486006)(6436002)(2616005)(8676002)(110136005)(54906003)(3846002)(2501003)(6116002)(99286004)(2906002)(476003)(105586002)(97736004)(36756003)(50226002)(66066001)(6512007)(106356001)(6486002)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:AM6PR04MB4774;H:AM6PR04MB5781.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: rt+M4Erdp5UbxmM/G6Pn1Cz7OXGX01xaS/mFGDDAfPqwP2z85WtUzYLEKwJQkATnwb+uLde+zvLZ8bZ5yZpiMThPeq6Wz6cmNTdzaX/hn1frcf9NIbTgCiXXOWJzZv2IuJ4HsxnbgyL/EyNrXUYGIaZLnJRV1Z+wPb6GBcr1tATmVRiZ7dqy5Ug0n2iI43Xs4GvioAXY+mEvXlFQFlByRlfjKZl8vNA930KrNE/fjumKykI+k9q8xiitKpEZsngAcVG925xWLUS4f7mkz35APtv8reRZNvVbT4K+Igo/cfmfuyq8IhwwaL17Ee3Egk0rEVTYZQ723urM8PfaMGLsNU1TJ0ik6UW9HMLVi6zFpgFb8NkjuJCtC7zUXTRx/Zhq/ACnWV82ejoOK9gAIn7qTnwu9daHoEe6eVErXQbMfe4= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 49468156-6f9f-489c-2ad7-08d685c1118f X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Jan 2019 08:09:13.3186 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB4774 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hou Zhiqiang The inbound windows have different register set with outbound windows. This patch change the MEM inbound window to the first one. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian --- V3: - No change drivers/pci/controller/pcie-mobiveil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/pcie-mobiveil.c b/drivers/pci/controlle= r/pcie-mobiveil.c index df71c11b4810..e88afc792a5c 100644 --- a/drivers/pci/controller/pcie-mobiveil.c +++ b/drivers/pci/controller/pcie-mobiveil.c @@ -616,7 +616,7 @@ static int mobiveil_host_init(struct mobiveil_pcie *pci= e) CFG_WINDOW_TYPE, resource_size(pcie->ob_io_res)); =20 /* memory inbound translation window */ - program_ib_windows(pcie, WIN_NUM_1, 0, MEM_WINDOW_TYPE, IB_WIN_SIZE); + program_ib_windows(pcie, WIN_NUM_0, 0, MEM_WINDOW_TYPE, IB_WIN_SIZE); =20 /* Get the I/O and memory ranges from DT */ resource_list_for_each_entry(win, &pcie->resources) { --=20 2.17.1