Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3408306rwb; Sun, 9 Oct 2022 04:48:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6zKlZCRNNb5rj7IG1a/hjxYIaqYc6lxpT6YMsbGnJcW38UopIUZyzxjTjs7K71WE1ils7V X-Received: by 2002:aa7:cfc4:0:b0:459:7fa7:ee29 with SMTP id r4-20020aa7cfc4000000b004597fa7ee29mr13042069edy.414.1665316093838; Sun, 09 Oct 2022 04:48:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665316093; cv=none; d=google.com; s=arc-20160816; b=IeD3bokd3OZ8k1pdS0oiQkwup4zmvafOqS5B2c5UrmfprXPauJSdYsrk6T0PDprG/n 4be57Y6aVF2ahtuRL8WecaXrN1J057rJ43dks0DBxUQjjKfEAP24675vVT0/ribwKPyu c0HFewcd6Ah1WfZXsa2TFNA2DpYJW98M9jN0IkUWSsEWMgabg41/RLxzQzxnoAvctxT5 TBb59j/p+uvpw2oqgTjaYumIRHBfDDfpjM3HNn9fF++7UShY0avdeMh1ogXga8vn5jL3 6MGxKH/c2N6ts/Bx5B/4+XfLStYuhARC7nOaIaRB1Mz0aQSHKGb1a/+h6M7A6xi0yIvn 3q2A== 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=sxzkvmyLr27xbRxam2i0wOMnPvi+Nj5gLVXKcKlm5Kg=; b=e4jYutwydUbuOu/KhvZpL2iS5Sm4wiy9QLKDgFNBPW1KuWxQ5Ks8Mv0cHC2Oet9sxS SaF7bwD8puHNaicEdZ7tftGEKT1vs+tdnaFa1DENeNXnhUkS1+TiEhMUapMVGRl7agZ2 K17Ur016vCE6JhukyFAlOHkBA/PnPYil2O2BQO3nlbtRHsaKPUuzfsOIlQ06d448PeB2 TKmADyMeQA+nWsC7DeLcIAwejh+erOu8R6H96dVfOv5+TJrHxCXETn+zDErRDH49PlOC Izo6iwGasR1SaIg4rEWTz0/sfFfb6+t2OQcRj+eHqIT5n2JdyR18HAAW6tqsAd2dzxSc tbFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZAkjhh3w; 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 p26-20020a170906a01a00b0078c959aea8bsi6923813ejy.324.2022.10.09.04.47.48; Sun, 09 Oct 2022 04:48:13 -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=ZAkjhh3w; 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 S230014AbiJILPm (ORCPT + 99 others); Sun, 9 Oct 2022 07:15:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229959AbiJILPl (ORCPT ); Sun, 9 Oct 2022 07:15:41 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4777E2B24C; Sun, 9 Oct 2022 04:15:36 -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 ams.source.kernel.org (Postfix) with ESMTPS id 48064B80CB9; Sun, 9 Oct 2022 11:15:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF917C433C1; Sun, 9 Oct 2022 11:15:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665314133; bh=wccPJLuH2DYbLdfSoyHm5U/6vyVfxSEwO2LCbBJoTmI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZAkjhh3wUFCs0GYGGZ9pZ1dsGpWfE69dKhRZTTCMzzjAx+079DTo1wkrqXH5yiKPe bN+W3QxzOWnvM8UsuY/qkgLD+xwwZbyFEV4JpBHfvdVgNnSo69wnyAqcr/Hg3XhgSl Z2TFiosUqGaNAOSopU7przq4zwTXZ3AZIrDUDWByqDW67BNt2/I+Ty8nVfu1vkmWAx urKUZQ6beZoqbfW+HZR9W+9N+pzCiQ7mij4K8IRXb+0pSmet1b4MtahQWEqDHaA2PR uLYbf8VXptd28KvqFbB+AHry00Q2EaLwX5s6tl7LVvTwJy+qIh5YYIIQmp/gKM2yIm SGln/Ve6gFTYg== Received: by pali.im (Postfix) id E03897C1; Sun, 9 Oct 2022 13:15:29 +0200 (CEST) Date: Sun, 9 Oct 2022 13:15:29 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Gregory Clement Cc: Andrew Lunn , Sebastian Hesselbarth , Rob Herring , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Marek =?utf-8?B?QmVow7pu?= Subject: Re: [PATCH 0/6] ARM: dts: pci-mvebu: Fix assigned-addresses for every PCIe Root Port Message-ID: <20221009111529.2eo2mwca3ywfkajy@pali> References: <20220817223053.31141-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220817223053.31141-1-pali@kernel.org> User-Agent: NeoMutt/20180716 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Gregory, ping? On Thursday 18 August 2022 00:30:47 Pali Rohár wrote: > Per IEEE Std 1275-1994 bindings documentation (to which kernel DT > bindings refers), DT property assigned-addresses contains BDF address > of resource. Currently more PCIe Root Port nodes have BDF address in > assigned-addresses which points to different PCIe Root Port nodes. This > obviously does not make sense as the address resource specified in > assigned-addresses of every PCIe Root Port describes address range of > internal registers which are specific for corresponding Marvell PCIe > Root Port. Fix this issue and align all BDF addresses in > assigned-addresses DT property to specify correct BDF address of the > current PCIe Root Port. > > Note that current version of pci-mvebu.c controller driver, which > registers Marvell PCIe Root Ports, ignores BDF value in DT property > assigned-addresses. It expects that Root Port's assigned-addresses > contains address range of that root port. That is why driver currently > works without any issue and nobody spotted it. But if driver or > something else would do device tree validation then this issue should be > spotted and throws error. Also device tree files may be used by other > projects where drivers may require correct values. > > This patch series aligns BDF address of every Marvell PCIe Root Port in > node name, config space in reg property and mem in assigned-address > property of internal registers resource. > > Pali Rohár (6): > ARM: dts: dove: Fix assigned-addresses for every PCIe Root Port > ARM: dts: armada-370: Fix assigned-addresses for every PCIe Root Port > ARM: dts: armada-xp: Fix assigned-addresses for every PCIe Root Port > ARM: dts: armada-375: Fix assigned-addresses for every PCIe Root Port > ARM: dts: armada-38x: Fix assigned-addresses for every PCIe Root Port > ARM: dts: armada-39x: Fix assigned-addresses for every PCIe Root Port > > arch/arm/boot/dts/armada-370.dtsi | 2 +- > arch/arm/boot/dts/armada-375.dtsi | 2 +- > arch/arm/boot/dts/armada-380.dtsi | 4 ++-- > arch/arm/boot/dts/armada-385.dtsi | 6 +++--- > arch/arm/boot/dts/armada-39x.dtsi | 6 +++--- > arch/arm/boot/dts/armada-xp-mv78230.dtsi | 8 ++++---- > arch/arm/boot/dts/armada-xp-mv78260.dtsi | 16 ++++++++-------- > arch/arm/boot/dts/dove.dtsi | 2 +- > 8 files changed, 23 insertions(+), 23 deletions(-) > > -- > 2.20.1 >