Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp959840pxb; Wed, 13 Apr 2022 16:50:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzA3WDWYQHXv1c/ihZYby+dYGPo0OetHZlQf20d8dNqmzOTR649x9qSNJmFOudYYcIn3NaY X-Received: by 2002:a17:90b:38c4:b0:1c7:cce4:8e70 with SMTP id nn4-20020a17090b38c400b001c7cce48e70mr1263508pjb.51.1649893814836; Wed, 13 Apr 2022 16:50:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649893814; cv=none; d=google.com; s=arc-20160816; b=oNYXIj8FgI2hIqoZr5m3XMVwf4UUgwTo2oPMoSw2qzvVt7WKeYxRU+Y5PqqtFvVnwj Qjvvp7lIvAQAd4cdTVJsydHQQorRrTdd10/1P+g7di675t7eRjLEJZhTfNP8iUdyGawN gHYtirlHU7GNcvFBlZ566bv6ryi6d7iBK+TR7Fy5gR6+X6P7g6liluf0GeYOpMOV54tp Gqlt5vkefXquk+qW5EtYT3IgPv46whA44OgKEGkzEMTf0HsZYfBrSej+a6lDeJUFKMLK d4pEn/9F3Z2+RTkbIZowWa1fUV750+24e7nP+sxxc7UJDpz22ahT4H7OhUTMlm/WOZRK kG3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=M8MM9hNtlsb/0mGDP5Eh6d8xwozIxiEbRd1Lk53Q2x8=; b=zvlzAzcfQTQJfrsI5UhZ4Tcz8/pAcCrXRV9i74uU46xNXV3FLF/4C3RiiWm4UQ9WdY l7QG7hGma89aHChTLMgnIMK8lES/H4oEypz2zbAqiHcg40tmr/4wLUzX6qP64eNNiExk z2EPHfFpM/wG2AlkDFh2MUbJYkhWuyj67fnQF5HVU/15+y/Gwf4Y+au9DszrIRnJMdqz JhRZWqwl5GfJqKbeTQXp6FoycNTiV4D3elMVamgPT//Aze6qOYxBm5ghBviub5GTaxoH 4RQGq4VsuAmFURqGj41wcOnnfBdrwnxzbf6p5QSKL37r7SrIbKkpzJLEXrjYWVWz57zj NoJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=AfZ4ojV7; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g15-20020a63b14f000000b0039919e96afdsi7062721pgp.455.2022.04.13.16.49.59; Wed, 13 Apr 2022 16:50:14 -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=@gmail.com header.s=20210112 header.b=AfZ4ojV7; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236450AbiDMSYe (ORCPT + 99 others); Wed, 13 Apr 2022 14:24:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236232AbiDMSYd (ORCPT ); Wed, 13 Apr 2022 14:24:33 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B52B8396B5 for ; Wed, 13 Apr 2022 11:22:10 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id ks6so5705532ejb.1 for ; Wed, 13 Apr 2022 11:22:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=M8MM9hNtlsb/0mGDP5Eh6d8xwozIxiEbRd1Lk53Q2x8=; b=AfZ4ojV7fGDgQo6baXqWP9xdlkYefBtN6ONQTTRuj8YW5P2oU0QyTcPPmn+Qxq0ZaR TeTnw1PMzTpBgAImuYmnFPpMiKL27rUSGi4C1ILlwrq1DJDDhrhwTB8XUkvAPNIV/4rr 3NBCZpZ0baJ4dl5uLGHLzbuEVqwo6i07CLCYI0KDsrJNbTdBTB2DOpbJZ2aaLAF4Jcul mHKHI/wwctHmTYeN7OB0gqAFtNik2gp7zxAHtdodVor1kh1t8Je3eTVwBL+w1DYL5Eii xdb5BObNy4KVYMXF+HCCjEBgLiDEkuUxazh0123t0A+Uf1tTJHP2Ya2HzwhGZJ8ddjEV llcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=M8MM9hNtlsb/0mGDP5Eh6d8xwozIxiEbRd1Lk53Q2x8=; b=YkTiDcZMwjhIo+4FoPjjEmxKlLo1VqKIsRwzl1YBJ/fCnlF5uThyca90erjGFoMgcj YOHNoPtty7ZA8mjp6hy5dspNvcwWt4Tji6xbuRMV7geSUXCtxlgAoOWnpS0uec1FyDHs Pwc7D2JUnmo4EYtNo9UhaafNOHS6kIqzMmFxapUr9Rf8n/c9m8a27GuadspG5MyCTeBI 84XLY9xxahT1QByMpYLsyqbcl/OirXb4rL70crYqwrADkZ2KBsp+YaGZgjmVPmwbGzjB XFEEQy89vwuzvCmYcwspyAM3Q74AWeNRQvUGLKu0NkCtaViA4jk18grODsQlQFFKXz/m 8low== X-Gm-Message-State: AOAM530YdaUgbAULOqI/h0mWFRQvWnMeYUVF5+gRDJaN+/Nv89yR2bsb z0VU8Hp3sZfoh38wLMIzgrLMKmVSz5c= X-Received: by 2002:a17:907:7ea1:b0:6e8:9325:c9ce with SMTP id qb33-20020a1709077ea100b006e89325c9cemr14756806ejc.368.1649874129175; Wed, 13 Apr 2022 11:22:09 -0700 (PDT) Received: from skbuf ([188.26.57.45]) by smtp.gmail.com with ESMTPSA id k14-20020a170906128e00b006e4b67514a1sm222798ejb.179.2022.04.13.11.22.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Apr 2022 11:22:08 -0700 (PDT) Date: Wed, 13 Apr 2022 21:22:07 +0300 From: Vladimir Oltean To: Leo Li Cc: "Z.Q. Hou" , Shawn Guo , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Xiaowei Bao Subject: Re: [PATCH v3 1/8] arm64: dts: ls1028a: Add PCIe EP nodes Message-ID: <20220413182207.chvdbqnmmm5vbz2b@skbuf> References: <20211214093240.23320-1-leoyang.li@nxp.com> <20211214093240.23320-2-leoyang.li@nxp.com> <20220413163209.4pqqpyqdklhlzp5p@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Wed, Apr 13, 2022 at 06:03:37PM +0000, Leo Li wrote: > > arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi:631.23-656.5: Warning > > (unique_unit_address): /soc/pcie@3400000: duplicate unit-address (also > > used in node /soc/pcie-ep@3400000) > > arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi:670.23-695.5: Warning > > (unique_unit_address): /soc/pcie@3500000: duplicate unit-address (also > > used in node /soc/pcie-ep@3500000) > > This would be a common problem for all the layerscape PCIe controller. > The controller can either work in RC mode or EP mode. The current > binding of the controller defined two compatibles, one for RC and one > for EP. Therefore the SoC dtsi will have two nodes with the same unit > address one for EP one for RC. Fixing this probably requires > comprehensive updates to the binding which breaks backward > compatibility. So we have to live with these warnings forever now? How are the PCIe controllers configured for RC or EP mode? Via RCW? Is dynamic configuration possible? Can't U-Boot detect the operating mode from the RCW and fix up the compatible string in case the controller is in endpoint mode?