Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp327431ybt; Mon, 6 Jul 2020 10:15:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAvUnMZ6uIQpIQNsOTm8nACEL539E+3CHD3W/w+PBWJgwQVWYgm2FFpCPmVcE+5hBGvewZ X-Received: by 2002:a17:906:82d4:: with SMTP id a20mr41336253ejy.165.1594055751115; Mon, 06 Jul 2020 10:15:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594055751; cv=none; d=google.com; s=arc-20160816; b=B3WCU2FEbG7emA/uBDrcC83KtVnRv1W8QJ+BLAnuZAkvlukvA12qiF69Tjfslu+1if ZYg+VZOcC4pPD07IVPk6RxKulEwV7bNWvYndEuGB10ycPUSeFy5oSdZywr0T4ShxtiDu ipsm7lnp/5ZpDUkzzKbwLR7EC85reM9Lv+x4Lg0UjloOvAi0qvzNZZDs0pidJORol+FY UNS0Gmz4uisjd1qO9G3TUenMVBX4jPFJEFljTMGhPxoquOnOhu5oFoT5OcZWOi95lKoy aXgK1Jro+HaaKg6x0zNp+jwPM4U06KQIV7e6VqGWpevYPuPRauLIp5cvJrEDmjfmu9eD YmcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:mime-version:message-id :date:subject:cc:to:from; bh=HXtWj3LVP+XSdF9JsC03QCj7zdWKkGYPzJ5wNbRbP04=; b=aTAEZQp47asEz2teAfgx9y4dof3stEemrM8Z55U8ea20VwqYkhXAMkWE5pXd8HLvWg QT6XNCblEJFzA3cKqxuEilI1WNLg9v3NOydIFog+geReOnVeZp0ocQRxpXbkH5IdJZIq 75aRN5GCzJwxWAiGAPX3NFcgvHJwMimCgTtARWL/HgPwIYl5JoVr1aEbha5AHVGlG9GO ldJMptBVsxCJgXN+6QCmvdRcYE9WnGoCHB+vCUC7HQXaS2dHKa41LKbAw2fE7icQXbtt kp56v0LrcDOM1CbbxmUNShC7Fmy7MJbwZW2wfs6xk5EHaKK+B49cY/9kvmIxwNDtmqxY xFsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=YVom8lFw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bz8si11826413ejc.744.2020.07.06.10.15.27; Mon, 06 Jul 2020 10:15:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=YVom8lFw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729626AbgGFRPH (ORCPT + 99 others); Mon, 6 Jul 2020 13:15:07 -0400 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:19335 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729386AbgGFRPG (ORCPT ); Mon, 6 Jul 2020 13:15:06 -0400 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Mon, 06 Jul 2020 10:14:12 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Mon, 06 Jul 2020 10:15:05 -0700 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Mon, 06 Jul 2020 10:15:05 -0700 Received: from HQMAIL101.nvidia.com (172.20.187.10) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 6 Jul 2020 17:15:01 +0000 Received: from rnnvemgw01.nvidia.com (10.128.109.123) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Mon, 6 Jul 2020 17:15:01 +0000 Received: from vidyas-desktop.nvidia.com (Not Verified[10.24.37.48]) by rnnvemgw01.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Mon, 06 Jul 2020 10:15:00 -0700 From: Vidya Sagar To: , , , CC: , , , , , , , , Subject: [PATCH] arm64: tegra: Re-order PCIe aperture mappings Date: Mon, 6 Jul 2020 22:44:54 +0530 Message-ID: <20200706171454.11316-1-vidyas@nvidia.com> X-Mailer: git-send-email 2.17.1 X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1594055652; bh=HXtWj3LVP+XSdF9JsC03QCj7zdWKkGYPzJ5wNbRbP04=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: X-NVConfidentiality:MIME-Version:Content-Type; b=YVom8lFwRwbSQMNkbudA/cWC5MN/0S7+zdRcwdGJ1OuevF+4RisPUDSC4mRGBCrcV eV+QVDai1UCGXXoes7efkoNEYUMCYlDmlNHwJytSosNfAilui5MFX/I+pSiIn4/vJ6 F/XInpd4v6Kmh8RbkVXXZBh8LOPXNTFjCIJ9nZqKuZhmkifxsNyxEuu309ceg43BUh 3uN7CXjWaY85UXKc9mfMsIMV9Bs02l9BrseP00Pp94h2i9PyFw7/YuzB2hsmkl7EvO nGngoIJ+n/9xnOM9u1Uex1jsemncSMKtL/4rn5yDBY3faUtyvls7VFsMN8g3uE05va asIr7B4gawhnA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Re-order Tegra194's PCIe aperture mappings to have IO window moved to 64-bit aperture and have the entire 32-bit aperture used for accessing the configuration space. This makes it to use the entire 32MB of the 32-bit aperture for ECAM purpose while booting through ACPI. Signed-off-by: Vidya Sagar --- arch/arm64/boot/dts/nvidia/tegra194.dtsi | 36 ++++++++++++------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/arch/arm64/boot/dts/nvidia/tegra194.dtsi b/arch/arm64/boot/dts/nvidia/tegra194.dtsi index 4bc187a4eacd..2b378fa06d19 100644 --- a/arch/arm64/boot/dts/nvidia/tegra194.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra194.dtsi @@ -1404,9 +1404,9 @@ nvidia,aspm-l0s-entrance-latency-us = <3>; bus-range = <0x0 0xff>; - ranges = <0x81000000 0x0 0x30100000 0x0 0x30100000 0x0 0x00100000 /* downstream I/O (1MB) */ - 0xc3000000 0x12 0x00000000 0x12 0x00000000 0x0 0x30000000 /* prefetchable memory (768MB) */ - 0x82000000 0x0 0x40000000 0x12 0x30000000 0x0 0x10000000>; /* non-prefetchable memory (256MB) */ + ranges = <0xc3000000 0x12 0x00000000 0x12 0x00000000 0x0 0x30000000 /* prefetchable memory (768MB) */ + 0x82000000 0x00 0x40000000 0x12 0x30000000 0x0 0x0fff0000 /* non-prefetchable memory (256MB - 64KB) */ + 0x81000000 0x00 0x00000000 0x12 0x3fff0000 0x0 0x00010000>; /* downstream I/O (64KB) */ }; pcie@14120000 { @@ -1449,9 +1449,9 @@ nvidia,aspm-l0s-entrance-latency-us = <3>; bus-range = <0x0 0xff>; - ranges = <0x81000000 0x0 0x32100000 0x0 0x32100000 0x0 0x00100000 /* downstream I/O (1MB) */ - 0xc3000000 0x12 0x40000000 0x12 0x40000000 0x0 0x30000000 /* prefetchable memory (768MB) */ - 0x82000000 0x0 0x40000000 0x12 0x70000000 0x0 0x10000000>; /* non-prefetchable memory (256MB) */ + ranges = <0xc3000000 0x12 0x40000000 0x12 0x40000000 0x0 0x30000000 /* prefetchable memory (768MB) */ + 0x82000000 0x00 0x40000000 0x12 0x70000000 0x0 0x0fff0000 /* non-prefetchable memory (256MB - 64KB) */ + 0x81000000 0x00 0x00000000 0x12 0x7fff0000 0x0 0x00010000>; /* downstream I/O (64KB) */ }; pcie@14140000 { @@ -1494,9 +1494,9 @@ nvidia,aspm-l0s-entrance-latency-us = <3>; bus-range = <0x0 0xff>; - ranges = <0x81000000 0x0 0x34100000 0x0 0x34100000 0x0 0x00100000 /* downstream I/O (1MB) */ - 0xc3000000 0x12 0x80000000 0x12 0x80000000 0x0 0x30000000 /* prefetchable memory (768MB) */ - 0x82000000 0x0 0x40000000 0x12 0xb0000000 0x0 0x10000000>; /* non-prefetchable memory (256MB) */ + ranges = <0xc3000000 0x12 0x80000000 0x12 0x80000000 0x0 0x30000000 /* prefetchable memory (768MB) */ + 0x82000000 0x00 0x40000000 0x12 0xb0000000 0x0 0x0fff0000 /* non-prefetchable memory (256MB - 64KB) */ + 0x81000000 0x00 0x00000000 0x12 0xbfff0000 0x0 0x00010000>; /* downstream I/O (64KB) */ }; pcie@14160000 { @@ -1539,9 +1539,9 @@ nvidia,aspm-l0s-entrance-latency-us = <3>; bus-range = <0x0 0xff>; - ranges = <0x81000000 0x0 0x36100000 0x0 0x36100000 0x0 0x00100000 /* downstream I/O (1MB) */ - 0xc3000000 0x14 0x00000000 0x14 0x00000000 0x3 0x40000000 /* prefetchable memory (13GB) */ - 0x82000000 0x0 0x40000000 0x17 0x40000000 0x0 0xc0000000>; /* non-prefetchable memory (3GB) */ + ranges = <0xc3000000 0x14 0x00000000 0x14 0x00000000 0x3 0x40000000 /* prefetchable memory (13GB) */ + 0x82000000 0x00 0x40000000 0x17 0x40000000 0x0 0xbfff0000 /* non-prefetchable memory (3GB - 64KB) */ + 0x81000000 0x00 0x00000000 0x17 0xffff0000 0x0 0x00010000>; /* downstream I/O (64KB) */ }; pcie@14180000 { @@ -1584,9 +1584,9 @@ nvidia,aspm-l0s-entrance-latency-us = <3>; bus-range = <0x0 0xff>; - ranges = <0x81000000 0x0 0x38100000 0x0 0x38100000 0x0 0x00100000 /* downstream I/O (1MB) */ - 0xc3000000 0x18 0x00000000 0x18 0x00000000 0x3 0x40000000 /* prefetchable memory (13GB) */ - 0x82000000 0x0 0x40000000 0x1b 0x40000000 0x0 0xc0000000>; /* non-prefetchable memory (3GB) */ + ranges = <0xc3000000 0x18 0x00000000 0x18 0x00000000 0x3 0x40000000 /* prefetchable memory (13GB) */ + 0x82000000 0x00 0x40000000 0x1b 0x40000000 0x0 0xbfff0000 /* non-prefetchable memory (3GB - 64KB) */ + 0x81000000 0x00 0x00000000 0x1b 0xffff0000 0x0 0x00010000>; /* downstream I/O (64KB) */ }; pcie@141a0000 { @@ -1633,9 +1633,9 @@ nvidia,aspm-l0s-entrance-latency-us = <3>; bus-range = <0x0 0xff>; - ranges = <0x81000000 0x0 0x3a100000 0x0 0x3a100000 0x0 0x00100000 /* downstream I/O (1MB) */ - 0xc3000000 0x1c 0x00000000 0x1c 0x00000000 0x3 0x40000000 /* prefetchable memory (13GB) */ - 0x82000000 0x0 0x40000000 0x1f 0x40000000 0x0 0xc0000000>; /* non-prefetchable memory (3GB) */ + ranges = <0xc3000000 0x1c 0x00000000 0x1c 0x00000000 0x3 0x40000000 /* prefetchable memory (13GB) */ + 0x82000000 0x00 0x40000000 0x1f 0x40000000 0x0 0xbfff0000 /* non-prefetchable memory (3GB - 64KB) */ + 0x81000000 0x00 0x00000000 0x1f 0xffff0000 0x0 0x00010000>; /* downstream I/O (64KB) */ }; pcie_ep@14160000 { -- 2.17.1