From patchwork Tue Nov 6 13:19:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Z.Q. Hou" X-Patchwork-Id: 10670371 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3C5E013AD for ; Tue, 6 Nov 2018 13:22:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2AFC92A3E1 for ; Tue, 6 Nov 2018 13:22:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1E9B42A3E5; Tue, 6 Nov 2018 13:22:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AD9C42A3E1 for ; Tue, 6 Nov 2018 13:22:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Y3iwMh2ZXHraJ3zjWxa4HooX/5W8/WZT5S2kGjy4p78=; b=VfeNon6iFeZ1Hb bber5iquOd4NHGADfpuHBvqI6iGQ2OMGAbZVH3qzLPCwwAMTq0j34OMh1lFURyEkP1sLhre4smkq2 J7APhn8BkmTs9pm5Y53hjTw3rGvtLwHdVKjnfup20hNllcctM3pCrvb1VKvN2tOpX48pbkh6lwphC LT8THgWsqINZBdXhjK2xMvtytpTerAgCXepCkQSjQpMgsy0fHGJnpuIxJPG8AO3goQuT88BizR4wc V7QBt8xC/z4dZJA+ghgBjD2rg/pLnpBZZauSV9cwZiRSZKTMK0j+eC6ZyKh2LCeTBXKP6Xm+ilDc2 DzJ5uHUbaUOUWHVpP5fQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gK1JZ-000465-KD; Tue, 06 Nov 2018 13:22:41 +0000 Received: from mail-db5eur01on0610.outbound.protection.outlook.com ([2a01:111:f400:fe02::610] helo=EUR01-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gK1HP-00012p-Ky for linux-arm-kernel@lists.infradead.org; Tue, 06 Nov 2018 13:20:30 +0000 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=LyBCotOB/4UBwLRak7AHF0ZaJZcy4ZO/gV3QOKviEd0=; b=t3batCTkmNXYjgemRl1LYAewSKEjEs1LhYPwAslLrHlpZ7MKEH39cFLvliqBvdezhv4O5Agojj2rN4WKGo0DvMs4rWuqMxH9PFaYSSRVmxKb1lbF7no2xfBG8+yy4eiNkPtyFeBz2d8T5Jvf+pk7bSLqTjF6pCSMkAWSqOgQT+I= Received: from DB5PR04MB1221.eurprd04.prod.outlook.com (10.162.155.27) by DB5PR04MB2119.eurprd04.prod.outlook.com (10.166.172.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.28; Tue, 6 Nov 2018 13:19:57 +0000 Received: from DB5PR04MB1221.eurprd04.prod.outlook.com ([fe80::6c36:f4cb:26c2:e8cb]) by DB5PR04MB1221.eurprd04.prod.outlook.com ([fe80::6c36:f4cb:26c2:e8cb%2]) with mapi id 15.20.1273.035; Tue, 6 Nov 2018 13:19:57 +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" Subject: [PATCH 08/23] PCI: mobiveil: use the 1st inbound window for MEM inbound transactions Thread-Topic: [PATCH 08/23] PCI: mobiveil: use the 1st inbound window for MEM inbound transactions Thread-Index: AQHUddNpdXj5L9iawkiutXzPzwWf9A== Date: Tue, 6 Nov 2018 13:19:57 +0000 Message-ID: <20181106131807.29951-9-Zhiqiang.Hou@nxp.com> References: <20181106131807.29951-1-Zhiqiang.Hou@nxp.com> In-Reply-To: <20181106131807.29951-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: HK0PR03CA0008.apcprd03.prod.outlook.com (2603:1096:203:2e::20) To DB5PR04MB1221.eurprd04.prod.outlook.com (2a01:111:e400:51c2::27) authentication-results: spf=none (sender IP is ) smtp.mailfrom=zhiqiang.hou@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.73] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB5PR04MB2119; 6:zAlVBRVBJiJ3EJ3y7SX2nqdOJne8LEP0gsuDfeglcf1+yE+DuT3kn6pgqzZ0xBoghqQal464kEVoOY2AkIdS7pR4ZNy7HUEUOfOvny1tW+TLVf1O9zzl1rOFMC8R4QCEJWK5ZIU5ly/xoB5W61e28Ds6qaS9so+y1bP4SZoZqiteoMFGMyZKfCM+rJcDDyFduCdIGidHWCIS9wzTgPV3aklZzC6BEcWkR/m7onQfUg1rPZarsYW5oNadWMpqJOR0MOw5YBku24w4KLGtyO9+e9KRtFQULCZM1KGjvMjsWx5l5VmD4qGaVl27YG0cPlFYmvWmc1oezS2nKU/p1wGqPA+ZXBKXFH5Xjr/VnBGNQ/s+zDVnlVkZ54zZzdbsYRr6wQo/rIzPrnp1p09icQg0MqhhGBmIswze3HS6hxFsa93gR8CDDqNCJJTuDEH9UXhVdG3DBWzqzGVEYEey+tmK7A==; 5:L9I4PeE+uLIjufaGxO48gWCPlegreotOpP+MUdGTKhnnktIJwAMTLhaHQzBGfQ0JyZAKf4g5B1OGz9zBEvZZcbaSpJuyDDiyihuy7VWrcAj+sEvu84Qw1atvFrod1yrYcB9XNoRpYMVUQ4SmjdAdBFMOl1ASpzxCoLEUch19laY=; 7:HyRLDW6026r1MhcIItLiJOkAH7KZeVP06kMWCfEcwGBqau1jaTTP0ODwrIfU3/USmr28jOclxf2BytQcO0gjqrdvKvQWJ2plksWc2HwMRlhEf/4JpN8w3IRKlRdtokXX9zYqF3OZ7CfEt9sdhJRHHg== x-ms-office365-filtering-correlation-id: c696d1ab-4eef-40fb-1ef0-08d643ea8be4 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:DB5PR04MB2119; x-ms-traffictypediagnostic: DB5PR04MB2119: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(185117386973197); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231382)(944501410)(52105095)(10201501046)(3002001)(6055026)(148016)(149066)(150057)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(201708071742011)(7699051)(76991095); SRVR:DB5PR04MB2119; BCL:0; PCL:0; RULEID:; SRVR:DB5PR04MB2119; x-forefront-prvs: 0848C1A6AA x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(376002)(396003)(136003)(39860400002)(366004)(189003)(199004)(81156014)(99286004)(2201001)(8936002)(86362001)(6486002)(68736007)(6436002)(5660300001)(478600001)(53936002)(6512007)(4326008)(25786009)(36756003)(14454004)(54906003)(186003)(316002)(110136005)(2906002)(2900100001)(1076002)(3846002)(6116002)(81166006)(8676002)(7416002)(256004)(14444005)(446003)(11346002)(486006)(476003)(2616005)(7736002)(305945005)(71190400001)(71200400001)(66066001)(97736004)(76176011)(52116002)(102836004)(106356001)(26005)(2501003)(105586002)(386003)(6506007)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:DB5PR04MB2119; H:DB5PR04MB1221.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-microsoft-antispam-message-info: o3ny4DSrn8DdYN0DVyY2QGtrbXAvVc9FzUvtRXdEZVXCxw9IcAPJh0m2VnVYqpNScp9hW0Xl+cbXHXRCa3ISBBsoOF//86F2z9V+LMokF9oxXJLw1YYao8XNBloM7AGj4qD1O7uItbgA3TFS37ZMOsv/Nt+760EX028wwQVxhetdvM0rR7QDturfkrByZt+fOYLu3OgWm5i1T89biGAAvXUw76rcol7Tcx9XNQqXgoQGn4BUPgew+jh5rg/bNNLFMB50PsOFKW5lPtzXrPoQh1MPOEkmGP27guQXCFref+NpE+noQx2B4uecmrldPfSyDPL/H3qEFVtPSlD3VAs5jJ+5c4poN0GKVKbT0SpBqx4= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c696d1ab-4eef-40fb-1ef0-08d643ea8be4 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Nov 2018 13:19:57.3629 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR04MB2119 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181106_052027_720301_C0D5A800 X-CRM114-Status: GOOD ( 14.77 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "M.h. Lian" , "Z.q. Hou" , Xiaowei Bao , Mingkai Hu Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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/controller/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 *pcie) CFG_WINDOW_TYPE, resource_size(pcie->ob_io_res)); /* 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); /* Get the I/O and memory ranges from DT */ resource_list_for_each_entry(win, &pcie->resources) {