From patchwork Tue Dec 18 04:19:20 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: 10734721 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 53EE714E2 for ; Tue, 18 Dec 2018 04:19:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 416E62A14F for ; Tue, 18 Dec 2018 04:19:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 350A12A155; Tue, 18 Dec 2018 04:19:44 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 B0DDA2A14F for ; Tue, 18 Dec 2018 04:19:43 +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: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:In-Reply-To:References: List-Owner; bh=TO79sLNEQ92Dwd5xIngQGoNL58FLhEeNWtRsctK/xvg=; b=qgQGWkYecrBwj0 LdsIl+tpmFJCSW9x+i42Wvqqof7qpajVrgUUxwh9uj6H1OrYsJoY11vX1AGuSDdHmJb0oY87wV6sN mn0HByj8ezBQpdWK8PS0XLVF9PysmDgc4dRkCRlz4FyJuBO8XqcI6joXtZV7kmZC1DeEWIz8+TPvY DSjWuFF33Mjvvo62KPq7LzPztrvkNPXrZ3F0S9dqYNw2d0NGky+Vms8pWMAaakObNnc9CXNeZZlz7 o/rdTmQU6GpkIU2DVAzTlRuK8eBK6YO33IW7ksSLF33jd9db6a/IT5wOYRj4PN0qKPr+6T3zXmUbr XK/Oi7vewCHhYzGXaKfw==; 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 1gZ6r6-0006DL-IL; Tue, 18 Dec 2018 04:19:40 +0000 Received: from mail-eopbgr60064.outbound.protection.outlook.com ([40.107.6.64] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZ6r3-0006BQ-6d for linux-arm-kernel@lists.infradead.org; Tue, 18 Dec 2018 04:19:38 +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=hzI/nCuz55bqfsFMtFiv9Uqea3bAyZwK7ksZppW6xnw=; b=nHe/d31Q38a+rt4m1MNGAUBs9Xc4KQvob/4D2GfUALDYrmLmXDFRveB7XXJriXZ5JRoLu34geHvIC++xCjCqi0F4TUbVdKR8Qv6AOSl0UzvAutFUT6Fa2EyRZeze+7TRvlx+Zuc1r5xNqlokZ1sca+guIDtPRT6MhnUBUApQJFU= Received: from AM6PR04MB5781.eurprd04.prod.outlook.com (20.179.2.80) by AM6PR04MB4102.eurprd04.prod.outlook.com (52.135.167.160) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1425.20; Tue, 18 Dec 2018 04:19:20 +0000 Received: from AM6PR04MB5781.eurprd04.prod.outlook.com ([fe80::4d2e:cf15:fcf7:56b2]) by AM6PR04MB5781.eurprd04.prod.outlook.com ([fe80::4d2e:cf15:fcf7:56b2%5]) with mapi id 15.20.1446.015; Tue, 18 Dec 2018 04:19:20 +0000 From: "Z.q. Hou" To: "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "shawnguo@kernel.org" , "robh+dt@kernel.org" , "bhelgaas@google.com" , "lorenzo.pieralisi@arm.com" , "jingoohan1@gmail.com" , "gustavo.pimentel@synopsys.com" , Leo Li Subject: [PATCHv3 0/5] PCI: dwc: add prefetchable memory range support Thread-Topic: [PATCHv3 0/5] PCI: dwc: add prefetchable memory range support Thread-Index: AQHUlojZXjFwizzZ+EOqT/t43p0paw== Date: Tue, 18 Dec 2018 04:19:20 +0000 Message-ID: <20181218041956.41809-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: HK0PR03CA0075.apcprd03.prod.outlook.com (2603:1096:203:72::15) To AM6PR04MB5781.eurprd04.prod.outlook.com (2603:10a6:20b:aa::16) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.73] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM6PR04MB4102; 6:gNkM5LH9GKoBBDq0J84EQXGydUF8UA3XgUU8xQG4WIy/moRXcRVsjekf+iIMzsscp64ma+Soy6Wb/RzvQRp5E+Lvewanuwj9fxk9TvS10IgSm5Q+IrvKrjwboRx6W9z+ijHluRNfiYRtB5Vx6BBNYiRKQqm+jBRQ8K+s30v1ADybfqux3y2EullB9XpgXwpvr/VddwrbPcHqmEZJOFuxPCDjlIGy3KktQvmuLG14hDCzGoWbzq10sUzbxwYZd2ZXIcsoypICkvtM5s2B5t3N8ThjfwI7p3W+J5gBO/lkI9UzkvVEI7NQjcotV2rfZtmU9Eo2SqmAUFoBi7+dGmBuo5kJt2R5UkqTZxiH/b+OxPr+lMRKCqu2IAREj4LwwED/L40a9ZoORd34RFQFkzLzHURoLx0tuTNg1877RwV5UgUg0CaaUbVDlHxeIvNpaD164vQ+mK7noBYhQDbD6+C7dg==; 5:cbyPpqoDTltITp660hUTerdYNo+O7fnuBgiF3rnjE4ftVDWa1SsUCE5I+QVqLxoVs8cJXKksDL5C1ZPdMBfsMbluw77mjGqX8aIfugyWEPZmtkCZMjbF0OXHAi9HcE9MSbi08pvb4Okg5yt3eqZQWyglfBrCMP0Vy6yOop67pb4=; 7:sthorJED0sVTevEFpl39dW4yhAJYo6+7YYPCbe6MlwpwmfzJ0qfwnI/fuIpibkh3h5jW5Ha9NF/KJZQkXdxv1hBPqj/L7af6hryx2AGV0Ep6AidLxUaYBMPZPv7Giv2A41oK9TZzMjX9rTQ5ZjYEOA== x-ms-office365-filtering-correlation-id: f5871973-7971-4aa3-08ad-08d6649ffb60 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM6PR04MB4102; x-ms-traffictypediagnostic: AM6PR04MB4102: authentication-results: spf=none (sender IP is ) smtp.mailfrom=zhiqiang.hou@nxp.com; x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(3230021)(999002)(5005020)(6040522)(2401047)(8121501046)(93006095)(93001095)(3231475)(944501520)(52105112)(3002001)(10201501046)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123558120)(20161123560045)(201708071742011)(7699051)(76991095); SRVR:AM6PR04MB4102; BCL:0; PCL:0; RULEID:; SRVR:AM6PR04MB4102; x-forefront-prvs: 08902E536D x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(366004)(396003)(136003)(346002)(376002)(199004)(189003)(52116002)(7736002)(97736004)(7416002)(68736007)(25786009)(4326008)(36756003)(316002)(106356001)(102836004)(6636002)(105586002)(99286004)(2616005)(71200400001)(486006)(305945005)(186003)(6506007)(386003)(110136005)(54906003)(6486002)(1076003)(5660300001)(71190400001)(476003)(26005)(2501003)(2906002)(2201001)(86362001)(6436002)(256004)(3846002)(6116002)(39060400002)(81166006)(66066001)(8936002)(81156014)(8676002)(478600001)(6512007)(53936002)(14454004)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR04MB4102; H:AM6PR04MB5781.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-microsoft-antispam-message-info: qkaWw/q90hSnwmozUg15vzOC9++v+ktdFGX5R4oRYTUK2nS/AyKts4Fz39iWyfthflUz1rhdlAY+QxDiyHzgXIPUuQy7zDtChWwrxk5Bf63X5eKvmM5P3cpeWH0ue4AjDhbe4g+Eg2k9nfRrxlc7VXmKkqR7S1/mVA002+/tVEtIYYb2tZxZF3REurn8a8R0jJLAbiUZIIPv8dR1wXpFbLEozTA9AWav8mJCKW0e/wc40WVOfARKgN95wwI+uMK75VhmnDDLCQ9xUlY+r5yBfcP6mwX0FVw4Lr0DRalP1tAZFx8WmBnUzLdxkcuMxYqs spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f5871973-7971-4aa3-08ad-08d6649ffb60 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Dec 2018 04:19:20.6411 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB4102 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181217_201937_244989_8591A21F X-CRM114-Status: GOOD ( 10.38 ) 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: Roy Zang , "Z.q. Hou" , Mingkai Hu , "M.h. Lian" 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 This patch set is to add prefetchable memory range support, patch 5/5. Patch 1/5 and 2/5 are to initialize the number of viewport for layerscape PCIe. BTW, fix 2 bugs, see patch 3/5 and 4/5. Hou Zhiqiang (5): ARM: dts: ls1021a: add num-viewport property for PCIe DT nodes arm64: dts: layerscape: add num-viewport property for PCIe DT nodes PCI: dwc: fix potential memory leak PCI: dwc: fix 4GiB outbound window size truncated to zero issue PCI: dwc: add prefetchable memory range support arch/arm/boot/dts/ls1021a.dtsi | 2 + .../arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 1 + .../arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 3 + .../arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 3 + .../arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 3 + .../arm64/boot/dts/freescale/fsl-ls208xa.dtsi | 4 + .../pci/controller/dwc/pcie-designware-host.c | 135 +++++++++++++----- drivers/pci/controller/dwc/pcie-designware.c | 4 +- drivers/pci/controller/dwc/pcie-designware.h | 11 +- 9 files changed, 128 insertions(+), 38 deletions(-)