Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp24689261rwd; Sun, 2 Jul 2023 02:59:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlET2Nc4LNVH3hZprvvKgrGxJRw8jo9+lhUmJxd4XGmLuAfqHtdC3MJsg3AYoJMrUydh3NSs X-Received: by 2002:a17:903:481:b0:1b8:36a8:faf9 with SMTP id jj1-20020a170903048100b001b836a8faf9mr6637388plb.38.1688291942656; Sun, 02 Jul 2023 02:59:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688291942; cv=none; d=google.com; s=arc-20160816; b=r2yOkQ/5cm948lHa6EOj73pXwyS0Ko8PPuPVEnynPeFjh3H8SAVonADylEBYitZBi4 21tJy7lq+12SmGARj3LMKcKGY+wofnGcDNBC7em3/yht41SGedtcamosdat7wupyB2ys jHgUlPWvix13FILEqdQ3tilR026NtGd42qZbqOPRzPVJKF7d8dfaCpo1awq2iICim2bP w9Wylti8uJy2WEK2AmyRU01QRmZSFCzQGBKhPmu+fX9vc49cqwa5NhdwfWG60t5++krj tvWVVOrV85xvvHW2s1SvZAH0B3/Nu4epnw98mtxhmb1e7Y11NFrLsRmgR4dm4CpH35kp QGfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7Q0a397jdvYXTn50P8pYbQYJLZSIhdyXPApTpWq8zeM=; fh=cKdS4smGrrH8VpsYPC1T1/CeCVUUwELkyoQIXERb/zY=; b=Bf8IJnPRS/8dRf9RIn0HhkGaF5L6r46iODhHVAuTCoYnGG08TLbDS9QzZHPWr/pqo0 rdIHAIjPuxRon4yVjfYEPc/kpdn7BkqU8bY2Z7gk9yicznysK8YX0vw+ZBdpAJKnTzXS qrhS8shF3/WjpBDxJahHePSvhtuzYXAv3hQ5zKaDsmP26xEJnWFckWanib7WqyxhIgUf 7nP05Y9iS6Eay8JNZ7WkCa11NLXKbdINbCgc0/WRj0UyKYP9S5w8z94xZsryJqZwgs0G fHP0umqV4ZDKnkaVlaT/oTP+s0zSbsf0LJgZE+Z/ADpDITCM1NGdjPYzCxnvFHnCfcTU iTsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WhwptTr6; 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 c4-20020a170902d48400b001b895572179si119667plg.184.2023.07.02.02.58.50; Sun, 02 Jul 2023 02:59:02 -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=WhwptTr6; 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 S229849AbjGBJte (ORCPT + 99 others); Sun, 2 Jul 2023 05:49:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbjGBJtd (ORCPT ); Sun, 2 Jul 2023 05:49:33 -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 90404DC for ; Sun, 2 Jul 2023 02:49:32 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 21BBB60BEF for ; Sun, 2 Jul 2023 09:49:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61D59C433C8; Sun, 2 Jul 2023 09:49:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688291371; bh=EYppSHIVPNoV1/xChigYeVDIfmyw66skaZz4fN3/5sk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WhwptTr6RbnJonQdHxrIyrX7qtv4sIV7DW0hsZkh8yPrey6WiaTv44T1D3sCNFiRP Di1xbB9NtyNRYEVK3fV3hjwN/J8odS4Jq99jaRLo6RPMZFY8iWMpR/Fa3v/DbeXDfa C0i7dXo61t8SCe/my3JJXq5XUOZgevccQ2iuECHTfpn5aN/WIeUkXMWKHzJ5/VL62D tx8OCXyIxfapG+fUlmW5lEggoHUqrYSKh7C5EvCleSPcAJjpejpq/yE7fH4hsklGJi t7w3Ml1cNX+4LItqD/Fd8AmwnSqDU1Ad1m+LED7AaAbjnUeiSnplLYG4zt1WGGzLI4 ANfLslHH6nGwQ== Received: by pali.im (Postfix) id 1C5E2891; Sun, 2 Jul 2023 11:49:28 +0200 (CEST) Date: Sun, 2 Jul 2023 11:49:28 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Michael Ellerman , Christophe Leroy Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] powerpc: dts: turris1x.dts: Fix PCIe MEM size for pci2 node Message-ID: <20230702094928.hhuksy6aed5naz74@pali> References: <20230505172818.18416-1-pali@kernel.org> <20230610073521.prpxivjcwtcfwl3u@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230610073521.prpxivjcwtcfwl3u@pali> User-Agent: NeoMutt/20180716 X-Spam-Status: No, score=-4.4 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 On Saturday 10 June 2023 09:35:21 Pali Rohár wrote: > On Friday 05 May 2023 19:28:18 Pali Rohár wrote: > > 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 > > > > PING? PING?