From patchwork Tue Feb 14 14:05:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 13140299 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6B7B1C05027 for ; Tue, 14 Feb 2023 14:25:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :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=hR2JkOhShPsdU7jJxh+Dos5xmK24T7R9jY0odu7UvOc=; b=EDQED9WsFi+x68 IUzXuwDVHFIrpElXmGUpzHTQZiERRtSrngGKhpUCzTqh9OxWcDWGLQNZWtqmOTRDpp7s7qB4Nqkil 7ZrKnnIt7FQARzxhsXq2sz6oA0WberqBQox42VRDsH0+LBMiMhs8rcG7tcxvtH+pF/KtnR9awE/D+ FbuyzzlCl0kKrPiDnSWAcIP+BPZTHXTa7jxo+uMV8XKCTRlVXZUYiSvGKdhLDbzFojp5ixQPJ1701 1C1JWBF2dEzzxclfyF0j+eDl1v+wru+qd+7kwdKZN78xMn8ftXCV3ykP1C0r2mtVbL3+2hSilv+u0 X9yykAhon99ZWrHsT3CA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pRwEm-00285K-QV; Tue, 14 Feb 2023 14:24:53 +0000 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pRvwT-001ykZ-8R for linux-arm-kernel@lists.infradead.org; Tue, 14 Feb 2023 14:05:58 +0000 Received: by mail-ej1-x631.google.com with SMTP id sa10so40300731ejc.9 for ; Tue, 14 Feb 2023 06:05:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=vp3AulvepOS2fc3bpY733hiALNG2cjKxWZTuQcyLEOQ=; b=GU2cGUNNiOzKAeuObf42lev8Vxh0jwMMuuii/RwqrZDW2hcNVA4hIYqgC45oM897XB kA1s5xXyZyoL/vR/dJIMcjnENLpPnAl32jqxDiDbs29BqSkJncLi8gHA/NRTNBIIize9 cLkPk8OeDhlPAEMvokQUdU+gcwTfk1031SOIIvPtunX3X98JB4BIO1G4Tbe/ayGwFQLU 0xiajI7bfbl0lTxFsxitjjeQ3/4BLD0bYXX1y5A8e/IA+N/JXWLktukoTLfMKu0bG/7k W1XgmPn/5cA6g7h+dFnAB64PGwX8PBxdm9lTCf/T/z9pZYmafVk0mPbxRxcasFjX/HXj QPbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vp3AulvepOS2fc3bpY733hiALNG2cjKxWZTuQcyLEOQ=; b=nZHLUugSVMJ2+VcVJylz7byWO0qAoOaaqKl1fbZfnQraLLMouPSAgpBvPHgXLUlJBG 25aJidLhjNjzE9AAxXP9W+F1Wx5/2ypfkCB9I8V/U/9emXBA+clfT5JXP0qIrH839F2v LjLPU1vhixoTnTVdON+im+Ezxh9TRRDxroDsawC993d5q0D30z1jkdnLkkIMGTMST4Wi MBPMJe18rjHdzrYShB7Pt4EINq0aLB2fxaFwHLCRhH6BNBtdAhyWncu0mR4vfzsx67tz 8dpelOO4PgLPwP8kCCCVmDv3eMPUEjNbu02vIxNCdEmjz7GlnZIiOptYMGmZrhHIf3CB hRJg== X-Gm-Message-State: AO0yUKUyOOnjTLE1xrCzjAXGleKgVGnz+/pV5H1YzbJea9o3U+DXu9Ud 2jumg6wN55Vf0rH/COQP4TI= X-Google-Smtp-Source: AK7set9LYE/RW4SuCmMRdrbul2Vc/g/xuQeHhXyRde+pIzMMTcuUzgccr4Ma+y3Q4TpCO1ABHOCNRA== X-Received: by 2002:a17:906:bcee:b0:8af:391e:e4c4 with SMTP id op14-20020a170906bcee00b008af391ee4c4mr2488809ejb.41.1676383553065; Tue, 14 Feb 2023 06:05:53 -0800 (PST) Received: from localhost (p200300e41f201d00f22f74fffe1f3a53.dip0.t-ipconnect.de. [2003:e4:1f20:1d00:f22f:74ff:fe1f:3a53]) by smtp.gmail.com with ESMTPSA id y21-20020a1709060a9500b008b1315bff9fsm764771ejf.148.2023.02.14.06.05.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Feb 2023 06:05:52 -0800 (PST) From: Thierry Reding To: Thierry Reding Cc: Jon Hunter , linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] arm64: tegra: Bump CBB ranges property on Tegra194 and Tegra234 Date: Tue, 14 Feb 2023 15:05:49 +0100 Message-Id: <20230214140549.3340395-1-thierry.reding@gmail.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230214_060557_378109_BFD79B1D X-CRM114-Status: GOOD ( 13.52 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Thierry Reding Both Xavier (Tegra194) and Orin (Tegra234) support a 40-bit address map, so bump the CBB ranges property to cover all of the 1 TiB address space. This fixes an issue where some of the PCIe regions could not be remapped because of they were outside the memory specified by the CBB's ranges property. Reported-by: Jonathan Hunter Signed-off-by: Thierry Reding --- arch/arm64/boot/dts/nvidia/tegra194.dtsi | 2 +- arch/arm64/boot/dts/nvidia/tegra234.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/nvidia/tegra194.dtsi b/arch/arm64/boot/dts/nvidia/tegra194.dtsi index 133dbe5b429d..7096b999b33f 100644 --- a/arch/arm64/boot/dts/nvidia/tegra194.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra194.dtsi @@ -22,7 +22,7 @@ bus@0 { #address-cells = <2>; #size-cells = <2>; - ranges = <0x0 0x0 0x0 0x0 0x0 0x40000000>; + ranges = <0x0 0x0 0x0 0x0 0x100 0x0>; apbmisc: misc@100000 { compatible = "nvidia,tegra194-misc"; diff --git a/arch/arm64/boot/dts/nvidia/tegra234.dtsi b/arch/arm64/boot/dts/nvidia/tegra234.dtsi index 8fe8eda7654d..f1748cff8a33 100644 --- a/arch/arm64/boot/dts/nvidia/tegra234.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra234.dtsi @@ -20,7 +20,7 @@ bus@0 { #address-cells = <2>; #size-cells = <2>; - ranges = <0x0 0x0 0x0 0x0 0x0 0x40000000>; + ranges = <0x0 0x0 0x0 0x0 0x100 0x0>; misc@100000 { compatible = "nvidia,tegra234-misc";