Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1845012imu; Tue, 6 Nov 2018 05:21:08 -0800 (PST) X-Google-Smtp-Source: AJdET5ceN08L1hhLqjLf8H1IGGHWfFAK86KujtCqNL/n05lkXf3/XXxhUiVgSoeXkMyb5iTa5Jce X-Received: by 2002:a17:902:2702:: with SMTP id c2-v6mr26392870plb.314.1541510468306; Tue, 06 Nov 2018 05:21:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541510468; cv=none; d=google.com; s=arc-20160816; b=o4gPNGfqsOzr10lC0byeXJlEQuyQsAYOEsx24itbZo2pOWB0yHerIyKACLtyUZ2CYs EJjbZ4PpQTKG5LOlgoITcFdFkcK4BMo1Vt14Bmb9ch4aN64MYls5PuCRsgF/qNUU+YWO yhqVngX6oBYw9Uqy8HoxZK5uyCrsNK3MwoYY9XVsIumiZlA0LTQKELOQGqeOEmCDdrj7 akXWikbvqKQAew44ALjj9aPN9G8K86boa+4g8YylFkQWnfMl1e2Nq2SoJMYf/XhAkJyI d8/ZZHkkTWiImYLudUf9QtJSyUSYpmyCuOsw2o7z/9t4Vb5/FSn2Swg4Z3E2O2HxHCs4 WHmQ== 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 :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=LyBCotOB/4UBwLRak7AHF0ZaJZcy4ZO/gV3QOKviEd0=; b=iXQlmCFzhRqzkePpCh58/0G7DFsmDkJ9SrtJQ81GZIFJdHRyQ6EKWIzKXUOi18AG8X 40cif8FEZJRr4btiBW4M+latR7JKZSys564M6ilQWN1Ar6cSwgjIrwSnNsjX9FpE17/X 1Il7o1+QghdhyFnZI1Of+ORg9Aw85x9wQ5cUuCOHVOgdNr03v6bbAq5NarD0lGpUZhf1 3bY3xZfjVwcrAKhQsuLBYxoaAwTuNyIdWj1JOiYX9QiUKvWryOFL+7ERcyXnWQ+pcVzd dlEOFfxc81qPuQ9vHWMtKfZfF0ciB0L78vGz5Tuh8dpth4Msqz5+SfIXePVYPAbRjdvB MTAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=t3batCTk; 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 v14-v6si21723469pgt.78.2018.11.06.05.20.52; Tue, 06 Nov 2018 05:21:08 -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=t3batCTk; 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 S2388359AbeKFWpM (ORCPT + 99 others); Tue, 6 Nov 2018 17:45:12 -0500 Received: from mail-db5eur01on0042.outbound.protection.outlook.com ([104.47.2.42]:33016 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388346AbeKFWpM (ORCPT ); Tue, 6 Nov 2018 17:45:12 -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=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" CC: Mingkai Hu , "M.h. Lian" , Xiaowei Bao , "Z.q. Hou" 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 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: 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 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 --- 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