Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1209487rwr; Fri, 5 May 2023 10:33:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ73v376dt9ZQxZVY0sANm1v+zriRNOSgyNOLJgKDn7sS3TnX3ys2cbgIFZReAsh/oJqO8ur X-Received: by 2002:a17:90a:4892:b0:24e:209f:565 with SMTP id b18-20020a17090a489200b0024e209f0565mr2201544pjh.7.1683308007623; Fri, 05 May 2023 10:33:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683308007; cv=none; d=google.com; s=arc-20160816; b=sSBsI1IqohjRozAaCL0Q5P6+DWOASy4L4vpk3fOmpLV1uepZfZIAjc6QkGeyJa9PuD udngyrv9LQnnQQtSLNlXSNgaI9R1tJEdoq1l6qN31pCrfLchISmt29sg2xxOjRJ3OeO/ Ro0s1lA/vFuf16PD75Y7FLcyR5Hdr2/3doR703UxxVjFDTXco6fam/ceQn4wc6ojBHGj V/s+QxErzAAhO34Th/wEl+DnZXdJaenO1Aet4ek6pjtRZMTiAI+swhbIk+qB8yl8RFjZ rMgUU919+Z3P/V9Rmm463t2F9VBCvWIMw6KmLUcg0ezacHwytDLj4ErpU7WX1XGM4p9S +yKA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=SFn2ivzJFdKSNZZF8/zqVnDI6vBiHoldaA0F9vHtaF4=; b=pDS0V2gaNJt7EIexnS+ZTsjjR2QCVzmasK1gyoHW6XIzwr19d1FXJB9yJ/6PgCuv2b taV+W9yrjgYspLDbtNne/ZB6nuQZ2aHXAJ6PCQbVcBnLOQpa0UQargNVPKLl8nvjwgr6 M91r4Oi5qjvvhY9T/aLKATE5v6f+XeX+gy2+oyKsjCoHcGbuMmy9ZPh+TeXIX4eMPtHx 2iw1kzYUE84T9W9D6/uf9Ym9EMg1AJGmF5gtxjqHd9dLoX0YtCwX1vUX7h2RqYosDvG8 +4eoU3jRiPboXv5S65ff/1w5vXbyZRV8+BaRqm01o9EsVskIoMrFQYHc3XZ8LJTZxVCr vFyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SKchHdRK; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u189-20020a6385c6000000b0051b90567f99si2492369pgd.690.2023.05.05.10.33.13; Fri, 05 May 2023 10:33:27 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=SKchHdRK; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232527AbjEER2i (ORCPT + 99 others); Fri, 5 May 2023 13:28:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232343AbjEER2g (ORCPT ); Fri, 5 May 2023 13:28:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F4C717FDE for ; Fri, 5 May 2023 10:28:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E7D6D612A8 for ; Fri, 5 May 2023 17:28:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C6F0C433EF; Fri, 5 May 2023 17:28:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683307714; bh=ZZZssVkukDLIDsJIbLhzlAV9wIa7x483A/+hV7if/8w=; h=From:To:Cc:Subject:Date:From; b=SKchHdRKXKjNe4nbZQvow3jQfiujk9jCcCaMMHuohbF43NQWTEpVlBLuQA1tqL7CA 4z2EZRuOwdYj38jcVonQyVha/pVVr3xb9It43NfCMSl7Fx6MGUoOqa2oHQG/qvmJne 2J817/cLLEEVu/rlOKcinrmHXzEawnmkXILm/CrgwHbZG6jAzk4qndbZGLm+csWmKM qJm7F9pPN7X7Msvn9Rli4EvHM36UJoOmUZPoTji2MmEH9HciFjxaWTATfQRb2/rOIg peMaKs06L/QwP+HLY7FCd7qnQjY/lDffaqjDKUpiyKCgXsEMo61BhFxwkLTQAjqYSE WH5Z1N6ED9Jrw== Received: by pali.im (Postfix) id 3669DA47; Fri, 5 May 2023 19:28:31 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Michael Ellerman , Christophe Leroy Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH] powerpc: dts: turris1x.dts: Fix PCIe MEM size for pci2 node Date: Fri, 5 May 2023 19:28:18 +0200 Message-Id: <20230505172818.18416-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Freescale PCIe controllers on their PCIe Root Ports do not have any mappable PCI BAR allocate from PCIe MEM. Information about 1MB window on BAR0 of PCIe Root Port was misleading because Freescale PCIe controllers have at BAR0 position different register PEXCSRBAR, and kernel correctly skipts BAR0 for these Freescale PCIe Root Ports. So update comment about P2020 PCIe Root Port and decrease PCIe MEM size required for PCIe controller (pci2 node) on which is on-board xHCI controller. lspci confirms that on P2020 PCIe Root Port is no PCI BAR and /proc/iomem sees that only c0000000-c000ffff and c0010000-c0011fff ranges are used. Fixes: 54c15ec3b738 ("powerpc: dts: Add DTS file for CZ.NIC Turris 1.x routers") Signed-off-by: Pali Rohár --- arch/powerpc/boot/dts/turris1x.dts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/boot/dts/turris1x.dts b/arch/powerpc/boot/dts/turris1x.dts index 6612160c19d5..dff1ea074d9d 100644 --- a/arch/powerpc/boot/dts/turris1x.dts +++ b/arch/powerpc/boot/dts/turris1x.dts @@ -476,12 +476,12 @@ * channel 1 (but only USB 2.0 subset) to USB 2.0 pins on mPCIe * slot 1 (CN5), channels 2 and 3 to connector P600. * - * P2020 PCIe Root Port uses 1MB of PCIe MEM and xHCI controller + * P2020 PCIe Root Port does not use PCIe MEM and xHCI controller * uses 64kB + 8kB of PCIe MEM. No PCIe IO is used or required. - * So allocate 2MB of PCIe MEM for this PCIe bus. + * So allocate 128kB of PCIe MEM for this PCIe bus. */ reg = <0 0xffe08000 0 0x1000>; - ranges = <0x02000000 0x0 0xc0000000 0 0xc0000000 0x0 0x00200000>, /* MEM */ + ranges = <0x02000000 0x0 0xc0000000 0 0xc0000000 0x0 0x00020000>, /* MEM */ <0x01000000 0x0 0x00000000 0 0xffc20000 0x0 0x00010000>; /* IO */ pcie@0 { -- 2.20.1