From patchwork Tue Feb 28 16:47:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 62550 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3126033wrd; Tue, 28 Feb 2023 08:49:25 -0800 (PST) X-Google-Smtp-Source: AK7set9utfaz0IJln3LeWXFLC0YDWLeoioBufcnr649utGR9tFg716YixZKDDXHoaJY/UBnJ0Do2 X-Received: by 2002:a05:6a20:54a3:b0:cd:47dc:82b5 with SMTP id i35-20020a056a2054a300b000cd47dc82b5mr4798029pzk.21.1677602965316; Tue, 28 Feb 2023 08:49:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677602965; cv=none; d=google.com; s=arc-20160816; b=NzzaI7HYwl16ewMCjz3PA/MWJixlffYAQgtARDhFlTLyzwDVfO3blBgfIVOq3rdkk6 vr3GLX16wYmOdUg+7zX1NDTMJAH5+f5PEKgUfzNTPo36OFSs1hiOoe9H9gLdwbeb7ScE i6wZ/N0pVjiRw5Aerq3zttpjOB1V1WDYMVfq6lz4qmZRnsubk0Ldqz624C+a9UshcIMi P0HQJIS0oCh0Gz+xAyX5hpSBh6xOQk/0qRvBoxARV0lp98tT8pahWo9u9X4GlhRVasdS XPGeO4BgGi7YBPuGTqj/KM+yWKhPn3qyfXZ+oE2kiVfTkKYWa4Jn3EikLifTEJmseika wgWw== 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=Idewr/c6anuiFZ8W+ANFStw5VD2DBWot5T+luCDLkeE=; b=wYTnbO0cecmkeLDnqKpSfNVnXKVUGoyoDEZ9ardQpwkiPQkUXXMLHJEUafU3msrDKA 0pFb/GuEF+pdufQkke4SRRh1ZbjS7qf3aLklmpQrWO6lB71veI25iLcV7YlNzMCHHiHt jnU/1eFaI58mXZAUz7/73oB+bzgdl8JgHLj+QTgITUAjrtHdIdOTVZyFYfjR/3Q/8GXq OVP0skBljclQCBLqSltg5zU2DQRjyWOJ0CspbrebYtgWAOdfnfIqiZAVCTBPuhbZfEE6 ZZO8S23AKDeUCX63NLxH88IFkxb5q6Btm4Gzj8u4h95+GJYFJiyD9Omg3XAU9Ttk4Sfl DNzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HaEDfnx9; 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 m15-20020a654c8f000000b004e00a870567si9945538pgt.124.2023.02.28.08.49.12; Tue, 28 Feb 2023 08:49:25 -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=HaEDfnx9; 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 S229848AbjB1Qsy (ORCPT + 99 others); Tue, 28 Feb 2023 11:48:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229816AbjB1Qsr (ORCPT ); Tue, 28 Feb 2023 11:48:47 -0500 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA5D7FF37 for ; Tue, 28 Feb 2023 08:48:10 -0800 (PST) Received: by mail-pj1-x1035.google.com with SMTP id 6-20020a17090a190600b00237c5b6ecd7so9810568pjg.4 for ; Tue, 28 Feb 2023 08:48:10 -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=Idewr/c6anuiFZ8W+ANFStw5VD2DBWot5T+luCDLkeE=; b=HaEDfnx9/yzRqav9tJjlQHDYW4Aqn7/xGfokNxMrpyWPm661fo87bSmbc3jTGwGJkg 5KKX0H21UMvVlnT3IH50T5kUjKwG/vdQUJEqmXMcxYcYKv975/3A3t3QKo4KndgFVVVX Mk+boSqvyHOqYJX1nopulRW5/KQJXAkc8krfofbZmYxDQjmYV21Wh35o0aQlGxVvNY0+ vq28EPjvWvULxyqLSXuV852Ib02Fwj6iG2WILIh5KZNBPVrU4qnAFhbeA2swWzgH9uXV 25B2sAtPW8MHNU0k1joa4ok13CRc0MBbjPeTbio6ogEwtPG+d4H6yPQf3s8pTXqzFUAq Zy9A== 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=Idewr/c6anuiFZ8W+ANFStw5VD2DBWot5T+luCDLkeE=; b=h3BoQ2V6rHN3dn1TrWTOZ3BRgmrjGUKqjgkVYNW6ZK6oGS9h/xP+y7FJoYzWJ/EkH0 ADJTBFrgphvQ+qqIrhLnk9edCkrmtVidAg+72JNXGdKsImd0lMgwNqOTl3ga+jvxVURz Mbrntap3AGs8jlEiwhLONhs2HU4bpU5wy0byQdT4gsB/aFWDX4r5rn7/ZdTF6G8oNhfW sCzqHMQ0vFFmegsHLf2fPX10+2gbjLap2ZEJJqNosTzmakoETkbaz/gdATWLPo29Alfj jRTCK8ueaCQqSh0/09/bf6l7C80whp8DTVG+1sd+KlkPjokXlREbfObG9+2fWh2qDpa7 vWHw== X-Gm-Message-State: AO0yUKVEkiCumwKes5KIL1wwILrtK6TQqmfPHCuEsFn2wQwmy+ezf+wq oPMVMlA7yAY5UUlqYgdmzsjp X-Received: by 2002:a05:6a20:3947:b0:cd:fe1b:df8 with SMTP id r7-20020a056a20394700b000cdfe1b0df8mr1489022pzg.56.1677602890307; Tue, 28 Feb 2023 08:48:10 -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.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 08:48:09 -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 01/16] arm64: dts: qcom: sdm845: Fix the PCI I/O port range Date: Tue, 28 Feb 2023 22:17:37 +0530 Message-Id: <20230228164752.55682-2-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?1759094206945205565?= X-GMAIL-MSGID: =?utf-8?q?1759094206945205565?= 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: 42ad231338c1 ("arm64: dts: qcom: sdm845: Add second PCIe PHY and controller") Fixes: 5c538e09cb19 ("arm64: dts: qcom: sdm845: Add first PCIe controller and PHY") 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/sdm845.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 479859bd8ab3..1c060ea960ff 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -2292,8 +2292,8 @@ pcie0: pci@1c00000 { #address-cells = <3>; #size-cells = <2>; - ranges = <0x01000000 0x0 0x60200000 0 0x60200000 0x0 0x100000>, - <0x02000000 0x0 0x60300000 0 0x60300000 0x0 0xd00000>; + ranges = <0x01000000 0x0 0x00000000 0x0 0x60200000 0x0 0x100000>, + <0x02000000 0x0 0x60300000 0x0 0x60300000 0x0 0xd00000>; interrupts = ; interrupt-names = "msi"; @@ -2397,7 +2397,7 @@ pcie1: pci@1c08000 { #address-cells = <3>; #size-cells = <2>; - ranges = <0x01000000 0x0 0x40200000 0x0 0x40200000 0x0 0x100000>, + ranges = <0x01000000 0x0 0x00000000 0x0 0x40200000 0x0 0x100000>, <0x02000000 0x0 0x40300000 0x0 0x40300000 0x0 0x1fd00000>; interrupts = ; From patchwork Tue Feb 28 16:47:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 62551 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3126056wrd; Tue, 28 Feb 2023 08:49:28 -0800 (PST) X-Google-Smtp-Source: AK7set/ywTGPTXSJLnOPPBTnOmL1R7QudcJzlmxj9oc6oD58fM5qGsD2NsN7oDIe07tukArqhKr2 X-Received: by 2002:a05:6a20:2d83:b0:cc:4db0:f2b5 with SMTP id bf3-20020a056a202d8300b000cc4db0f2b5mr3463848pzb.48.1677602968245; Tue, 28 Feb 2023 08:49:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677602968; cv=none; d=google.com; s=arc-20160816; b=c/MbkJHsOxA1Es7xMdivgapC9QeTD2GU1eUhVz9rN+nk1ZVdqs0269C7S3Du9l+c7F kZvbIViT3xVMNuegw3DujkzfmkKeA5wNG/er/bAlvUeGR/w6KGApHMas8dMChq6sugTg 8HPPhO6KDOBqQBiPQMakumG2m0DtSnaNjgK5X8JAgyaoRUlKLMqCh+Pdv0PxXiWiXZRK mPmQHVdQB/FykDB2+xL9XbhEpFdpTtivO++GJhMyg3AtI5eV+u4NGhQXIBrKEK5G+sk7 v7PqdoCG1sk0wNZcJMTWCPcGaTKWeZ8/ILySKTTzXwsXECkCf1DrYpHvKkmZCpJc+vHO rQmw== 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=KY8I4J2skzbqy9GlWqlu3bWpe7Ekxx3P3y3p5S5A3tw=; b=fhzPitOODzhpgfNOsK9ID6b5fljpd1kHYwoXqZRd6xbUPH14WJJRgR1Muc1m2whG6X qpbCC+CqxlsyWweRDk+/yEtm7DOrVEiyvgX8V9Q5F/NeEtrbt6rYGE+mlrLjHPk1eXsu VIL/LhkuRQ7A9uU/92GZniK3vGjIO7xzoOt8IlR6OdY9tTmoeGlyRG9Xwezzi2NneBqB llYqTn9S3EEWbQjMte42ti42JK/UEr058xkxbGKUhopIcKP4/vpRlxKjxhSEq/a+PM0n n3EvTskYNgfka/8fazV5q9Hd8g2Cdd4x9UCqP0vhrv9vU8fB09M2p9kn0esLBIt5dLAE YOtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PdN4G1yV; 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 m4-20020a632604000000b00502f4f9fb65si10735355pgm.632.2023.02.28.08.49.15; Tue, 28 Feb 2023 08:49:28 -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=PdN4G1yV; 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 S229865AbjB1Qs5 (ORCPT + 99 others); Tue, 28 Feb 2023 11:48:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229821AbjB1Qsr (ORCPT ); Tue, 28 Feb 2023 11:48:47 -0500 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54B1B126FC for ; Tue, 28 Feb 2023 08:48:15 -0800 (PST) Received: by mail-pf1-x433.google.com with SMTP id y10so6165847pfi.8 for ; Tue, 28 Feb 2023 08:48:15 -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=KY8I4J2skzbqy9GlWqlu3bWpe7Ekxx3P3y3p5S5A3tw=; b=PdN4G1yVCyJ30SG5QB9Tch9TYxGiI04Xb2vA5BLPbUVzbSb29SnAaGmR+WW1brpqOe tTOZ2hCCz3ZbAg1sWhhvTuYjka2NjUEqjFi9XokAXMxGmRX5Na1w9ZF5hm74pnx0kCKf ppqHcF/PM1Lu2jatV3Y/Hn3hyFSSI1AKM35fQTaFnU2CNJnmQP4DUoJD9tJfH3HdvH3y mOViwuQu8i92FIBNmGDFAUwzo85aK/Hli97VEyJ0F/jpgUxtKgejWmDU+4VbtZkS+X8I yFU2tiMvQpe6GUhf+Gd7A9wNQr6OlsuiFd6Zue7kaInz+WeoDnBmbWJJWBggJhfaVn8A c4tA== 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=KY8I4J2skzbqy9GlWqlu3bWpe7Ekxx3P3y3p5S5A3tw=; b=piFExgbU9thvLRC75C1sLudWoc0560bnOy0RXQSnhYcGVcUu7QaxiXNwOL9AJdqdJ4 qCD5sJhQthYKy5gEgopCK0IGHLpTfh+3oVX3KZ3bXhJQhIT2NOhJSkXIB+7cQ5sWywyJ ZYepZLMhWh31eI0I4lrPdssmuSFjMfmF0n9h3GUdpOIWkEDGj2j0CEyLcdYXRAAZIsSC dUnRX4pteDYRSKnPJMZF6Q3aDjs168wETOj/pk7HEq5Jk/ohFzqQNDWUrhFuBQuP8RAF M4P8eX3ZCl0PD+vHl7VNG36acwlbFLyXgw8p700hTa6Bo6DNGA2dwNTjYrPoyQABHcpX TIKQ== X-Gm-Message-State: AO0yUKUfL5riExnrQPd+TVg/NHmAg4Ec9xsl5S0UP1jP71LgAFzMclrV eZ23jrb+z9bQyjG6GQ9imJnR X-Received: by 2002:aa7:9d83:0:b0:5cd:d766:8a2b with SMTP id f3-20020aa79d83000000b005cdd7668a2bmr3048405pfq.6.1677602894784; Tue, 28 Feb 2023 08:48:14 -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.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 08:48:14 -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 02/16] arm64: dts: qcom: msm8998: Fix the PCI I/O port range Date: Tue, 28 Feb 2023 22:17:38 +0530 Message-Id: <20230228164752.55682-3-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=ham 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?1759094210062561918?= X-GMAIL-MSGID: =?utf-8?q?1759094210062561918?= 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 address (0x1b200000) specified in the ranges property for I/O region. Fixes: b84dfd175c09 ("arm64: dts: qcom: msm8998: Add PCIe PHY and RC nodes") 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/msm8998.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi index 8bc1c59127e5..5863332962e4 100644 --- a/arch/arm64/boot/dts/qcom/msm8998.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi @@ -922,7 +922,7 @@ pcie0: pci@1c00000 { phy-names = "pciephy"; status = "disabled"; - ranges = <0x01000000 0x0 0x1b200000 0x1b200000 0x0 0x100000>, + ranges = <0x01000000 0x0 0x00000000 0x1b200000 0x0 0x100000>, <0x02000000 0x0 0x1b300000 0x1b300000 0x0 0xd00000>; #interrupt-cells = <1>; From patchwork Tue Feb 28 16:47:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 62552 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3126098wrd; Tue, 28 Feb 2023 08:49:33 -0800 (PST) X-Google-Smtp-Source: AK7set8pTyXFAoreaOeG8OWOBe+qdma9BDue+xeKoNgCXZJpv0YbHiaWS5Sk9tK014hgDG3BDvq6 X-Received: by 2002:a17:902:ec85:b0:19d:138b:7c4a with SMTP id x5-20020a170902ec8500b0019d138b7c4amr3617052plg.3.1677602972815; Tue, 28 Feb 2023 08:49:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677602972; cv=none; d=google.com; s=arc-20160816; b=rbmAHNkxmc3CVB5G++M8/S4Eq9MaVEfVk4UpAOYXAqZCA7EVSn9HpAIg71mIbVQN/1 sfSghlffO6OBua/F6IVrE8dqamg8W0VfBs3NySN/922isMnLz/sTniJUfzCMFENmRNIG NiUL4bE1GUbqSm/ld5eZ9WaHG/qCfwvXTd/YZ7wvOl7wvzYm3rb2ZMkwGP6ggiYlYW7j +A/FhBE2y22ohWAjMmiy4j971aGR0dXK92GchX1fv7guDiRTUKhXLJI/T92e2J9AH+qs Cu1/Sdm0cBWU8Q2tbKbr+6fF0fS4qOzC/eev2IjeUDrMjgt5kHIJ2pR/J9Q1y3+nImS1 KVNA== 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=ZAtK7Zk8PyaaL2KGK3kPqF4OjS65bLvo7hShFbPeFVg=; b=C3fWau5VRrc+ov0GXzq794/XUAKOoxcVlb9jNa+cgkyYifkfF0AQD9o9iKQYwiujgZ 6xqUoz7OD8sn4RA+Cs7hfb+Z3NZ/gxrYKPSFMGO2yJ5R6LRwNr6uETNAJGdexmkf/4sq zcZuQ24Y+PS8327a5pqL4wM0cNUapfCz/oSyrdhjb9A873gQUBNwnGuTIkLIYSOW2kA0 12IDkeoSJTJKqPdX6D/sHpJOdQAXeNZSEKFUBjVMu4bvRj+/sph1CF+0AL2EprRK4BtQ X9q0oSRLNnAZe4bbglCqXTwrnkUBPDmz7aBFYNy47E1p0uGLDlgX1XHeAqbI/rqhpTPQ 0GmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nrya+sop; 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 e3-20020a170902b78300b0019c93a9a8d9si9854188pls.472.2023.02.28.08.49.19; Tue, 28 Feb 2023 08:49:32 -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=nrya+sop; 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 S229882AbjB1Qs7 (ORCPT + 99 others); Tue, 28 Feb 2023 11:48:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229836AbjB1Qsv (ORCPT ); Tue, 28 Feb 2023 11:48:51 -0500 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7554C15158 for ; Tue, 28 Feb 2023 08:48:18 -0800 (PST) Received: by mail-pg1-x533.google.com with SMTP id 16so6030850pge.11 for ; Tue, 28 Feb 2023 08:48:18 -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=ZAtK7Zk8PyaaL2KGK3kPqF4OjS65bLvo7hShFbPeFVg=; b=nrya+soptTdI+aVebLmaWMGBRv/+IgaWafwBA7BC7AU0DCOP0PJtJVrDcjOwnmZNrg Ojasv/Y0KrsbmmBAoCcBxfdVq4ZcgmBa5/orhxZpr9SPBFAnHCoytBjJh2tiMPu4CDSU aP051dg1nXEUVUdWBfLf6IjagPq7RhzFKfZhyDfqAlWAK4cCWkfC3FdDXkv8Bk6hhd3i H3GBW6QMIK7LVb4n40xlBrmQ/RP+cweJBkP2X/G2MqmYDo6sKHkFFxjSpTe2UulbBM8w uwoPupBrCbncz52+cywpp53rtIWsD255o8DL2G9wdl66IDRhfJDsNJPp3c9YpsS30Xjm LdTg== 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=ZAtK7Zk8PyaaL2KGK3kPqF4OjS65bLvo7hShFbPeFVg=; b=keRTKGidx3moSCeItSfUxjI6RwH5zU04yMMnWjUB127UH18ki7tHQ0sUxMGXLzRJN4 EIo+mg4tC03k8tsQnb4QVwo9F5+mTFFdrCf0Zaz72gg78x8op7aeVh45QGACNymI9mhX C22vzLi3LfNyhNEUsDx2i3HuciIUQL57LijI1Go2i4A+vGsd11l+C+oLYvZGfOf5xFaz rIf/9BUbl3e57kRAuaM236p4Z4x/7+NoFyjNTSQkdFlHeouov9syOBIJt2Vauv12e3Ff ZG+r4OVdPjgGG4GgkyKHVGBfN638aVV+2/WRm6w0aa805DVs/YBzeWgA+/giWDGlxEsg zbrQ== X-Gm-Message-State: AO0yUKWuXlfrZEJcVyfiH6BC03AJrKtkaawU0f5lIzCJRSYoeOQqLzyY y4g1eS7O74t9f60DP7QrpBDd X-Received: by 2002:a62:62c6:0:b0:5a8:aa1d:30e9 with SMTP id w189-20020a6262c6000000b005a8aa1d30e9mr2605831pfb.18.1677602897942; Tue, 28 Feb 2023 08:48:17 -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.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 08:48:17 -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 03/16] arm64: dts: qcom: sc7280: Fix the PCI I/O port range Date: Tue, 28 Feb 2023 22:17:39 +0530 Message-Id: <20230228164752.55682-4-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?1759094214789600251?= X-GMAIL-MSGID: =?utf-8?q?1759094214789600251?= 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 address (0x40200000) specified in the ranges property for I/O region. Fixes: 92e0ee9f83b3 ("arm64: dts: qcom: sc7280: Add PCIe and PHY related nodes") 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/sc7280.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi index bdcb74925313..99845c79a8c4 100644 --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -2077,7 +2077,7 @@ pcie1: pci@1c08000 { #address-cells = <3>; #size-cells = <2>; - ranges = <0x01000000 0x0 0x40200000 0x0 0x40200000 0x0 0x100000>, + ranges = <0x01000000 0x0 0x00000000 0x0 0x40200000 0x0 0x100000>, <0x02000000 0x0 0x40300000 0x0 0x40300000 0x0 0x1fd00000>; interrupts = ; From patchwork Tue Feb 28 16:47:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 62553 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3126179wrd; Tue, 28 Feb 2023 08:49:41 -0800 (PST) X-Google-Smtp-Source: AK7set8KVSTVJHl6HW7VLFJNWpiOxnLMjopubpuPpyyIvLVQaj28fZNPQwW9aQPSaRtArECAZHZt X-Received: by 2002:aa7:96c9:0:b0:58d:be61:4859 with SMTP id h9-20020aa796c9000000b0058dbe614859mr3144335pfq.11.1677602981061; Tue, 28 Feb 2023 08:49:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677602981; cv=none; d=google.com; s=arc-20160816; b=hcfBFAEXQP17w/CTIUxN42Y85RGN5ItrJqHsmiWjei1OTtSJTzAaZKQs7Ys54mShi2 lfmmn1g3/OPLhme/PpyhFyQ6uAJDmOPp00IcvG45WIn2dwu5ukb3vu9sl/Zq5AY2x7iI Iyma5D4m+ZSnvxddJMqrv+XOyGbjNYB5BDLnQ40ZCLGRIwlWm61IwpgIQPBsXcGzEYtj FUd9bTsrx47+VE0hPfmhCk7NUUIYgMbFZbWe2jfj1EiEl8X61v5ZYpnypIhl0zWNcNwz hZ1Y0Bwip2we0l2poMSsCJM6GaL3Noi6KTwtAqeKv1XpGnbHlCzKw+omG8tZYk/dzcRc VTUw== 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=nw2kwwdY04mwrOWVYrVzs4I0LPxS7ZuXOh7KWbCAYF4=; b=ctjL1v6STpRt1fknxiw0v9shPF4vhId27L5DwsDCk7Vm5NlYNzpMEnVy0qeoC9shAM dVqFXKJEX24EZv0e359+gCHPbGo5CIgYxw9EES/CvgKAizzR61tXxQY6c1ixXb8ig6N0 1WjYs/1G7B1FWY+H0sUQ8fGf7JkfDxV3GOjvjF8aaXygKt8Gui+j5gAzeCmQeKIXEyF8 PJ/O5R5lfEOC6y1YCoP0pAgStvcR0Eks/1rX2Eg8rkQLtyquzaErFMwpKyj0h/sTJ/Vg D3flbr9VuUkW9l1KFFMM7agLXIQVQJvMj8DrhCC/YillcQ9+4cPKVpT+eYk1jmCasRF4 5fPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HYm7C2CB; 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 142-20020a621794000000b005dfa420e0d8si9806087pfx.176.2023.02.28.08.49.28; Tue, 28 Feb 2023 08:49:41 -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=HYm7C2CB; 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 S229893AbjB1QtE (ORCPT + 99 others); Tue, 28 Feb 2023 11:49:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229849AbjB1Qsy (ORCPT ); Tue, 28 Feb 2023 11:48:54 -0500 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B41C19F14 for ; Tue, 28 Feb 2023 08:48:23 -0800 (PST) Received: by mail-pl1-x631.google.com with SMTP id a2so640898plm.4 for ; Tue, 28 Feb 2023 08:48:23 -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=nw2kwwdY04mwrOWVYrVzs4I0LPxS7ZuXOh7KWbCAYF4=; b=HYm7C2CBsxRoKbhO9gur1eRYPy184yM8vTZPGuYYzRv9PF3O8SYlkVcn/A7XQO2eyS LiUz7M2vNJmIOPrPjMmU3i9E7lh3n2hpr/jf9LCxHvtl7kroWar56dFBVgS7zohxStus LLZMOZvo7eOh/HGl6kqwJbU2J+tYm2w8S7VB2oTT3LjUPeKLSakpgCAjtFc3z7Tb+Dmr D7J8XUEt/o2pLKR9ZMAyhS58YOC6mKlF9gc49TiXOCgi/7lUsoW/dTlH5FUDOiT5Y8N1 A88PhR+RFAF4F8zw3Kf/VObuFdrBX8ZkDVkDW+Q/slRceBPAtqB2tYmCSQzY1WW61vh9 aK9A== 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=nw2kwwdY04mwrOWVYrVzs4I0LPxS7ZuXOh7KWbCAYF4=; b=cbrN9PARWZk/VFo9/MTGjt/5QweCeDW7Xj4Hq4bD1jmWA3mVQTzPgFSG+R9TenfJjZ Y6q6QVQMvS1DjDfiUetOereMdu+pbNBj4HujJoNOaJMSqZKjtInY/6APOeMdV9pdVjvP hy31haYRf7UBtMk61il2t8PAg6yEGgWB3c890SZVYuOhfrmBwTAQfC901EdM63LfK47W v2eyl0ykmU+N0lnlr8zXUFdVjUpNA38MCwaHR31RL3t715NZBvFEgNWhXwauEfiynhEh f9wvaYFVhxzKSIPBdIPQqoYArU0TcsLFViTfkm3HvBjB71RNxH0YMJB8asGc5IhEpzEI 6NLg== X-Gm-Message-State: AO0yUKU5Mqxbxsixu9UX8JqNbUrQEkWgWQ4yNC7lw+0kS77NbG3v5W8q cwB8XmI0ojnH+OJsmXdVR5dQ X-Received: by 2002:a17:902:fb8d:b0:19d:397b:eb4 with SMTP id lg13-20020a170902fb8d00b0019d397b0eb4mr2613738plb.48.1677602902784; Tue, 28 Feb 2023 08:48:22 -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.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 08:48:22 -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 04/16] arm64: dts: qcom: sm8550: Fix the PCI I/O port range Date: Tue, 28 Feb 2023 22:17:40 +0530 Message-Id: <20230228164752.55682-5-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?1759094223793190613?= X-GMAIL-MSGID: =?utf-8?q?1759094223793190613?= 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: 7d1158c984d3 ("arm64: dts: qcom: sm8550: Add PCIe PHYs and controllers nodes") 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/sm8550.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi index ff4d342c0725..f8d7b4dde878 100644 --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi @@ -1653,8 +1653,8 @@ pcie0: pci@1c00000 { reg-names = "parf", "dbi", "elbi", "atu", "config"; #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>; bus-range = <0x00 0xff>; dma-coherent; @@ -1752,8 +1752,8 @@ pcie1: pci@1c08000 { reg-names = "parf", "dbi", "elbi", "atu", "config"; #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>; bus-range = <0x00 0xff>; dma-coherent; From patchwork Tue Feb 28 16:47:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 62554 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3126217wrd; Tue, 28 Feb 2023 08:49:44 -0800 (PST) X-Google-Smtp-Source: AK7set/3J8mJDByPiXEZ/+q+c0rcYFSpBVVPBAa78H/B5hIsUs+DI6KXoU5x4Dv18CAGb0u/14RO X-Received: by 2002:a17:902:e806:b0:19a:9897:461 with SMTP id u6-20020a170902e80600b0019a98970461mr4011402plg.52.1677602984273; Tue, 28 Feb 2023 08:49:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677602984; cv=none; d=google.com; s=arc-20160816; b=VTCsAW0PloMU1aE1nW3BLKvFWnqVib4CXT1tXxvBN9mDWPyfC94fYDJJLt2BP/9PWK AwEOAg6X3FIq5vDTPeiup+OxjgNCq7Ps5XgaD1BwDitBJDJAuhBD7+3Jc55hhujWEumF bhTX52gwM92AeOSkr6hZn7MVLx0o/76DiULgP2ozIFi+ZJLQHVLn3Ww2T9FPYRib6HM1 9YT4ked2+Mzutu16pkClaNtv0FlKS1AXC9VrGZ9P57yEY1x8fx1p/5R2GKUb3uVzAfPr 4T7brT7p+kzGCvnGfYbQy4ToOfvYYRGZuh3DF5GGcJK8VS/lGeKt+NEGKzAnCn7D2+sz eOuA== 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=r06My2aq8Dmvi2FXH5CuaRQfq/pWOq5I+mThml6kdDc=; b=TFJJuxo8grX5k3VBGyxhJuUKcP/iHAEklQWAs7+JbGzoSHK7/JBK1fmdRhSOFgiafc VYcVmAUEBXcXkg/enQ8lwaod7/wpGI0+5yBDEszhG9CABqMlzMlvsjmI8SVupUloqz2I kCb5rn9gTvsSwQgwga+QlEdEZi2GTIHbZny9wXNvWK8vgGqthPKpqI5vxFCVBe1RVow5 U9maxkpsf6r177oBGje6VujAhXWSKk+a2H/PQxcI9cTep3+Bd+/kq9YYcfAsgZAs4QsM hxVoicXPYEilsSvnpBqma0pWHF4wZibr+6/9fGYv2+4aifmKnH6l3q/8GJnnBQB6ZLm0 Nxjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mj566OPk; 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 d10-20020a170902ceca00b0019ab692fc8fsi10496564plg.612.2023.02.28.08.49.31; Tue, 28 Feb 2023 08:49:44 -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=mj566OPk; 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 S229904AbjB1QtJ (ORCPT + 99 others); Tue, 28 Feb 2023 11:49:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229872AbjB1Qs6 (ORCPT ); Tue, 28 Feb 2023 11:48:58 -0500 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DDC919F2C for ; Tue, 28 Feb 2023 08:48:26 -0800 (PST) Received: by mail-pj1-x102f.google.com with SMTP id h17-20020a17090aea9100b0023739b10792so10223923pjz.1 for ; Tue, 28 Feb 2023 08:48:26 -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=r06My2aq8Dmvi2FXH5CuaRQfq/pWOq5I+mThml6kdDc=; b=mj566OPk7ImfN/AU68UwLwS5qA/crpftIJk2+zaV8GZTqW8IFG//ePMocyMW9k8GnS XfLU8xG6R2UAhEX6/L6N1ykaHb2sYKFYIF/e5BnXnaU+YTcJ8Qazzcx6MIvvbcbAYD6G xR3mSPoN8H1kKpOqTlZOhkyPw1KXMSH+Hwwsp9iKwwHgeXb1wX7HIUuCY6dCuQWYHUUU tv7fvJelkiCfhP35GeDxuacaUIaaiQDkNe3i1MvaOgjpwc1VwHHTeDaK3Ckcjq1BCdOn cWuVaLdJUXsvRaT8AWqlKKUkF60U102BruutjXO0rMDs2fUJ6M0QA0XioDi30hBuGdsM N9kA== 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=r06My2aq8Dmvi2FXH5CuaRQfq/pWOq5I+mThml6kdDc=; b=MhfUV9CtGoU9Sy3yDMChpU3tinTRFpX5Y8LxIAozoB3t/ymXZ3cCpuep97TqGV/IbL Z7wdz1+YSq0yeOHAbohfRa3Vhtw7wQg3qKVm/NbU7wU838Y8AbSug5738WbME8lNMQ8L xncQhSFDcR7GD3SzlYJ/x1Ev/rqJIEt3w2zixtZ9aVRpMNMrovBbMwG+RgeFLyD1pkcR 2ymu9qef/8/HWulo6I6TLIgWq72pb1Tk0Q9YGIy/YI4ifuOq8viv7q9s1WpPgEST6lxG RxJ+kNqhJgZ0BAXAZNka/SoSWzdeoI1rYPqcIeVXNfOD8/7HikPls77e1upC110LI3EE L6RA== X-Gm-Message-State: AO0yUKVG77CQ+asCI4+2/qIA56gPUDP1PuR90e+Z7m2M0p67z2+EAQrn jNlOFKUmijOVvcSvWDH4Hx43pqNLRgVE1KI= X-Received: by 2002:a05:6a20:a021:b0:cc:32a8:323f with SMTP id p33-20020a056a20a02100b000cc32a8323fmr4660667pzj.38.1677602906022; Tue, 28 Feb 2023 08:48:26 -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.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 08:48:25 -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 05/16] arm64: dts: qcom: ipq8074: Fix the PCI I/O port range Date: Tue, 28 Feb 2023 22:17:41 +0530 Message-Id: <20230228164752.55682-6-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=ham 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?1759094226564024536?= X-GMAIL-MSGID: =?utf-8?q?1759094226564024536?= For 64KiB of the I/O region, the I/O ports of the legacy PCI devices are located in the range of 0x0 to 0x10000. Hence, fix the bogus PCI addresses (0x10200000, 0x20200000) specified in the ranges property for I/O region. While at it, let's use the missing 0x prefix for the addresses and align them in a single line. Fixes: 33057e1672fe ("ARM: dts: ipq8074: Add pcie nodes") 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/ipq8074.dtsi | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi index 62d05d740646..e8dad3ff4fcc 100644 --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi @@ -780,10 +780,8 @@ pcie1: pci@10000000 { phys = <&pcie_phy1>; phy-names = "pciephy"; - ranges = <0x81000000 0 0x10200000 0x10200000 - 0 0x10000>, /* downstream I/O */ - <0x82000000 0 0x10220000 0x10220000 - 0 0xfde0000>; /* non-prefetchable memory */ + ranges = <0x81000000 0x0 0x00000000 0x10200000 0x0 0x10000>, /* I/O */ + <0x82000000 0x0 0x10220000 0x10220000 0x0 0xfde0000>; /* MEM */ interrupts = ; interrupt-names = "msi"; @@ -844,10 +842,8 @@ pcie0: pci@20000000 { phys = <&pcie_phy0>; phy-names = "pciephy"; - ranges = <0x81000000 0 0x20200000 0x20200000 - 0 0x10000>, /* downstream I/O */ - <0x82000000 0 0x20220000 0x20220000 - 0 0xfde0000>; /* non-prefetchable memory */ + ranges = <0x81000000 0x0 0x00000000 0x20200000 0x0 0x10000>, /* I/O */ + <0x82000000 0x0 0x20220000 0x20220000 0x0 0xfde0000>; /* MEM */ interrupts = ; interrupt-names = "msi"; From patchwork Tue Feb 28 16:47:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 62557 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3126587wrd; Tue, 28 Feb 2023 08:50:27 -0800 (PST) X-Google-Smtp-Source: AK7set/zZgGCl8+bqHLYqZv+tfQnW6NVe9VshWinLG6JtUxeIiWsAuUp0md0Qw+rqmKKAD7pOnh1 X-Received: by 2002:a17:906:4b17:b0:8b1:756c:1a30 with SMTP id y23-20020a1709064b1700b008b1756c1a30mr3026917eju.59.1677603027238; Tue, 28 Feb 2023 08:50:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677603027; cv=none; d=google.com; s=arc-20160816; b=z2WPpRgRdr4S+gWi1tNTP43hzCFKQxDMGUG4D/PH2QqDG6e7QJIUd28Sb1LkO/Kyy3 HvmX5DzZREqtS6xdm7ys6IgvFUVF6nrCgPyyvGNIf9R0xG+WIzH8w9xnNC+2k6FTb0LC yG0FQ8uAGvgBsKnIGxPOpEir/fo9L1WGxkdDZoJc6C2cBLWSBBMdY/z6fkjnihGKZPqq Ay5EJmiySBfguNIdhT2q3Neb7ZDgQ9uGKzlSHP1hQg7ke4kwr9cs7A7X+1a/0MrxdJku nabWmPUoLDD+JIGuJ8z6ZxPCscqiE8FF/m+85PMNn69cNbq1WPdXJNXgpA8oKuqBKtYO C03Q== 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=yMT86nrHzPSxGBZ/YRk6XzVa5pJnZzZgLjUIgo1IxaY=; b=OaoFQeNZFt/7efUFs93E/M3vAxYmfJ4XWfWS073kiyyijcdTGzQc2+S5tf42jrkzyP caz56CkTD/daUCHHvqrIRY7h+SEHhra6Z69CDdTQASMBCYabIi7Dk2Zj13pQbZFcyeKH 1Yq9zNQK17RGrZfhoflhyMOfqVrtxGOIhXBqPcJrA4Km7C0fGlXs0ojvFOfbQfQIQyv5 FQkBnqOTdHtZQcbKPu14eGkrGHwhvmG8QwBTeDUDjxOBItFJWXjoeUt+bVeP92XXnH+Z ucY+Bv77rUh5q/KnqbiUUJ9+mdW1oOzGWNmEv5rUhMM8vUCWf7/bZzZdyl4VlRjafIIm zKIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jB7oDfWP; 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 d21-20020a056402079500b004af7e6911b7si1403885edy.91.2023.02.28.08.50.04; Tue, 28 Feb 2023 08:50:27 -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=jB7oDfWP; 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 S229914AbjB1QtL (ORCPT + 99 others); Tue, 28 Feb 2023 11:49:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229888AbjB1QtD (ORCPT ); Tue, 28 Feb 2023 11:49:03 -0500 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D71841B326 for ; Tue, 28 Feb 2023 08:48:29 -0800 (PST) Received: by mail-pj1-x1032.google.com with SMTP id h11-20020a17090a2ecb00b00237c740335cso9151208pjs.3 for ; Tue, 28 Feb 2023 08:48:29 -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=yMT86nrHzPSxGBZ/YRk6XzVa5pJnZzZgLjUIgo1IxaY=; b=jB7oDfWPSVXMCVhZ8ADgU4e/79nxugqvjsVsgURBen7juf5SVLLNxZb+Lv/oJG9LDN 7KYfj/y2TV1MvrMP4vSF4I0jsLE4YNzLU8KAc0jkKEppBXDzFWF7za8h2Ja6WjB/wPjd SxSgilddX1BzgCc8wQXoLEkSo4BOoZox9N5rvQ0NHlZDrDGHK7dEFD/c5n5VXpcyB6F3 ZOwlEGcdhwfaibyQO149ZBkbG5rX/Ktfyzb9UxnEdI3RnnaL5vsJFsWzwC8fi5yrsJrO U5PKQZaB9PTbZQX6NPFOFaZBil+QLXHQh00YQquDQnULF7p2hcwyIA5ilhiWrbMZ+AFu DXjg== 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=yMT86nrHzPSxGBZ/YRk6XzVa5pJnZzZgLjUIgo1IxaY=; b=wsr+vwCmT9WiaYO5iBfg64YplzTPVK67Nxzduiq+XB5b2UoqorwVMMBe6Fh3zZIPXL 3Pjml22IIZZKkCDrLS8GaFpFB7MJ3w+IkVdILiAJR0AQJwis0jdhes/4orfiFFqYIWJK uafepHLtsB63X1yDDORD7dV73sP8qfd9zvfsdoE/tfApYxw0u7AykvesSC0McwfVLCLK AnSUA+QPRXpBHqCQPZtuvF/EvPKUJ4FO9sJPda2LuwQ3ZzCACOBHLIvz/+ivzI2qR97i 6fR9pJa0Py0bSPFWupV+n9M/WPocJnt+rGoyZcM4sOUwkt5rE2oNWbuAk+crmsykq91m iGsA== X-Gm-Message-State: AO0yUKUIuHrnstF+lYaD3UqSSs0NiFdPn7u48pmrS/2DGdDE/qtvRxZr n+kuMVT7Xhs+RU8q5PwnACSA X-Received: by 2002:a17:90b:4a8d:b0:233:ee70:800 with SMTP id lp13-20020a17090b4a8d00b00233ee700800mr3996519pjb.37.1677602909262; Tue, 28 Feb 2023 08:48:29 -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.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 08:48:28 -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 06/16] arm64: dts: qcom: ipq6018: Fix the PCI I/O port range Date: Tue, 28 Feb 2023 22:17:42 +0530 Message-Id: <20230228164752.55682-7-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?1759094272030858418?= X-GMAIL-MSGID: =?utf-8?q?1759094272030858418?= For 64KiB of the I/O region, the I/O ports of the legacy PCI devices are located in the range of 0x0 to 0x10000. Hence, fix the bogus PCI address (0x20200000) specified in the ranges property for I/O region. While at it, let's use the missing 0x prefix for the addresses. Fixes: 095bbdd9a5c3 ("arm64: dts: qcom: ipq6018: Add pcie support") 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/ipq6018.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/ipq6018.dtsi b/arch/arm64/boot/dts/qcom/ipq6018.dtsi index bbd94025ff5d..9ff4e9d45065 100644 --- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq6018.dtsi @@ -738,8 +738,8 @@ pcie0: pci@20000000 { phys = <&pcie_phy0>; phy-names = "pciephy"; - ranges = <0x81000000 0 0x20200000 0 0x20200000 0 0x10000>, - <0x82000000 0 0x20220000 0 0x20220000 0 0xfde0000>; + ranges = <0x81000000 0x0 0x00000000 0x0 0x20200000 0x0 0x10000>, + <0x82000000 0x0 0x20220000 0x0 0x20220000 0x0 0xfde0000>; interrupts = ; interrupt-names = "msi"; 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: 62558 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3126602wrd; Tue, 28 Feb 2023 08:50:29 -0800 (PST) X-Google-Smtp-Source: AK7set9gR5vE9FGucvGwOlWq5LMfCmsQk4uzoTjhhcBw7DaU9WTWYmraNiCriOWZWZ8PswbS3f9/ X-Received: by 2002:a05:6a21:99a2:b0:cb:9bd0:7ee2 with SMTP id ve34-20020a056a2199a200b000cb9bd07ee2mr4860782pzb.45.1677603029019; Tue, 28 Feb 2023 08:50:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677603029; cv=none; d=google.com; s=arc-20160816; b=CJ+Npv78p5+C0tUUO2ONczK3IGFlJT90CoA71IA3ytCIv4V1rdPBB3AEcXV7I1GYjT LBjzfSlMPCH9D0UcZzP9T0/OdTF7komxTuRI9svu9bc7mmTCdMX+gt4N0IgSf15mMrvb fvaKHVyrLHByBep8i0RTsxSU+ZEEXQfjrIA4kCm/RDjjHLjH11UEEFV+8bHNb/Ta2sTH RYnQyt2ZCkd3lzjGdctSFeVPp7YtzkLxSbEVRjSgLSxR3KoK/7Ihc2ZgK4rpmdYXvZcA 0XIKMylZaZwcMoo7fDCtNyGzHE62nh5oGO0uiTVioemq7dP1K2rkwslh08mDEB2WR+mB sqqQ== 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=TSam4VbhOsjeJo0NIo+Ag2QMw9mjy0Qu1lNaBB69VmM=; b=g0S7RUQpB1gyRpkIIONjnhaSJ16SjemIDGj5L+Y6/Q2yI5puLA7GYrk6c2SiqgtRKL Kx6zddC/2DcoDRMwuiNNtPYQZf83dbjbx1YQjx5PDJOkAg3jqHf0iuJW8fq8ydtSS48L Kx6STgdc0CSraby1Bra305tlpY6TdqXW0Kz/yLlZ/mR6m76lQ9PTmJSqHTkUY99vUpqh E5FkWVJeFTAViiSK7NZIeSQoQ7oAH5qBqf2DyunRj7Y5JsZWMI3qVzc3e0VJlT2EFhN2 9dakbPSrjI9i16ChbgGqJVTvH/4EcuBFe9DBI+RUaGJbq79H6Y413+MY6yipXRZHn4vj 9zsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VlrDwcjf; 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 h184-20020a6383c1000000b005030eb0e2f8si10339197pge.614.2023.02.28.08.50.15; Tue, 28 Feb 2023 08:50:28 -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=VlrDwcjf; 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 S229927AbjB1QtN (ORCPT + 99 others); Tue, 28 Feb 2023 11:49:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229836AbjB1QtI (ORCPT ); Tue, 28 Feb 2023 11:49:08 -0500 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1F4B1D910 for ; Tue, 28 Feb 2023 08:48:33 -0800 (PST) Received: by mail-pj1-x102a.google.com with SMTP id m3-20020a17090ade0300b00229eec90a7fso2006863pjv.0 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=VO9PuXMrwwBtTFBOKhOov2QkYd/EFDa8kSOvOMWRHq/xYIfuH06rEdiT4lGuQFUoPo XoxtHoJx+aHWQZunWM5hsb+9/TK+nHSy9FCPw1CkFJneuTSj/Q54poDKk+FtnfElUs6S nGFN6UVuS3honyqpXRxwadlI+twaZ+NplouHG3ltLOYNRV6GmA3L3sAHrE6cj1l9eZF2 f1Mio2WK5zV3uj7/9gqNSo2nzcWmGgDQYCq5BE8jni7SgKblHG0FbaSJP93vdk6o9Raj bG0Fm5Vbhs6JjibpZtmgmmxE4MAtjJzFNEzIGhqlLwZ8xOizBLDBCrXisX1AxMFpVoK6 B2xQ== X-Gm-Message-State: AO0yUKVnZCiH4IYCBQ9PniEY7PdxfwN+HOOwKxqz/b1scpAtUWXQGsg3 f/IUYJSulNFplL4nWzqlFYeS 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 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?1759094274247699015?= X-GMAIL-MSGID: =?utf-8?q?1759094274247699015?= 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"; From patchwork Tue Feb 28 16:47:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 62555 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3126349wrd; Tue, 28 Feb 2023 08:49:57 -0800 (PST) X-Google-Smtp-Source: AK7set/N9IvQhskHwHUkVvw8ylKuTPKcR5KbbQgISN21BLRuO4IBDqVSBOTFz+RQU3DlQfcLdZh+ X-Received: by 2002:a05:6a20:428b:b0:cc:b5de:3037 with SMTP id o11-20020a056a20428b00b000ccb5de3037mr4540286pzj.51.1677602996923; Tue, 28 Feb 2023 08:49:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677602996; cv=none; d=google.com; s=arc-20160816; b=p1hEvY24ohkixR8CPhYPC40InaBh5p7mOlELupN09SWeyyZ8PWmWmqBGgwUxwA2all 4MiJV0bfTyRPrp6CloFmIMqfcjoBgBb87m5FTFfqfaMLHHurAEkMeY2fxKVmZ0ojVjCd i+z+nd1jITWVlMJxpX0qWYSYZc0VCOm/pONqG6yPgYeG5goYZiMhRuGOMwZ3v/iqtnmp CUyXHoxXnglWhdcx5x9jAxLGJqU+suECagqAHqKhXtINy7FTQcSBLCyY6+Canza8yQqn ZiiCvEXW5gaqonJMlBRkR/arTHzQgmpqLiA6RXsghEYn8r2gP8bll+Y6JgnRhabK8U3K Oa+g== 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=Egu7jQJZy8HkWWmj+5UtXFJwW1koQiOWuH1rj1qf1yM=; b=uDEh/GWDxMw6V76UeCgGClJU1cjoVIJgxnvzCOuYmHMfSNI3DqfTuQd39ToMfGD+Vp OmL14hWGFhBJshtyDsBRkNrlUfeyLBBZT9Fh4B23UrWgimuDJgJuWC5XdgKl6kkRfeps byJKx/SGu5Al8bposbiJ/Jap5razh710vEN2qFp5KcAxEigd/eKsbWRGzT6025QMXabO ei1rR3CK2f5wlTn5jc7yE1IIZUdfpVDydrzKobQvtGHpSXUhj63xHm3vIhDMOD8aIauH ZkfLPK/92ZLL7idrzqUb9E9C/6OfTTEY85/eyI1gRMY7NuBfR9e1ocdI/TxuNs2us6Jd /UHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gCSSKrWk; 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 y127-20020a636485000000b004fc29da6e55si10790282pgb.674.2023.02.28.08.49.43; Tue, 28 Feb 2023 08:49:56 -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=gCSSKrWk; 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 S229935AbjB1QtQ (ORCPT + 99 others); Tue, 28 Feb 2023 11:49:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229845AbjB1QtL (ORCPT ); Tue, 28 Feb 2023 11:49:11 -0500 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18A262718 for ; Tue, 28 Feb 2023 08:48:36 -0800 (PST) Received: by mail-pl1-x631.google.com with SMTP id i10so11062950plr.9 for ; Tue, 28 Feb 2023 08:48:36 -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=Egu7jQJZy8HkWWmj+5UtXFJwW1koQiOWuH1rj1qf1yM=; b=gCSSKrWk9LNki132BjnUHYHjRHes3gYkjdoEiBMgKbAgNr06yDVV2cEtl21jlsHIWB UwqMkG5o86IfuZUGJd5rHkqA07NUWkak/C1PyNp89zE3gQUvVz09i2fM6mY7h2TVsICm Ezk38skycIZxD81DNKsvNTNSeP88u3mhn441isZCyTSB0gr8RBz2yFUneG3B76LuYBUQ ned6r1JYy0SmQHHJxpMRCMmSpedamq1/XlUF/VNtVWZUNyKtSpocbgg+WmL9chnurjcq XW3fWYzUoTW4GEyU139qLndOoqPUZ9CzqLGcvhjKCkdSGuVoUUrPCR45J5trX4ZdwYVu tF0A== 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=Egu7jQJZy8HkWWmj+5UtXFJwW1koQiOWuH1rj1qf1yM=; b=Hg/Qr6AeXpo6UNRCSKbyefnQpljdd9RGFAgQLN7f00rDOvGgf0mfMyY5WXcImFTjOT Wh78c4csC2oIaofiVkI5q7Xn4AroPk9SsIhZhEwt4qYWxM5YKSa7zTRil/49ywkuBfAI d9amN+QWbyUmPy0A/AK+LunFGilX4ookv8IkMedHRobEiZYpsZthsbR/EyuhzW+1aStS djnaeTmSGpRTjf5B3Yyw6UL4pJ2MRi0hhrIuMhBpfTXP6ih8kyoOTkmt+RtJCBYyvyx+ pWMFvTc5Q0RTtZkJJVfoc5i6VlsF22f9kIiQ4B+M85vumJS/0tNvp5TGoJ/udzcl5Tys 1j5g== X-Gm-Message-State: AO0yUKVbrPx5kjEfxQYw43mKY/7kS12MRIjIdiZy8pJodfHVpS5jZkYP rGmirzyvr4cSICpc6RHflFbt X-Received: by 2002:a05:6a20:6a98:b0:cd:99f:b346 with SMTP id bi24-20020a056a206a9800b000cd099fb346mr3466647pzb.59.1677602915554; Tue, 28 Feb 2023 08:48:35 -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.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 08:48:35 -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 08/16] arm64: dts: qcom: sm8250: Fix the PCI I/O port range Date: Tue, 28 Feb 2023 22:17:44 +0530 Message-Id: <20230228164752.55682-9-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?1759094240183023692?= X-GMAIL-MSGID: =?utf-8?q?1759094240183023692?= 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, 0x64200000) specified in the ranges property for I/O region. While at it, let's use the missing 0x prefix for the addresses. Fixes: e53bdfc00977 ("arm64: dts: qcom: sm8250: Add PCIe support") 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/sm8250.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 2f0e460acccd..e592ddcc0f07 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -1834,8 +1834,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 = , , @@ -1943,7 +1943,7 @@ pcie1: pci@1c08000 { #address-cells = <3>; #size-cells = <2>; - ranges = <0x01000000 0x0 0x40200000 0x0 0x40200000 0x0 0x100000>, + ranges = <0x01000000 0x0 0x00000000 0x0 0x40200000 0x0 0x100000>, <0x02000000 0x0 0x40300000 0x0 0x40300000 0x0 0x1fd00000>; interrupts = ; @@ -2051,7 +2051,7 @@ pcie2: pci@1c10000 { #address-cells = <3>; #size-cells = <2>; - ranges = <0x01000000 0x0 0x64200000 0x0 0x64200000 0x0 0x100000>, + ranges = <0x01000000 0x0 0x00000000 0x0 0x64200000 0x0 0x100000>, <0x02000000 0x0 0x64300000 0x0 0x64300000 0x0 0x3d00000>; interrupts = ; From patchwork Tue Feb 28 16:47:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 62556 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3126507wrd; Tue, 28 Feb 2023 08:50:17 -0800 (PST) X-Google-Smtp-Source: AK7set/d4N+S1TxdfT4fLwZnrdK6J4/yLTiZogYGACiFaoxr4VH6Mbp2/ppvezjM0qx1aT4j2pDb X-Received: by 2002:a05:6a20:3949:b0:bc:bdb1:165a with SMTP id r9-20020a056a20394900b000bcbdb1165amr4507935pzg.39.1677603016784; Tue, 28 Feb 2023 08:50:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677603016; cv=none; d=google.com; s=arc-20160816; b=Cur3Em2VBr5JU2P1WLR8yZqk3lb5qMqvA3ewVfnm0MzhEUdHY12jVJULjTQxktz+uf jMjU3Wxo5bNPMEh8HcUZ1GDm0XiSz1nYMsms6UDk1fGm2vYe2f8sa5Tn20g4VEeNUEoX yHxn1vareR8tESuLQvY4YBiLbmF4jk6gKG4ijeJV36NXwHXnxSztq82rq/sg+73H7XW4 M/B37mcGgp5T1RJCMIW50dTehH0z/eyXZjn/u7moKVR3WXiycQI44Hsw43jkIxovXhZf FVAC/P4HCXnUHz26OjR1rtbR1Swu4xSBQ6hh6jY8fyEk/sBr/x0RudiFazoXG+bqn873 tZrw== 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=iCF3zMena4srMKCl++MLXI9r0aSG+VyTVbPdBKzJEi4=; b=RD9ihuVj0Og2rNVp2Fssynpj5Pb0gJLXf8Qm0sAGZPmq8I898d40nWBa0oItGi6QLx Zlgr1PbrewoLnFVZpGm6zdEvrD+jxubF82LMOJJC4kJ3HD5+2qRak/XChR1iGz6XC5Ro 5S6B9Ssu9AmiNcksL2l3ppaPZEUOXra7sYAYxWs7bueFRFwhPtB1RiuZlFHpwMzVA3ss R6LoYhyR8ygNNOW0ELgBtL3fTIwFmvDNJFMoej4NORhQOTCxpDZQ5BpUrH0cg7AAw7jm tN7+Dg1Z20RWwXqZ9jeSDERNaEPukZ3c5TmLy5kHRr9f8YSI9Ax7UE1ZEFegBKocVpck DsrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=D5pqPo3m; 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 k14-20020a633d0e000000b004fbccf99912si9868094pga.311.2023.02.28.08.49.47; Tue, 28 Feb 2023 08:50:16 -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=D5pqPo3m; 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 S229947AbjB1QtS (ORCPT + 99 others); Tue, 28 Feb 2023 11:49:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229921AbjB1QtM (ORCPT ); Tue, 28 Feb 2023 11:49:12 -0500 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40B84211D8 for ; Tue, 28 Feb 2023 08:48:39 -0800 (PST) Received: by mail-pj1-x1036.google.com with SMTP id x20-20020a17090a8a9400b00233ba727724so1987162pjn.1 for ; Tue, 28 Feb 2023 08:48:39 -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=iCF3zMena4srMKCl++MLXI9r0aSG+VyTVbPdBKzJEi4=; b=D5pqPo3merhk9oD3FhSnvSQLqHAHFy5+A1SOSfM9eRfb77uCtW1acgIlLEBNAJ02xp 6j6YQuEsj9vIKfyT6bYXZMJLd8Eo/fK83StNPZSTkpcoeZd3lbYQCYDsDSTyfA6V5FZ8 Pn/BKNYa3CxlvN8NsyOJe08hIt0ygSVvO2CzTFGz4VKYDSYc4Lp0vrrBgwYqAHpJ9qk2 z8qxKBCF0fh7d9QTPmx8EHsKsCJ1hYPQ6rzMQBS8xmyYyj6K1EumW0kPKGOL1ex60Si4 bbg1pJW0MOUUHiU6cJ0Bp7QfH9lMLz8ro8f0M0YFaVlhvHZyxFGjjxZfC5I6gYtDgXs3 C/Lw== 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=iCF3zMena4srMKCl++MLXI9r0aSG+VyTVbPdBKzJEi4=; b=fI/cqFMOOV5w3btMfYGrX4Q08KXmVBcYOGkMXX/UqFaANP9QMqRhFOf8bB3o3O8dRI AXMoXsYL5MidZl/f9csUJsA01S7cl51gKp0z0zZkVUqlh2VviEkVhJQWI1AAGSrNDhaN hmYH8jLUaf9h7r6w3X199YSfSN5Ga/zDH99RRSRipYBGbXls7SZlUJW2kZacb30UPnEm MxcZOshlz5xRBK08k2Emfepsa9wQAKRVR5RW855zE8+GLReEQkkkOvL7lJxAJ4QuXowR XMUfrT7amwy+1m4yhz7nxagJ0WDxhzvNmcpcsiPNL1tlBTMp2HUBC7GPtNArZDzn1S5x AMKg== X-Gm-Message-State: AO0yUKVAwGDYyZX0gqV+csqWEAH9/v+FMOZH7wgukBGMts4esHNrC4wP VlkTMxS3GeNgcbLSjeJBfGiY X-Received: by 2002:a05:6a20:428b:b0:cc:b5de:3037 with SMTP id o11-20020a056a20428b00b000ccb5de3037mr4536707pzj.51.1677602918753; Tue, 28 Feb 2023 08:48:38 -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.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 08:48:38 -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 09/16] arm64: dts: qcom: qcs404: Use 0x prefix for the PCI I/O and MEM ranges Date: Tue, 28 Feb 2023 22:17:45 +0530 Message-Id: <20230228164752.55682-10-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=ham 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?1759094261053263892?= X-GMAIL-MSGID: =?utf-8?q?1759094261053263892?= To maintain the uniformity, let's use the 0x prefix for the values of ranges property. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index bc2ed73afb74..42fc33ab8b2e 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -1469,8 +1469,8 @@ pcie: pci@10000000 { #address-cells = <3>; #size-cells = <2>; - ranges = <0x81000000 0 0 0x10003000 0 0x00010000>, /* I/O */ - <0x82000000 0 0x10013000 0x10013000 0 0x007ed000>; /* memory */ + ranges = <0x81000000 0x0 0x00000000 0x10003000 0x0 0x00010000>, /* I/O */ + <0x82000000 0x0 0x10013000 0x10013000 0x0 0x007ed000>; /* memory */ interrupts = ; interrupt-names = "msi"; From patchwork Tue Feb 28 16:47:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 62560 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3126667wrd; Tue, 28 Feb 2023 08:50:34 -0800 (PST) X-Google-Smtp-Source: AK7set92vmA0qc3s5usG3S9wyKG6r3NSVs8eoUF0rRrEZBH+LL5lxR9KTjr288eTRlAsjD9LcWl/ X-Received: by 2002:a05:6a20:3d95:b0:be:c5de:7157 with SMTP id s21-20020a056a203d9500b000bec5de7157mr4779808pzi.53.1677603034053; Tue, 28 Feb 2023 08:50:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677603034; cv=none; d=google.com; s=arc-20160816; b=Y6Ngy3MnJ8jbtADJ78QDYkEEkFnZNhBPJTP3xnpw+KtekUaCKXzDGXFCFLRlLNnRvb 0xS39pYBKdsvPCLsZmzlPaAkiD6HwdMpGpfl/S1EZXEcYs3F1cnzc15ImYa+pMqed9vj sFzIkaZNlW40eSBnsZaTZ6CYdMrmHxyBLMKg+P2n0nglhp1HaAbMn3j2pcs8AMlqJqNy bdDsTPPqqT0Abw9T9dn7mM8bSKBdwoz8wnWAtu4Kf4CMX23EuSPpJ3B33BYspENPkR9c 2M+iwlKeRhMActuuQLwH4qPSxL7Cl3ILWlU9EOc432J9YqsM8B0uFTrSW7JLtRWlG/Lr RaeQ== 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=+mOXZ9qyQvv5sAkxxgH4iBEQJ9SxMhQVCvClo14WEls=; b=xRDYoijtqy0+IYcpo+hkjjkzUhjmiCtDJZFSfB4wuSENSRTTRR901snI6EsQ6ZBACu H4H5R1qOVyY0jWrks3l6gXfbpKjxIXBpXAxG2WZcji5Z/7F9zAPJiP05xswIwzBPAJh4 vMrDD4O2byFxDi+ZfutxSANpWR4KM50BFL4PYRTY+HLZ4mRmaOB5l6ziaICBnTaC31nI WTueQ2w33UcyCkhIMyJDD6srDnkXjmMQOkBSEt5gnivNhymtxTiK+LVeWBLyorgxHKNf mGgbqDJsm6d86Xxd6jGGHSfTWbu7lrTmyYE/Wt+2a0rCs2HaZFyAGKhqvwOL4YM0YHRo 8imA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XT9Ge0az; 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 l11-20020a65680b000000b004fc25858c33si10163692pgt.506.2023.02.28.08.50.21; Tue, 28 Feb 2023 08:50:34 -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=XT9Ge0az; 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 S229940AbjB1Qta (ORCPT + 99 others); Tue, 28 Feb 2023 11:49:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229934AbjB1Qt1 (ORCPT ); Tue, 28 Feb 2023 11:49:27 -0500 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DCBB241E0 for ; Tue, 28 Feb 2023 08:48:43 -0800 (PST) Received: by mail-pl1-x62c.google.com with SMTP id a9so951898plh.11 for ; Tue, 28 Feb 2023 08:48:43 -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=+mOXZ9qyQvv5sAkxxgH4iBEQJ9SxMhQVCvClo14WEls=; b=XT9Ge0azEd179tHlw2pSwavkiX0F9mGy47gdOEuNULHly3fiCsNMl7Tqn5xPYhNVse IYHBsvuwFB/rtt6CnWX2Eu0YOeAWacGkFLQ3vvnJ6doGAo5imhBNdsUk6BNsf9RWIF+E LQZouNgcGpKt6mqX/7qhCFuxeTD4QtmXAa7+Y0wZZDsqjB+YJ3N16zYdElts87jbfWhN 1JBvu+J4BLTrJoqSbJst/Mju5xvXoAP/z03RgIpyPHqCaxqtuwhDBMYjfaJ4l5u9bHDh 9JVl7SS/ZPrXpJsBW2dHWhfY2iIN9R/FnPAmMILB4oksgJD2yyNsZhJv7HGHAfmetspH Gbjw== 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=+mOXZ9qyQvv5sAkxxgH4iBEQJ9SxMhQVCvClo14WEls=; b=g+oEMTZKdhmV2+eMq6CkX2zcudPQjsTOzrXw7/yNMk7jqYKsfckLAsGt3rgkHnBarM ftyZzMq4B7lLRGVtih6xTlbVHCcFAE5WbIVete5WQJ4oZMLT+IRzjnGzIJGtDhqSYbmx W8thoYIWHV7eLBJt0E3xETK25izu2lnrBSmxdD8Et2k27ZG1pVvAL/oqN14WDa/8UrD9 Av5JrB5SCZ8OrvugWax6FwxvivT8VSz7CaJWX4ooKdpbzsoMJOoFY/rvcBuBzRZ6dZXt 1QRjrooe9dCGnReaxDfYrTEwuZf8ARYKGWCyx/VLPfDup/Relz6OtxlckC6tVgvQeHH8 UXWQ== X-Gm-Message-State: AO0yUKUWq7+uKkHQIWl03kDjD/w4EHYUdMK7DfZ2lRl2yLJFvkCI7O9d v+Qm136aoiFpPavLbU+KJg/V X-Received: by 2002:a17:902:e801:b0:19a:b4a9:9df7 with SMTP id u1-20020a170902e80100b0019ab4a99df7mr3750511plg.53.1677602922957; Tue, 28 Feb 2023 08:48:42 -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.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 08:48:42 -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 10/16] arm64: dts: qcom: sc8280xp: Fix the PCI I/O port range Date: Tue, 28 Feb 2023 22:17:46 +0530 Message-Id: <20230228164752.55682-11-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?1759094278664743471?= X-GMAIL-MSGID: =?utf-8?q?1759094278664743471?= 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 (0x30200000, 0x32200000, 0x34200000, 0x38200000, 0x3c200000) specified in the ranges property for I/O region. Fixes: 813e83157001 ("arm64: dts: qcom: sc8280xp/sa8540p: add PCIe2-4 nodes") 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/sc8280xp.dtsi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi index 0d02599d8867..a0065656442c 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi @@ -1657,7 +1657,7 @@ pcie4: pcie@1c00000 { reg-names = "parf", "dbi", "elbi", "atu", "config"; #address-cells = <3>; #size-cells = <2>; - ranges = <0x01000000 0x0 0x30200000 0x0 0x30200000 0x0 0x100000>, + ranges = <0x01000000 0x0 0x00000000 0x0 0x30200000 0x0 0x100000>, <0x02000000 0x0 0x30300000 0x0 0x30300000 0x0 0x1d00000>; bus-range = <0x00 0xff>; @@ -1756,7 +1756,7 @@ pcie3b: pcie@1c08000 { reg-names = "parf", "dbi", "elbi", "atu", "config"; #address-cells = <3>; #size-cells = <2>; - ranges = <0x01000000 0x0 0x32200000 0x0 0x32200000 0x0 0x100000>, + ranges = <0x01000000 0x0 0x00000000 0x0 0x32200000 0x0 0x100000>, <0x02000000 0x0 0x32300000 0x0 0x32300000 0x0 0x1d00000>; bus-range = <0x00 0xff>; @@ -1853,7 +1853,7 @@ pcie3a: pcie@1c10000 { reg-names = "parf", "dbi", "elbi", "atu", "config"; #address-cells = <3>; #size-cells = <2>; - ranges = <0x01000000 0x0 0x34200000 0x0 0x34200000 0x0 0x100000>, + ranges = <0x01000000 0x0 0x00000000 0x0 0x34200000 0x0 0x100000>, <0x02000000 0x0 0x34300000 0x0 0x34300000 0x0 0x1d00000>; bus-range = <0x00 0xff>; @@ -1953,7 +1953,7 @@ pcie2b: pcie@1c18000 { reg-names = "parf", "dbi", "elbi", "atu", "config"; #address-cells = <3>; #size-cells = <2>; - ranges = <0x01000000 0x0 0x38200000 0x0 0x38200000 0x0 0x100000>, + ranges = <0x01000000 0x0 0x00000000 0x0 0x38200000 0x0 0x100000>, <0x02000000 0x0 0x38300000 0x0 0x38300000 0x0 0x1d00000>; bus-range = <0x00 0xff>; @@ -2050,7 +2050,7 @@ pcie2a: pcie@1c20000 { reg-names = "parf", "dbi", "elbi", "atu", "config"; #address-cells = <3>; #size-cells = <2>; - ranges = <0x01000000 0x0 0x3c200000 0x0 0x3c200000 0x0 0x100000>, + ranges = <0x01000000 0x0 0x00000000 0x0 0x3c200000 0x0 0x100000>, <0x02000000 0x0 0x3c300000 0x0 0x3c300000 0x0 0x1d00000>; bus-range = <0x00 0xff>; From patchwork Tue Feb 28 16:47:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 62561 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3126677wrd; Tue, 28 Feb 2023 08:50:35 -0800 (PST) X-Google-Smtp-Source: AK7set8v5RGIH97Bl40G+2J+grB481PPNmJmRM0F1Bh+bzTjvFnvDhbN+9uPxgNl13sVpSZtSo3G X-Received: by 2002:a05:6402:451:b0:4af:59c0:5add with SMTP id p17-20020a056402045100b004af59c05addmr3548168edw.37.1677603035738; Tue, 28 Feb 2023 08:50:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677603035; cv=none; d=google.com; s=arc-20160816; b=LNmVaES2qFZNxvCT7j1u/D+8deQ1S9+W/hZKWw9x/9b14rtibWoTv/vdgk6fWLQcWj FZDqMubHXAJHity8u5HJ9pljqpCb++La5D4gMRZ3/BBE9CCfiEdKfMUFwytU+e+/eHxJ LwyU3uOr7cmyONkhNWYSubvkfa6SSRFfrHI7qFpePbVVJIbAXYGiTWSeoL3tbyxIyF1A PmbpRnwHnu3jQhD2Qc2U80eftlOfvqzi0K29Escv1kw9XxEwXXqlsDGVYBXwEXZ5+0OM JcFI2D1qVNcmrFlgLC8+J1Cd4uBtXPZBYJVVwU76GgcsuuT/TG3cRxf9fqkUxKHs4ZbV WuHQ== 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=2eEMB9s5VCpJlF9KahYvaWlXJSQFG2Rpw7o2twh3Yp4=; b=hsnROZNaJklLys9BCbt26TgWsn8xqlNfcUu6dSf1WLCWivxaJXsIXqa4ycA/PrS4DC OeIH4szThzfZVDOgyo0yU7fksSlGKHl1POn1/hG4oJQSlLi/AeUbCfKXQW6H/uu1ymaK oQfwt8EN+ue4uLhIHcsuW/UE5+ccBG4N6ez2lc30VScWSVBCrnnDmX74K9oUitKcorpz N1RjnNyYPM0qKMs0KVRiZ7V34cSzxXvV4gW7fGp1HaCkoy6WmtfG9Vy5SXDrozt6LDxX BMejgpZQerISQqWYGqlW1XhP7pf6X7LTjOPtJ/LlhYyQ6/rOLnrj7bQDIuFggBXpaHpu BZkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FQuMVxez; 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 s10-20020aa7d78a000000b004acc454abe7si2306707edq.260.2023.02.28.08.50.13; Tue, 28 Feb 2023 08:50:35 -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=FQuMVxez; 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 S229974AbjB1Qtc (ORCPT + 99 others); Tue, 28 Feb 2023 11:49:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229969AbjB1Qta (ORCPT ); Tue, 28 Feb 2023 11:49:30 -0500 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A83472CC6F for ; Tue, 28 Feb 2023 08:48:46 -0800 (PST) Received: by mail-pl1-x633.google.com with SMTP id ky4so11106780plb.3 for ; Tue, 28 Feb 2023 08:48:46 -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=2eEMB9s5VCpJlF9KahYvaWlXJSQFG2Rpw7o2twh3Yp4=; b=FQuMVxezTSRZiRV5XbRKPIaYLXP4B1Y3xCIXmpl9/LzT48Rm7keCfUTlCATPIUH/XV mablt9ofSz3ZxMN5qztABjuTS2KLkTpJzsqic3rbJk4Kxye9+sn3GgxmWYUzn5Roq4vP JduDPsRwxCalnhgQbGrqutA8D3d+H5z1E6iDXgKP/z6rjY+MtuA2xmKcNTQ+oA9RtQmN BYWMv/jnzfuwZevBi42gKSn0Jl2Aq06fF/KJ666tgZterkO0ywPkQ6j/WdDdPyh7huZe X56RATdR0zrQYI4fDd1VKTNy8yf1v0vEAQL01FIH2qVrZ84OHyLlijOt+/ot9zu9+uQy u+iw== 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=2eEMB9s5VCpJlF9KahYvaWlXJSQFG2Rpw7o2twh3Yp4=; b=oBOWRsUCxYbz+4hOKVTt8OB7ZGNwGD3/NzZGsbHvuBYsqPw5eqfK9ZjlTHotFb60au gLsvbjlM9qRh1ndId+RsONe5aOiqBvi8GHJn0I3I8kSnCJEUKXP8zCqz6FW6WPiuJMj1 qujLR3Z/bsrz0wUqKZnf/jGB3y6xiiYw+gvjUdCHtsz3MCIxsyqVgXLV7HA7fQgw46k2 HpGkSrjq3DaLEPMY41eawA6BR/fuH2Xc8pnGjN60RQwT7SIRHpweXQHLV63PjWUaHdKX MuFS5NkMnfc22irF8wIM1yhZ3A7K27lfscdJf4C+620WdA4d46sbvVxp6dzKJ7paOg8b ytzQ== X-Gm-Message-State: AO0yUKUqOlI6e+KqnQnl/QmCQZS3LyPHaxLXB/jTUEwC5GrkiVtnfppD XhTiRgm84aycwgAdKIKznfyB X-Received: by 2002:a05:6a20:431d:b0:bc:8254:ddff with SMTP id h29-20020a056a20431d00b000bc8254ddffmr4842486pzk.1.1677602926154; Tue, 28 Feb 2023 08:48:46 -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.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 08:48:45 -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 11/16] arm64: dts: qcom: sm8150: Fix the PCI I/O port range Date: Tue, 28 Feb 2023 22:17:47 +0530 Message-Id: <20230228164752.55682-12-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?1759094280948193012?= X-GMAIL-MSGID: =?utf-8?q?1759094280948193012?= 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: a1c86c680533 ("arm64: dts: qcom: sm8150: Add PCIe nodes") 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/sm8150.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index fd20096cfc6e..1fabfa05708c 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -1799,8 +1799,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 = ; interrupt-names = "msi"; @@ -1895,7 +1895,7 @@ pcie1: pci@1c08000 { #address-cells = <3>; #size-cells = <2>; - ranges = <0x01000000 0x0 0x40200000 0x0 0x40200000 0x0 0x100000>, + ranges = <0x01000000 0x0 0x00000000 0x0 0x40200000 0x0 0x100000>, <0x02000000 0x0 0x40300000 0x0 0x40300000 0x0 0x1fd00000>; interrupts = ; From patchwork Tue Feb 28 16:47:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 62559 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3126634wrd; Tue, 28 Feb 2023 08:50:31 -0800 (PST) X-Google-Smtp-Source: AK7set/bV5Mto+S+yJ89wnQf0fZXsOpLtQ7WVuTHO5fjwbmL7LY67BKP8FWjOQef99STMFRHUt8u X-Received: by 2002:aa7:8f2f:0:b0:5e3:af7:3bdf with SMTP id y15-20020aa78f2f000000b005e30af73bdfmr3125590pfr.30.1677603031676; Tue, 28 Feb 2023 08:50:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677603031; cv=none; d=google.com; s=arc-20160816; b=LDki6VYjP4ELc39x9GfhHkRKBML81/ntdKJUUs+W7VKzDUOjrjcmgH4WeuiDjReRSy SFkr1tiMZcaOppIAKQbxpQczcV2HB9cHOqJHfJ3ksoXy4E1SH3/lhgwSDxhZyyeRhgUs lHPV6AnZz6k/N0X2l+lkscbAAxM48cKcQ2+gKLhO4HrQi3aCmKFq9kBfu6EAWeTOEibV 51ZKTSyVBpThDoDDDMGjSf8TeGu4royYyFp3perVqKQyzf/zYCKqxQCXbToa2oj9TpLx Fc/zUMgfp+43BmzgczuYrGAhxjYPW09HjmYEpjCqps/oOaUUa6wM8xGk4jE48mL84UtG Ufgw== 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=DvVb9HJYFQbn7yHRn9yj9W99uSe4LLme2syu2gv/yok=; b=hfak4q8lIQnuwq4JCv7ook3Isf04gB1zo/VzEoua7v9uEeN8vXDxq+FvSrR/QmR70z kUqeQw3VtGHfFFCtVABgjOuBUJoZdXn/2Uci9BA4uEJnp+ergJv18ssxxvEUc8J6o62i goLKhLzaqxZAVvqDBuuXWiIolE8ZvmJsAb63truqbYka13VsZdg6SH5XrbHazf826/Jp /s4SFCLgKtFCJGp4u/Iu6iNny0619/fp57MVohyAsphpMyvIzOeVYqIjpSjVl4vT9sI6 HYKqtmOewTNlBPmjIcXg+RuJFCEmgtLybrhoT4kgOSfnkMecehq0sT2kexKRiXXZ8dFW 81UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VvjLgfQ7; 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 b207-20020a621bd8000000b005d24071d6dbsi9782515pfb.153.2023.02.28.08.50.18; Tue, 28 Feb 2023 08:50:31 -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=VvjLgfQ7; 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 S229986AbjB1Qtp (ORCPT + 99 others); Tue, 28 Feb 2023 11:49:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229984AbjB1Qto (ORCPT ); Tue, 28 Feb 2023 11:49:44 -0500 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AF712ED6F for ; Tue, 28 Feb 2023 08:48:51 -0800 (PST) Received: by mail-pj1-x1035.google.com with SMTP id qa18-20020a17090b4fd200b0023750b675f5so14295632pjb.3 for ; Tue, 28 Feb 2023 08:48:51 -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=DvVb9HJYFQbn7yHRn9yj9W99uSe4LLme2syu2gv/yok=; b=VvjLgfQ7vFsFQ/vj3DrqICaX5TT+Kxccgx1iR9NnuHBO3+TBXnSGbzXfHuSD+9oVqF d9IUVE4UwlNkkPB8/QpUhs+w0yxwtkqZZqiU1BCkMq6OsuKvmqUWKN6EPygi1ilGEu0b xq8IJS0ghRrZjRWX7bcbcLP0b3k+gq/I0WQCHAv09rpMs0kD5sdOkPQHZEZYbrHpNYFM MrFCJJGR67qeyQl22UMRir3x4tW9F9zb4TY1TH0iqypUgRT0WUzVRWrX4v8wETZChTTS aWuSRU2lTAdbHxMLmUwj/oQstVRLFSW3/WuYM1beqGqo/fdH+PZTa4sDTagsLOeUc03Q BhCA== 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=DvVb9HJYFQbn7yHRn9yj9W99uSe4LLme2syu2gv/yok=; b=b36w9tB98Cjhd14zdCLdn/gdokK8NXl4vtm+aP+ucjK1AJ2Pk6pw21HrD5FKSPFj1o HJXmBQ9hirSP2wF+oouTJg/LXU0tT/Xp94B/8w3Whq0IN21D8hjAlWwDCZH8p+fD/J0t q2Ar0OVckgdMDgOg9J7me87vWibPMk6C812X4/bJ6i0f1eOzhkXGPZ6C6q9cPiQNLj8r 8FknhxN82BMJtou81slpakuq8SSOTmG9VqxJATyMH6IbbtQfmXpTiVrtP1zZtC6dBFqD EX/NHvZw0UFIO3GqIXVoPffbovlUtLuFqTKZi8Yntjwai5P7AUAyHIKC7me7EEEuV0d0 OCrw== X-Gm-Message-State: AO0yUKXKySPUh/5gxGNR227dewKU9Y3Oy4InmMGVmUR/m301iFDhCtxD d8Umgm9vXUwYgbFZEPNHuh6D X-Received: by 2002:a17:902:9a47:b0:19a:ac09:757b with SMTP id x7-20020a1709029a4700b0019aac09757bmr2897365plv.10.1677602930822; Tue, 28 Feb 2023 08:48:50 -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.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 08:48:50 -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 12/16] arm64: dts: qcom: sm8450: Fix the PCI I/O port range Date: Tue, 28 Feb 2023 22:17:48 +0530 Message-Id: <20230228164752.55682-13-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?1759094276660838274?= X-GMAIL-MSGID: =?utf-8?q?1759094276660838274?= 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: bc6588bc25fb ("arm64: dts: qcom: sm8450: add PCIe1 root device") Fixes: 7b09b1b47335 ("arm64: dts: qcom: sm8450: add PCIe0 RC device") 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/sm8450.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi index 1a744a33bcf4..3c9b9425da12 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -1746,8 +1746,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>; /* * MSIs for BDF (1:0.0) only works with Device ID 0x5980. @@ -1862,8 +1862,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>; /* * MSIs for BDF (1:0.0) only works with Device ID 0x5a00. 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"; From patchwork Tue Feb 28 16:47:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 62564 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3130110wrd; Tue, 28 Feb 2023 08:57:47 -0800 (PST) X-Google-Smtp-Source: AK7set+oSTsJ089i3P+XEMZhNx+XbeKkB9HkhqEXMldRyLDaakazmLc4/4ce5JiT06ddsYP5+7lz X-Received: by 2002:aa7:c489:0:b0:4ac:c9d8:d74d with SMTP id m9-20020aa7c489000000b004acc9d8d74dmr4399390edq.25.1677603467273; Tue, 28 Feb 2023 08:57:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677603467; cv=none; d=google.com; s=arc-20160816; b=dt4bnVRurygbRMbxtCsKubaaUkpvh5DwnxB+GIX7nj2XZNY57KbczP8xgFbU+RoKfo Btu5BYU1n/rQxxiAluzWKZNL3bvrXX73FpJowZxzcRPf+J4LZNbcCzv3X68EgQzjs/Z3 ntEuzvDVs8eg0rPSa0ANuJcQFqWytl/JY9J284DH926hE7yy3SywrlKhIAVuBllfvz1E l3JR8mU448B/edVEzlEUmENFvWSsKsOcchqV5nqEUs1JNk+4nevw0Oc3g78UwHyjO33u tLLlL0GTEqZLSj3ne7V0STtF6bN0Bg4sgCDgccwMCwhfTXrmySe9VwMDE1Q8J8unjaJ4 /5pA== 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=mS14RoV+P3AFH8a/cHRRDGPu5wgcpokXNUSOl49FuEQ=; b=arJaq9YVse0yYwugto0XmNxJSj3iBpOUxpva4qalFX2KjvB7WK+BZbzUaMHdTSpjkb WMLQL/As0wDvSVUAKgDJ6vVC4hbjpzFrGrApv1AVkvP7+mqpth0t/Gd4CZG+BlzDcT0S +ncP95WIJSMMKKetmuPoBv+4dOlYc0HOEneRUOM1onpnCmmiw3TykWh16sMYI/AwwXaZ xr2X9GxVr+1z7dZOoXXBolkNmKQgS1nXy7+rlGSCwciCBc8vpvYWd1FLHb0zsEJDP6VF uv9Ndx3R+2iaaUm0xPhTUHPlinYQQvpJ/TrH60C5rmVeh2RftnGKfE1dl6nafjnm5Hu9 T1Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U44EcFFM; 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 n7-20020a170906b30700b008b173767a20si2575160ejz.521.2023.02.28.08.56.59; Tue, 28 Feb 2023 08:57:47 -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=U44EcFFM; 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 S230022AbjB1QuI (ORCPT + 99 others); Tue, 28 Feb 2023 11:50:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230024AbjB1QuG (ORCPT ); Tue, 28 Feb 2023 11:50:06 -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 D94E734F43 for ; Tue, 28 Feb 2023 08:48:57 -0800 (PST) Received: by mail-pl1-x635.google.com with SMTP id i5so9393188pla.2 for ; Tue, 28 Feb 2023 08:48:57 -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=mS14RoV+P3AFH8a/cHRRDGPu5wgcpokXNUSOl49FuEQ=; b=U44EcFFMQk0/IWAhWFePxyUVQM09DsReR8dgGZslsw2jTu3J99TAwmPDyvp/PwzAs1 Pwp7zvV9vUuXwUd20GINMVc3AlxOAhQIAwoeSoyuikuyY9Z/PL98SqluFw1ODw8LerQR 1T73IVBtxYyIvSGK2No9Rw+o0svL3coZGVX35vh25HjE5BXelbakbibQ/bnncnSSpJp0 fmY/KhzkOnwKFrhcjIil5S86vtiMnUyfo/oJgJIA6goB/BzdjDalo62smJJlHMBgF4uy CUayKp6+GAJJEAE4eJvkrd0HWJNILcRcDaTslKul/5wEMTAv8DkPL4lA/+z2XjmOUeSo FGRg== 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=mS14RoV+P3AFH8a/cHRRDGPu5wgcpokXNUSOl49FuEQ=; b=4tytkyw87LraXfxr4gU8d4bsA33m2tJwrjSrhHgfMH0bIlu9oSMf7XunOD+SNqNumM +cAUg+UEje4TPEcJv3QPGUadys1NdfqMJL9BsENvMENZPcfp8rSefSn25S7O/hfWv0/A hNFiK03ixRpQSh/QUSYGiPoECIPfoP5ZTTnQ3empFLymb0sUB+durBoUJkRdPbZlzhhB J97aAlEOUtkYbQY6aswvdaJNUWQOPZNV/4Qa2AJ5X2WzlKWjf3Kj9GXwp7ro6xb+uU/X ARx/JWJjV5IW7RYZRIUWnFqz5AM7sTm7KR3bFWMUvSvSKYAxISSJCV1eUf8pISpmOTty r8Cg== X-Gm-Message-State: AO0yUKVhSXG+XNCyW3zeZB6qU3Rs7bNe4Ab52/VaWAa1f2jXEuyfOV+3 6hS0kMTkcSJMpFsah+gZ5htYmO0zNaaWEYY= X-Received: by 2002:a05:6a20:a110:b0:cc:63c6:8d3a with SMTP id q16-20020a056a20a11000b000cc63c68d3amr4360211pzk.41.1677602937090; Tue, 28 Feb 2023 08:48:57 -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.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 08:48:56 -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 14/16] ARM: dts: qcom: apq8064: Use 0x prefix for the PCI I/O and MEM ranges Date: Tue, 28 Feb 2023 22:17:50 +0530 Message-Id: <20230228164752.55682-15-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?1759094733090469230?= X-GMAIL-MSGID: =?utf-8?q?1759094733090469230?= To maintain the uniformity, let's use the 0x prefix for the values of ranges property. Signed-off-by: Manivannan Sadhasivam --- arch/arm/boot/dts/qcom-apq8064.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom-apq8064.dtsi index 92aa2b081901..210b24e510c5 100644 --- a/arch/arm/boot/dts/qcom-apq8064.dtsi +++ b/arch/arm/boot/dts/qcom-apq8064.dtsi @@ -1494,8 +1494,8 @@ pcie: pci@1b500000 { num-lanes = <1>; #address-cells = <3>; #size-cells = <2>; - ranges = <0x81000000 0 0 0x0fe00000 0 0x00100000>, /* I/O */ - <0x82000000 0 0x08000000 0x08000000 0 0x07e00000>; /* mem */ + ranges = <0x81000000 0x0 0x00000000 0x0fe00000 0x0 0x00100000>, /* I/O */ + <0x82000000 0x0 0x08000000 0x08000000 0x0 0x07e00000>; /* mem */ interrupts = ; interrupt-names = "msi"; #interrupt-cells = <1>; From patchwork Tue Feb 28 16:47:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 62565 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3130764wrd; Tue, 28 Feb 2023 08:59:14 -0800 (PST) X-Google-Smtp-Source: AK7set9I7mmnpf6mie15exO1gJRk9VHV0KSOz0NvrP3IRWvhXxzZCbW6XUcON9ToYiI/FbA5DyrQ X-Received: by 2002:a05:6402:1016:b0:4ac:d973:bb2c with SMTP id c22-20020a056402101600b004acd973bb2cmr4110152edu.28.1677603554404; Tue, 28 Feb 2023 08:59:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677603554; cv=none; d=google.com; s=arc-20160816; b=eyjql0DAZfiyWIXdGq1bBKLcA6i6+X2vXRET61S3+aJuFPSDCNv+v1TloLL6J3zfcv fvGQdldbTmwSEuO7mlPLHvnScbTnhQcVsFhrEJulF2lInZX+98lGixswBfGGEaz4FZFE MA8U20unflKJt0wLjugcnLn7zBlGAjsxEmq280M72Dnt4sPNHvg74jU9PFLI78X+XWFs xeRkxQTKQa1dKF38WNuazyx45ZACuL4YjelCiJRMxPVZX2F5RccYx+nQNZBKF0xwcRKB tKJeXFq7TEtQkLx+Eogd8zZUhDYJrR6E0f5F/felI5hWsndP3xMYZQJ2Ejor25/jrN3v TbVA== 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=/rPNL7OOm49xO0wH+mNw58JIW/pmslpKxDJsE0yTDiI=; b=cIwIRHfh0JdyQc3hOJyv0EdRes77qa95bQycpVhH2LdT35H8MBaVa7inhykO6peO6T 5zaCFQrSTJ11X2XY/mGyoy6rJOPV+9Dz0mntQOihlpftHHimNku9T2VqT5MTutCgWxwy UVNoDkYkxneCGatWKzqU5i4EtZivDekWIh9quhlRw1gYJV+CeQVVUnZBp5OpbZX0BW6P 9+i0VE1AIL3CTKtcjyyvxhrRIOfyhuHbdh3VQf43ClxIOA5HomVqg+lN6/xESPdejR55 Idvt7e1ygWNrsoVoLO38Gx0VckZ++OyJO+rC++U3/zBr6z0uKvXB2+KaGy8atjaDGeUL tAcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yVYy3gqM; 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 i26-20020aa7c71a000000b004add01c9d7bsi1118161edq.69.2023.02.28.08.58.49; Tue, 28 Feb 2023 08:59:14 -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=yVYy3gqM; 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 S230038AbjB1QuR (ORCPT + 99 others); Tue, 28 Feb 2023 11:50:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230037AbjB1QuQ (ORCPT ); Tue, 28 Feb 2023 11:50:16 -0500 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F285234F6C for ; Tue, 28 Feb 2023 08:49:01 -0800 (PST) Received: by mail-pl1-x631.google.com with SMTP id ky4so11107517plb.3 for ; Tue, 28 Feb 2023 08:49:01 -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=/rPNL7OOm49xO0wH+mNw58JIW/pmslpKxDJsE0yTDiI=; b=yVYy3gqMzYa8QWcJUQJu0il8VlRwpPnXqY8B8yo+nG3koa7pl84gSPtl11GPgHPJh0 BsG+G3BUQyENKP9EymRy4xJOKKL1tb1o+0YpFariumLXvUWG8ECrroTlnqxRm7kfXVCD ODfguzCvSu6JWuD3mbeX6ajDSqllFmWLYwob7ICD80gWz4Jl951nvaFlS01IFpDpIB88 wmXNQA0mnylok6x00kSmk09iIg3yZrsWsQW81EVJq3VEvDEolT13kTtCLRzqVWc/kPAX nVDkBMHyK6RlGlHfk29V8rlbY/vWk+clppFMiqh5yT+AZB0JrbTualNqQQ2uZmOo3KYT RmtA== 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=/rPNL7OOm49xO0wH+mNw58JIW/pmslpKxDJsE0yTDiI=; b=Pbtuk2xNbthoHrw+RrLDRPUS4wl/tQoT3U/83NjNR/LBhI83PtqBA2drDWkTPh+2JE cGverVpizG7XT1Ry/8S9TCtM/RGbTqveOq+O8IYWgmN9GYrRqgpJqfLdFmb+dNuvPru6 D8zg5ehH9zgCLcDa7GXnZIFOBMnYP2sEXCbEIxtWS6+QnWxpV0EhDy7hvpPG0ibB8Iar WT0comVLka7AcRdck5R4j12yKNJ7Jaad6f9UHqyywgVGkP/783RIBQniD2Vlxff+r4Xd akmSJXyYKHL2NhVbw86ruff70j/yNnx0Wj7C/cbDSPL0ZKh+T+qjFhUpH38JLgTXe+Bt d8XA== X-Gm-Message-State: AO0yUKWlcRh+RH0Mcnu1rTMUwxCHxLPml+AbQq5VYctZkNc5t/JtYkr3 DzQ9ARoxl+IC4L2GOg3vO/nb X-Received: by 2002:a17:90b:3510:b0:234:157:a264 with SMTP id ls16-20020a17090b351000b002340157a264mr3808978pjb.43.1677602940166; Tue, 28 Feb 2023 08:49:00 -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.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 08:48:59 -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 15/16] ARM: dts: qcom: ipq4019: Fix the PCI I/O port range Date: Tue, 28 Feb 2023 22:17:51 +0530 Message-Id: <20230228164752.55682-16-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=ham 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?1759094824720715055?= X-GMAIL-MSGID: =?utf-8?q?1759094824720715055?= 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 address (0x40200000) specified in the ranges property for I/O region. While at it, let's use the missing 0x prefix for the addresses. Fixes: 187519403273 ("ARM: dts: ipq4019: Add a few peripheral nodes") 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/arm/boot/dts/qcom-ipq4019.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/qcom-ipq4019.dtsi b/arch/arm/boot/dts/qcom-ipq4019.dtsi index 02e9ea78405d..1159268f06d7 100644 --- a/arch/arm/boot/dts/qcom-ipq4019.dtsi +++ b/arch/arm/boot/dts/qcom-ipq4019.dtsi @@ -426,8 +426,8 @@ pcie0: pci@40000000 { #address-cells = <3>; #size-cells = <2>; - ranges = <0x81000000 0 0x40200000 0x40200000 0 0x00100000>, - <0x82000000 0 0x40300000 0x40300000 0 0x00d00000>; + ranges = <0x81000000 0x0 0x00000000 0x40200000 0x0 0x00100000>, + <0x82000000 0x0 0x40300000 0x40300000 0x0 0x00d00000>; interrupts = ; interrupt-names = "msi"; From patchwork Tue Feb 28 16:47:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 62566 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3131587wrd; Tue, 28 Feb 2023 09:00:44 -0800 (PST) X-Google-Smtp-Source: AK7set/wQhySQWB+o+n9Q5XAeg0TJ/BtmBYlkvDEs5ZNeVwb449CAn/NV6cyQSgacLmlp02cwv6j X-Received: by 2002:a17:906:854:b0:8f8:94f4:184 with SMTP id f20-20020a170906085400b008f894f40184mr2964311ejd.37.1677603644336; Tue, 28 Feb 2023 09:00:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677603644; cv=none; d=google.com; s=arc-20160816; b=thyNb6TShQSgziWIYfAPi4byE/GRObHNviJjXBG2kmRq1Bp/UpQ6+jjSY7rPQ3IbAM snJ9y+8bsD2LzZKGTbTd1hpcOqp6xDhG/EaFV5iTtBBo7ID8aZUL23ovztYRNn37E7Mg m9snw8C/0mAbowcmUZN1EgJA7UjIZWeYLmcgNqLYjdDDVyw1wMCzxUPqDLVN86yUCFBK U9FRQAGaZL/dCog2q4Rh+sUTkghL6/jvWgA7nOJkJrweTHt2fRo+jAYRu0D3R32+VgvP J2M3h7t5q0LKpQglb/U+75xJq0LVmGYBvicUoT8U+7RM7//e3HsLaO6YqQc9YF/EzV0E Nkzg== 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=3eNassO9Vnm8zgaO1p6R8ZkRqE+XYfqCv7XBdpZWD1Y=; b=cgt4GP2Ox7M3PElujYhqeqvRr3BRZUtvRJo2+tmmKKsDrBzrBq1AUDTlvL2uQ8fJfm EKOcVZzrtRPDM/RgrOxFbGxNQacIL5eZyowpkbUt8gOdavMqa5Fjj42PmIEBnh88c9I7 Q0KYfED6mZ0xX45wxwVYL6iwoQqm0EkHc4AnsZQMVLuO0HLADxpv6BtPxo81uluCka9i c1TToX5B9JmX7vNdxsBbo1qzA5oCatMPs08eOQvtgrXBQqnisBeTAwGLKxVW4jlESV+o jBe6NjBdr215RMvNnFFa+T2W9FUCwWHh3fpnjGg/mG0/u4xyiyMjDOJS99XV++yCTN/H vVRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="LCv6//91"; 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 i26-20020aa7c71a000000b004add01c9d7bsi1118161edq.69.2023.02.28.09.00.17; Tue, 28 Feb 2023 09:00:44 -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="LCv6//91"; 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 S229993AbjB1Qu1 (ORCPT + 99 others); Tue, 28 Feb 2023 11:50:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229984AbjB1QuY (ORCPT ); Tue, 28 Feb 2023 11:50:24 -0500 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EE4234F77 for ; Tue, 28 Feb 2023 08:49:08 -0800 (PST) Received: by mail-pl1-x636.google.com with SMTP id p6so10243046plf.0 for ; Tue, 28 Feb 2023 08:49:08 -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=3eNassO9Vnm8zgaO1p6R8ZkRqE+XYfqCv7XBdpZWD1Y=; b=LCv6//91hcHhzEyZAsytIU78+WAzK+RKLx+VZQAOnBh1cqUyRSNrcDspccX2RyUGFk 2/9Yn+GfyJPheITtQKnJxTT6g2t4Ifb9dE+w+uUZtYFAUP2Ffk4x8vSvdiRss+1HrdtX 9AMC6VANMxSSuOea51f2eTGiKmX1Ki+rPdJHdqkSrfNAyygf6/99JM2hJfIj+ATXqc2P H/zdtaIJZ34z/6jXBO++hbaz+b/g/GZy5pLS7foyn5EXjv+TOMNF3q1uTMju0cyjtCo+ kYmRtO1ZlCa1GqA4SyFNciCNVj78n7RjqecctcCvnh1B1LytkyKBvvkXgWThufOi9cPV F/YQ== 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=3eNassO9Vnm8zgaO1p6R8ZkRqE+XYfqCv7XBdpZWD1Y=; b=mxuc0nwlXqf67U1zNj6Ur9GL85CjlA0GMfDbU/jl8t36Guwa8pd0q78cpFigRtBvtd R3JFy3OGuWnhDZiTN3AhH0ROlwgvge8jAQOVqRCjr3gyozYarhR2ZcD2At8QLrfmC4/e xX/6Pzoy7sx/IYxsd3fR4GEUMFf7XBKFiPiq6lr0e/r+BI18X1oMmuJMfxKfsl18KXp5 eIIrvdxlyED5WtiNIZ85YU4BAW3zQmUuaQOBohnzqiMtRMV+FivJNJ9Kbo81HW2rfY00 R5/oe27oFmZutlf0B2aTWXzdtLPGEAr6ZVBC4UYwI1O0Qo7p6HXy/eEj8S7FFmou0TtH 5Cow== X-Gm-Message-State: AO0yUKWpym7/9wna2ytkn++HL0QSfvlQIEd5pxJ/pZY/CytDTTU0CKrK b+WVegAEniFJ/pnGQebtDTm6 X-Received: by 2002:a05:6a20:a11f:b0:cc:32a8:323d with SMTP id q31-20020a056a20a11f00b000cc32a8323dmr10165721pzk.28.1677602943395; Tue, 28 Feb 2023 08:49:03 -0800 (PST) Received: from localhost.localdomain ([103.197.115.185]) by smtp.gmail.com with ESMTPSA id z11-20020a6552cb000000b00476dc914262sm5908792pgp.1.2023.02.28.08.49.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 08:49:03 -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 16/16] ARM: dts: qcom: ipq8064: Fix the PCI I/O port range Date: Tue, 28 Feb 2023 22:17:52 +0530 Message-Id: <20230228164752.55682-17-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?1759094918978976842?= X-GMAIL-MSGID: =?utf-8?q?1759094918978976842?= For 64KiB of the I/O region, the I/O ports of the legacy PCI devices are located in the range of 0x0 to 0x10000. Hence, fix the bogus PCI addresses (0x0fe00000, 0x31e00000, 0x35e00000) specified in the ranges property for I/O region. While at it, let's use the missing 0x prefix for the addresses. Fixes: 93241840b664 ("ARM: dts: qcom: Add pcie nodes for ipq8064") 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/arm/boot/dts/qcom-ipq8064.dtsi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/qcom-ipq8064.dtsi b/arch/arm/boot/dts/qcom-ipq8064.dtsi index 52d77e105957..59fc18c448c4 100644 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi @@ -1081,8 +1081,8 @@ pcie0: pci@1b500000 { #address-cells = <3>; #size-cells = <2>; - ranges = <0x81000000 0 0x0fe00000 0x0fe00000 0 0x00010000 /* downstream I/O */ - 0x82000000 0 0x08000000 0x08000000 0 0x07e00000>; /* non-prefetchable memory */ + ranges = <0x81000000 0x0 0x00000000 0x0fe00000 0x0 0x00010000 /* I/O */ + 0x82000000 0x0 0x08000000 0x08000000 0x0 0x07e00000>; /* MEM */ interrupts = ; interrupt-names = "msi"; @@ -1132,8 +1132,8 @@ pcie1: pci@1b700000 { #address-cells = <3>; #size-cells = <2>; - ranges = <0x81000000 0 0x31e00000 0x31e00000 0 0x00010000 /* downstream I/O */ - 0x82000000 0 0x2e000000 0x2e000000 0 0x03e00000>; /* non-prefetchable memory */ + ranges = <0x81000000 0x0 0x00000000 0x31e00000 0x0 0x00010000 /* I/O */ + 0x82000000 0x0 0x2e000000 0x2e000000 0x0 0x03e00000>; /* MEM */ interrupts = ; interrupt-names = "msi"; @@ -1183,8 +1183,8 @@ pcie2: pci@1b900000 { #address-cells = <3>; #size-cells = <2>; - ranges = <0x81000000 0 0x35e00000 0x35e00000 0 0x00010000 /* downstream I/O */ - 0x82000000 0 0x32000000 0x32000000 0 0x03e00000>; /* non-prefetchable memory */ + ranges = <0x81000000 0x0 0x00000000 0x35e00000 0x0 0x00010000 /* I/O */ + 0x82000000 0x0 0x32000000 0x32000000 0x0 0x03e00000>; /* MEM */ interrupts = ; interrupt-names = "msi";