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 = ;