From patchwork Tue Feb 28 16:47:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 657903 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 808F3C7EE30 for ; Tue, 28 Feb 2023 16:49:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229903AbjB1QtK (ORCPT ); Tue, 28 Feb 2023 11:49:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229845AbjB1QtH (ORCPT ); Tue, 28 Feb 2023 11:49:07 -0500 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C20D81D926 for ; Tue, 28 Feb 2023 08:48:33 -0800 (PST) Received: by mail-pj1-x102e.google.com with SMTP id x20-20020a17090a8a9400b00233ba727724so1986999pjn.1 for ; Tue, 28 Feb 2023 08:48:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=TSam4VbhOsjeJo0NIo+Ag2QMw9mjy0Qu1lNaBB69VmM=; b=VlrDwcjfd6OGvzbjaXfRrW1QV8ufKg3mXTJwI2T1knFugZkp1hUoL+TZRA+1/2zCEz HXvaewIWLV0Bd6elGrgIl+spdqmxDjnmJmeCMnvt4qwT5xnWkAZWXRcYDueTV3UqR15L viihSguOyTg2+I94EvjD2sqPugp9sLhQ7663jSCTcEw/VQxC9xxfG1hH2KiA6CYgg3ED yHMzU68r6MM0CKGnYHyimkUru1e6pcGQtT65K6n3whukZQYao5ICW83SKCHvQzK+ioOj UTE1CZc6E3F0FlJ7gihMwvesdoNc+11GVGQSrR1r60YSGwmLfQg/RmN5H8PvnJEbKSN4 +41w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TSam4VbhOsjeJo0NIo+Ag2QMw9mjy0Qu1lNaBB69VmM=; b=1PJg8xflOd4U1Ocp/jNvKtKfoKsLKFqdLuLe44lp0eK2kP9qDXeghyfiR27dFHO3O2 9R+ky8h0HNfL9nS20DnT2sjfc3Dne2Z5ywKd6iec9MSlz8WLFxnPmy1kGO/VtElFPsok 8tZkyHYPPZebeOgfAFDzlrKnKzY7V9XA60bKWZ6pNpaVWhYmAL5GzM8Th7TNtLNFUN8N AQ/lODJTNE0vy+eXdBDoMeHNVw8DlVT4ZzF2UujNffdhEDsmj/FZeJLb/3nd/P+F5Z1c GSSWHbp2kaE+9/rivvMd727yrGm3+FsNYCHf5gxB460pyeoZlJtG9xMmID9bINAIHxSv F/3g== X-Gm-Message-State: AO0yUKU5KFV6mP1KkKRH7CEShwfxwjdeyySFEqWQWx7MwQ6LBInNPFbp TUtPsjwjiEOpeIDfZTO1/kjR X-Google-Smtp-Source: AK7set+Z617HWx2PfAxLlytKtd90pYSM/Lvh31pLOIbMolGWNaR/bZoJapngHaECyUsZK0WI4b6h6A== X-Received: by 2002:a17:90b:4ad1:b0:234:1a60:a6b0 with SMTP id mh17-20020a17090b4ad100b002341a60a6b0mr4094464pjb.34.1677602912457; Tue, 28 Feb 2023 08:48:32 -0800 (PST) Received: from localhost.localdomain ([103.197.115.185]) by smtp.gmail.com with ESMTPSA id z11-20020a6552cb000000b00476dc914262sm5908792pgp.1.2023.02.28.08.48.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 08:48:32 -0800 (PST) From: Manivannan Sadhasivam To: andersson@kernel.org Cc: konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@arndb.de, Manivannan Sadhasivam Subject: [PATCH 07/16] arm64: dts: qcom: msm8996: Fix the PCI I/O port range Date: Tue, 28 Feb 2023 22:17:43 +0530 Message-Id: <20230228164752.55682-8-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230228164752.55682-1-manivannan.sadhasivam@linaro.org> References: <20230228164752.55682-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org For 1MiB of the I/O region, the I/O ports of the legacy PCI devices are located in the range of 0x0 to 0x100000. Hence, fix the bogus PCI addresses (0x0c200000, 0x0d200000, 0x0e200000) specified in the ranges property for I/O region. While at it, let's also align the entries. Fixes: ed965ef89227 ("arm64: dts: qcom: msm8996: add support to pcie") Reported-by: Arnd Bergmann Link: https://lore.kernel.org/linux-arm-msm/7c5dfa87-41df-4ba7-b0e4-72c8386402a8@app.fastmail.com/ Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index 905678e7175d..66af9526c98b 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -1851,8 +1851,8 @@ pcie0: pcie@600000 { #address-cells = <3>; #size-cells = <2>; - ranges = <0x01000000 0x0 0x0c200000 0x0c200000 0x0 0x100000>, - <0x02000000 0x0 0x0c300000 0x0c300000 0x0 0xd00000>; + ranges = <0x01000000 0x0 0x00000000 0x0c200000 0x0 0x100000>, + <0x02000000 0x0 0x0c300000 0x0c300000 0x0 0xd00000>; device_type = "pci"; @@ -1905,8 +1905,8 @@ pcie1: pcie@608000 { #address-cells = <3>; #size-cells = <2>; - ranges = <0x01000000 0x0 0x0d200000 0x0d200000 0x0 0x100000>, - <0x02000000 0x0 0x0d300000 0x0d300000 0x0 0xd00000>; + ranges = <0x01000000 0x0 0x00000000 0x0d200000 0x0 0x100000>, + <0x02000000 0x0 0x0d300000 0x0d300000 0x0 0xd00000>; device_type = "pci"; @@ -1956,8 +1956,8 @@ pcie2: pcie@610000 { #address-cells = <3>; #size-cells = <2>; - ranges = <0x01000000 0x0 0x0e200000 0x0e200000 0x0 0x100000>, - <0x02000000 0x0 0x0e300000 0x0e300000 0x0 0x1d00000>; + ranges = <0x01000000 0x0 0x00000000 0x0e200000 0x0 0x100000>, + <0x02000000 0x0 0x0e300000 0x0e300000 0x0 0x1d00000>; device_type = "pci";