From patchwork Tue Feb 28 16:47:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 62562 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3126828wrd; Tue, 28 Feb 2023 08:50:53 -0800 (PST) X-Google-Smtp-Source: AK7set9zxF2jiIPJj33jOu4zorRmrDGp01RduCwv9QQ0jDLMSc9EP/SQwVGycsmFTpjNYB/nUH00 X-Received: by 2002:a05:6a21:6d8c:b0:c7:3c30:188f with SMTP id wl12-20020a056a216d8c00b000c73c30188fmr3628897pzb.20.1677603052920; Tue, 28 Feb 2023 08:50:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677603052; cv=none; d=google.com; s=arc-20160816; b=GREX6oDTmGmANeLvkbz3Z6BPBNVx/C3caCSohTBiONEPeOZyg/M3tC5rChjdZfdNQB gfxxP6W0On17w6vZ4j4a10/LHXMkwgfamZkF6eNNK8He9V6llnXKWUxHwTVaa2eLX6Pb f9vTkgK5szEktxNFq3SB/S+rqOyBSo8SSmnxh4PJ7No3Osu3lKw+Fz9NVlnNEYO3ewax aeFuGnlYi+8ylDyI4Ucl8YQoAPd6ZmipsaobRNVEsHgbyPQDwvplo9Y1E/aq39i3A+j0 yPuLiblD9UZqQ6fvKGNxxm8dXOil4XhxUorCsBwT11ag12k2pSkma4hinARyCifqvUZL ZlNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=whT3aUmNdS5fuKcmFu2oegzQXBPH9cSV0MhwaeSEqaQ=; b=uR+nAOUGpsTV/Oe411se/6oq2YD2ZVxpNrz00G72jvXO22fXNRLck7KE8z6xiFdXD7 LzBESGJam+rYVJjAAm/ejzfHxh7kkXJscl+z9IItumFBrxMNif3Gd356bfo7U/YgH9LC Xrzgx/Zv1Khwg6NIztDhGczs5gjNKX2yuhinHzJ7yme3tIaOUqG9Ia0WiZPcGV+B1pmf SlAwPZFXkiAlMtLOrZHyo/il1eKlTjL8aQzeiLXAaVyJvOIsc7dV5w991euaFFHaTNWM rF1HHyT61kMRVOic6vFPS7kdV7fbxaWpMn3INsXd2r7KQUSd0ygp2VzJfqPgoCRgFjpB TnSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p89BVizF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h12-20020a63df4c000000b004f1d887fca8si10587899pgj.677.2023.02.28.08.50.39; Tue, 28 Feb 2023 08:50:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p89BVizF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230020AbjB1Qtz (ORCPT + 99 others); Tue, 28 Feb 2023 11:49:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230015AbjB1Qtx (ORCPT ); Tue, 28 Feb 2023 11:49:53 -0500 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E862930EA7 for ; Tue, 28 Feb 2023 08:48:54 -0800 (PST) Received: by mail-pl1-x635.google.com with SMTP id z2so11050589plf.12 for ; Tue, 28 Feb 2023 08:48:54 -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=whT3aUmNdS5fuKcmFu2oegzQXBPH9cSV0MhwaeSEqaQ=; b=p89BVizFoCt2rywjb8ir45QqgmNYWpQsCliA7iowjoGG0Bcad9SJQlConyNwAPtkig ImTddcogyI2LJM8zDae5BeMaJsgp8VAUp0O7eKZmfwnhGzOSw0MhCfidV4UqIkxpwGut GhoNtT5GaTAiRDJ2vtPEx2eJg4Ea10yPECVhZdz1KyIrOrq8K2B5y9EhzGDZBP9UQAQR GfXnI5QeNqEv2RyO+lfnATsZHkIbG5tYhnV0Mpbohr4fp+ZrjgpLbcGgd9VTG6AiMYWP Qc4vsojgjBcsKe1qogHX5cwDtF1D/ExiXoGgsWvxuq9k0pEOnnFXLvEvRVyOphBlOejO 9PYg== 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=whT3aUmNdS5fuKcmFu2oegzQXBPH9cSV0MhwaeSEqaQ=; b=7Xa41krKPTbMn3vmAY4sAL5zMavwDkeHuljiCM/C3vL7D3NEg/HR7Y4BK2VtjiPQ2M B+2ZpxxDE3KzXZXwDStAf/dM0VgqZpSP4SCtEHhg7Jse2JJFHx6tyVIq3i+42U98/Xir T+lDYhVjNH9J5T38cauDF013557K67LcJwlQTVIwWtqYY+MHn5WOrlm1Yst+Xp1IAWuD QYi67dpRxM4w27pZ+Fe0QiVuS+K1tjKGKZN9u3xG23TnPsE7E4Lu/Mka+W++sZd9FYUT 0OcSPR4v1ILHohBcltX5Bz/xcZNb0u0aA8ZNKlCBu1AgCjVNLrWf550Y27Hk2kS8bs1l d6Qg== X-Gm-Message-State: AO0yUKUWUVV6tLj8YvNyGBEm0ZVdwSVm/RaiBIZuf1qhNhQnQ0KHKwPt c9+QZVNB5Eifj4cEiy+dOprn X-Received: by 2002:a05:6a21:32a9:b0:cc:70df:ae20 with SMTP id yt41-20020a056a2132a900b000cc70dfae20mr13348786pzb.0.1677602933956; Tue, 28 Feb 2023 08:48:53 -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.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 08:48:53 -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 13/16] arm64: dts: qcom: sm8350: Fix the PCI I/O port range Date: Tue, 28 Feb 2023 22:17:49 +0530 Message-Id: <20230228164752.55682-14-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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759094298826110182?= X-GMAIL-MSGID: =?utf-8?q?1759094298826110182?= 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 (0x60200000, 0x40200000) specified in the ranges property for I/O region. While at it, let's use the missing 0x prefix for the addresses. Fixes: 6daee40678a0 ("arm64: dts: qcom: sm8350: add PCIe devices") 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/sm8350.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index 1c97e28da6ad..1ca16bfc8988 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -1487,8 +1487,8 @@ pcie0: pci@1c00000 { #address-cells = <3>; #size-cells = <2>; - ranges = <0x01000000 0x0 0x60200000 0 0x60200000 0x0 0x100000>, - <0x02000000 0x0 0x60300000 0 0x60300000 0x0 0x3d00000>; + ranges = <0x01000000 0x0 0x00000000 0x0 0x60200000 0x0 0x100000>, + <0x02000000 0x0 0x60300000 0x0 0x60300000 0x0 0x3d00000>; interrupts = , , @@ -1581,8 +1581,8 @@ pcie1: pci@1c08000 { #address-cells = <3>; #size-cells = <2>; - ranges = <0x01000000 0x0 0x40200000 0 0x40200000 0x0 0x100000>, - <0x02000000 0x0 0x40300000 0 0x40300000 0x0 0x1fd00000>; + ranges = <0x01000000 0x0 0x00000000 0x0 0x40200000 0x0 0x100000>, + <0x02000000 0x0 0x40300000 0x0 0x40300000 0x0 0x1fd00000>; interrupts = ; interrupt-names = "msi";