Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp535839imn; Wed, 27 Jul 2022 12:54:11 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sHbLFWbt/YI4sC0dhyfeRuy5m5ocOpzBckE+DTdsGvzQw8uO28P+wMBtavhiUrDjrJoRHT X-Received: by 2002:a05:6402:1766:b0:43b:cb78:5c4d with SMTP id da6-20020a056402176600b0043bcb785c4dmr24902293edb.354.1658951651067; Wed, 27 Jul 2022 12:54:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658951651; cv=none; d=google.com; s=arc-20160816; b=RaCORL9yepynZufXBZ7CmLyB/lDZsNqtokd2GdGeSJLIkh1wIw0ZjuXGi/0fId3+uL AfqiQyM5VcZYtlTuM0lh18pgA+yhwnB4IE2MyLHmvHPOcVnFqbzFQ246ybUacMbDDTDC ArO9SIwoRi3Rl/s3TpgxpxeZf0TKezopvYaLcd0+tCbgjn6XIeTeeQEWetMcJGApfpdV E4cFHBXKyu4wpPSCcyF6yFu/bw7piIuFHyZQKXRQhrjCa2D9q8AXpAnJSm7dwJer5vg9 dVFZgULRDdNJD3UIZedud32efzRku6pqRlPWdRVZNzk1hkef380vR1orRqCK1CqPr3lG dNuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=NMXcRI87yufdY6/XT5cLLLORQt3sxSxSpP/LTh5+LvM=; b=UI0CVwsFSDTuZ6CkaBm4/cTxpRNpK111yZgoQujDyNFhWuYY1qL9mv7ZtSP+zuYL6L plVvgY0TiB2buHS/7g510kkc2Zu8YVjyHeBl8qyiSZ4eie94RCWI06SjYQYckys0BgVn fo0NhVevVkmLrybWaS4TfzkDwO5rgt9OUU/tJ/51WD6rpaPVqnJh/VdlOjfvCujCA+fl KXyxLx8kiQqz2vAkxp0nOqI4tvt2lU7Y+qZwA3CWBPfXCyo8X7VRpXAGWK++YG6n3rlp dURo45FK8tgmoK2ScJ2wfjGhRagMXiIBK/VKap3XkbLx2UwtNpvv7f7ehU+UpGKN/sDh 8Gfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=S+TOJiLq; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m12-20020a170906234c00b0072e6774827asi4017958eja.915.2022.07.27.12.53.20; Wed, 27 Jul 2022 12:54:11 -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=@google.com header.s=20210112 header.b=S+TOJiLq; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231750AbiG0S7k (ORCPT + 99 others); Wed, 27 Jul 2022 14:59:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231271AbiG0S6u (ORCPT ); Wed, 27 Jul 2022 14:58:50 -0400 Received: from mail-yw1-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC2966E2F9 for ; Wed, 27 Jul 2022 11:08:08 -0700 (PDT) Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-31e47ac84daso184253417b3.0 for ; Wed, 27 Jul 2022 11:08:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NMXcRI87yufdY6/XT5cLLLORQt3sxSxSpP/LTh5+LvM=; b=S+TOJiLqHXqCcXVfOGmduOCIM0kskUGMNI92Ai1NEPb0uxl8PI2/KmpWvLVjiD919D ZvZS4emRhEfkqWESzGR5OlA4oWesobF5FDdCT+pj3IUTAQvEbfG3bcxkh6iWymMF1RU+ tTN0RwcYj1C6I2G7aaAoMjgrPeFGRE3ffcUa7oMvXlq0nIpJh7SmEjEyb1XXB6pVt9xr pWhBykPSHwtd4h0Xq157RIzg6P7UY4aEAIHcCKecJU5iKJOzl4QL6m54x48zjZP/7V// S6xdyM+FN8dU9RizSaLb4lV8OS/TPMjkoHJKI1dY/+79Oc3l+B/7a6THeWohcl2Ww4M8 A9fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NMXcRI87yufdY6/XT5cLLLORQt3sxSxSpP/LTh5+LvM=; b=5JpYMyR1akM8/PF8Wr4ofwcSMVTVlZmPyVBqk267nsZ0a2h16tc39UwByN64NZXqUs 5xCwrZupVl1wzqN9c1UrSs/vG4mTehNWvmUaqnJGhZZOTBtH+JcbVbuuezoDCmwC8kwX AwleNrkiQTmwd0/uugE2X687TX/K+b/Jx08NmZG0ri9Ei2/I3oZB6pROQ7DOt2LYGegL VEiHOvrhbL4Q8Wz7Trg0wXJxalTeHHj1vgYrqytgtWcui8906encfAjhguztg3QsCXlC TuOyRdQ35ja/gMSOasDJlnY3d4tzivmjudGJloAzrQitDgkqXbY3LcqzDMN++A2j4Unv bsSg== X-Gm-Message-State: AJIora8kyzcLPyQGWo6+/pMk2O5DtVu2AGegcXn4Uxb+WhA5dYS3B/90 CZawooXUG1QOmtNQj7VPpwEiw5+o1hcJoUr1LJ85y1X8YEY= X-Received: by 2002:a81:4807:0:b0:31e:7002:46cc with SMTP id v7-20020a814807000000b0031e700246ccmr20494789ywa.83.1658945287641; Wed, 27 Jul 2022 11:08:07 -0700 (PDT) MIME-Version: 1.0 References: <20220302211100.65264-1-paul.kocialkowski@bootlin.com> <20220302211100.65264-2-paul.kocialkowski@bootlin.com> <20220727120631.iefzititedahdsdt@houat> In-Reply-To: From: Saravana Kannan Date: Wed, 27 Jul 2022 11:07:31 -0700 Message-ID: Subject: Re: [PATCH RFC v3 1/8] of: Mark interconnects property supplier as optional To: Paul Kocialkowski Cc: Maxime Ripard , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Michael Turquette , Stephen Boyd , Frank Rowand , Laurent Pinchart , Thomas Petazzoni Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 On Wed, Jul 27, 2022 at 10:17 AM Paul Kocialkowski wrote: > > Hi, > > On Wed 27 Jul 22, 09:06, Saravana Kannan wrote: > > On Wed, Jul 27, 2022 at 5:06 AM Maxime Ripard wrote: > > > > > > Hi, > > > > > > On Mon, Mar 07, 2022 at 07:34:22PM -0800, Saravana Kannan wrote: > > > > On Mon, Mar 7, 2022 at 3:21 PM Rob Herring wrote: > > > > > > > > > > +Saravana > > > > > > > > > > On Wed, Mar 02, 2022 at 10:10:53PM +0100, Paul Kocialkowski wrote: > > > > > > In order to set their correct DMA address offset, some devices rely on > > > > > > the device-tree interconnects property which identifies an > > > > > > interconnect node that provides a dma-ranges property that can be used > > > > > > to set said offset. > > > > > > > > > > > > Since that logic is all handled by the generic openfirmware and driver > > > > > > code, the device-tree description could be enough to properly set > > > > > > the offset. > > > > > > > > > > > > However the interconnects property is currently not marked as > > > > > > optional, which implies that a driver for the corresponding node > > > > > > must be loaded as a requirement. When no such driver exists, this > > > > > > results in an endless EPROBE_DEFER which gets propagated to the > > > > > > calling driver. This ends up in the driver never loading. > > > > > > > > > > > > Marking the interconnects property as optional makes it possible > > > > > > to load the driver in that situation, since the EPROBE_DEFER return > > > > > > code will no longer be propagated to the driver. > > > > > > > > > > > > There might however be undesirable consequences with this change, > > > > > > which I do not fully grasp at this point. > > > > > > > > Temporary NACK till I get a bit more time to take a closer look. I > > > > really don't like the idea of making interconnects optional. IOMMUs > > > > and DMAs were exceptions. Also, we kinda discuss similar issues in > > > > LPC. We had some consensus on how to handle these and I noted them all > > > > down with a lot of details -- let me go take a look at those notes > > > > again and see if I can send a more generic patch. > > > > > > > > Paul, > > > > > > > > Can you point to the DTS (not DTSI) file that corresponds to this? > > > > Also, if it's a builtin kernel, I'd recommend setting > > > > deferred_probe_timeout=1 and that should take care of it too. > > > > > > For the record, I also encountered this today on next-20220726 with this > > > device: > > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm/boot/dts/sun5i.dtsi#n775 > > > > > > The driver won't probe without fw_devlink=off > > > > Really? I basically ended up doing what I mentioned in my original > > reply. next-20220726 should have my changes that'll make sure > > fw_devlink doesn't block any probe (it'll still try to create as many > > device links as possible) after 10s (default deferred probe timeout). > > Can you try to find more info on why it's not probing? > > /devices_deferred should give more details. > > By the way last time I checked the initial issue that I reported appeared to be > fixed by the patch (Extend deferred probe timeout on driver registration). Thanks for the confirmation. -Saravana