Message ID | 20230228164752.55682-2-manivannan.sadhasivam@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> 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 <rfc822;brysonjbanks@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; Tue, 28 Feb 2023 08:48:10 -0800 (PST) Received: by mail-pj1-x1035.google.com with SMTP id 6-20020a17090a190600b00237c5b6ecd7so9810568pjg.4 for <linux-kernel@vger.kernel.org>; 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 <manivannan.sadhasivam@linaro.org> 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 <manivannan.sadhasivam@linaro.org> 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 Content-Transfer-Encoding: 8bit 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: <linux-kernel.vger.kernel.org> 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?= |
Series |
Qcom: Fix PCI I/O range defined in devicetree
|
|
Commit Message
Manivannan Sadhasivam
Feb. 28, 2023, 4:47 p.m. UTC
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 <arnd@arndb.de>
Link: https://lore.kernel.org/linux-arm-msm/7c5dfa87-41df-4ba7-b0e4-72c8386402a8@app.fastmail.com/
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
---
arch/arm64/boot/dts/qcom/sdm845.dtsi | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
Comments
On Tue, Feb 28, 2023, at 17:47, Manivannan Sadhasivam wrote: > 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. > - 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>; > This fixes the offset, but I wonder if the size of the I/O window should be changed as well. The normal size is 64KB (0x10000) per bus or less, while this one has 1MB. It's probably harmless since each device would only use a few bytes, and most devices don't need any I/O ports at all. Arnd
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 = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>; 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 = <GIC_SPI 307 IRQ_TYPE_EDGE_RISING>;