Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2537868rwb; Thu, 17 Nov 2022 12:13:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf7j0tglOiiCbVK+pO95xu1PACS6ooA9fcSs09eS0bmTyghm4QIFgl1O5joO0bb/rjg3xQnB X-Received: by 2002:aa7:91c9:0:b0:56d:8e07:4626 with SMTP id z9-20020aa791c9000000b0056d8e074626mr4411535pfa.70.1668715985547; Thu, 17 Nov 2022 12:13:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668715985; cv=none; d=google.com; s=arc-20160816; b=JbCoEjIXtsQ9qCHsQtEc2fm19BgJC7xnxZHAPEGz+RxX0WGRieXD1u5UkD1RFz0Lji /wjjX9Uiy2VrPs7obKetOwSA1dQ4cCsymVVDmUJIE9L3CJx7QYo0dUaLf54KwMxSBQZi wmhi1xFEyAHNdrgwOsx0eZIG5mmaQ6iM8LqEjRg7a8d+LYaAToGH6/mvTOB1D4NzScb0 bjXDIs/G+0Lu2A9tsSwPezizkMDl1Uf7DEKpKGmOcwt6f2W+f/r9hWi8vR9FNQ3u5u5r mf/uS60g/2ksVQ8CXKj+03eX355Aj7cNoip+EbX2NIh3PhIHYSvBft2fH4fKeN/EwAyj HHSQ== 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=YoCx/ytCPYkVE5RQNMVjvYQ1cgt8vpy5qf7ry5sPvLI=; b=O/V4QL/xsYlxJUa6BLXzq9lXhmZaMqYS2tvJUjl5gXftebfZuOySRIH7dNnAjjZyIV qCqkK245rvFvt8dQOzkLnWbIEWHYGO3JcPPjeNxJ0pwJsWa3XCJGpdEYhLGh74SqPiIB PAMsstoKiezJD52eNIQuI1h+xERrmPiI0T5ChlYhq8/2AApqJqGhOL4/foO8JXV1BYn2 7XaEvoHMKSE4KFDiz7prgeqTP/U4A1bNtYOfzRy37NP/VnkQFYs3mf3fAYRaDMPAgckb Gp4LL9/X9ORHHynZgigr8cf9Of4fl3fOd6vwgN8hyb69ZNmOIKE26NVeYbRJerp2X6bM frbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=KATVXcrr; 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 n27-20020aa7985b000000b0056d67d820ecsi1620236pfq.258.2022.11.17.12.12.49; Thu, 17 Nov 2022 12:13:05 -0800 (PST) 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=KATVXcrr; 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 S235080AbiKQTII (ORCPT + 92 others); Thu, 17 Nov 2022 14:08:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234455AbiKQTIG (ORCPT ); Thu, 17 Nov 2022 14:08:06 -0500 Received: from mail-vs1-xe2c.google.com (mail-vs1-xe2c.google.com [IPv6:2607:f8b0:4864:20::e2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 733D98517A for ; Thu, 17 Nov 2022 11:08:05 -0800 (PST) Received: by mail-vs1-xe2c.google.com with SMTP id q127so2529198vsa.7 for ; Thu, 17 Nov 2022 11:08:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=YoCx/ytCPYkVE5RQNMVjvYQ1cgt8vpy5qf7ry5sPvLI=; b=KATVXcrr/wn1jSvQlMql9mKjlJN6uihFmffY0kTf394vNCMxfYR7w+bLEl0oYXlQQw tuzmYzT3C8obqgbnhr1QjJbMLGAJnkTF1EIFsQw40NpY6tT8BviqgJKUjkBEjOX5nYhd 1NfynzqZv+AK5b+Dzokf9xPt5BJPv0Wzjllpi+UpSUDMRvtUYc5XRCzLm6T2U+yJwFEo eaozUZPZ4OXdQRwNaAY+sxzSDBMeWxI2DZiCAaxjikBnkCPlj1J0I7z8Uykta8gg61z1 U1YLnsIhRCCVYtEi3MNxEnK/k/OzLL8m/qi+N1jbxmWT81dn0iWopzlHm47tDIl0Ay7K Q8zQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=YoCx/ytCPYkVE5RQNMVjvYQ1cgt8vpy5qf7ry5sPvLI=; b=RImH2KIggA3ctGji8B4ta1577XtQ/tG9INfwCR5glQA9x2INj+Yrg253WMazjfPnkf FgGnEA+IZ2Fi+Q2v53RYyXUbRnnmZgzCY9/JBh1QJUBupNS/KACurM9GtEXfnS0pIYow MM4jcLPdAeFiVa0PK2cdhSauN2pLVNnV4pn2qldXZDPph0XD1z4YHcdcQGDufto/CTuD rElThAaleWRoaUCTDk6fkL+pDfBVmWwGbETaATl2Rs38VNu890rj3xIhA4iGLAbhz39P oaoNO9pq9mk8nlFTLll6l2vN1+Md908iYEkgzlz/HGKuM9qFvQhhQL9QKcWTnsUHicmw lgeQ== X-Gm-Message-State: ANoB5pkH3ygUsHoAmuJsyxy11AauBulBDBWmwaemuJHaLnp0wbxPmyBW CJX+TF9EGbsWj5ItYjBAZBDPA5CPqUTWNdPz2Oo5 X-Received: by 2002:a67:c504:0:b0:3af:b21a:c2f5 with SMTP id e4-20020a67c504000000b003afb21ac2f5mr2607573vsk.81.1668712084529; Thu, 17 Nov 2022 11:08:04 -0800 (PST) MIME-Version: 1.0 References: <20221116115348.517599-1-javierm@redhat.com> <20221116120159.519908-1-javierm@redhat.com> In-Reply-To: <20221116120159.519908-1-javierm@redhat.com> From: John Stultz Date: Thu, 17 Nov 2022 11:07:52 -0800 Message-ID: Subject: Re: [PATCH v2 3/4] driver core: Add fw_devlink.timeout param to stop waiting for devlinks To: Javier Martinez Canillas Cc: linux-kernel@vger.kernel.org, "Rafael J . Wysocki" , Douglas Anderson , Saravana Kannan , Daniel Vetter , linux-arm-msm@vger.kernel.org, Peter Robinson , Steev Klimaszewski , Greg Kroah-Hartman , Enric Balletbo i Serra , Bjorn Andersson , Brian Masney , Rob Herring 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=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, Nov 16, 2022 at 4:02 AM Javier Martinez Canillas wrote: > > Currently, the probe deferral timeout does two things: > > 1) Call to fw_devlink_drivers_done() to relax the device dependencies and > allow drivers to be probed if these dependencies are optional. > > 2) Disable the probe deferral mechanism so that drivers will fail to probe > if the required dependencies are not present, instead of adding them to > the deferred probe pending list. > > But there is no need to couple these two, for example the probe deferral > can be used even when the device links are disable (i.e: fw_devlink=off). > > So let's add a separate fw_devlink.timeout command line parameter to allow > relaxing the device links and prevent drivers to wait for these to probe. I'm probably being dim, but it's not immediately clear from this description *why* this is useful. Maybe add some words on the tangible benefit of splitting this up? I'd also push a little bit back on why we need to split this into a separate boot option. Since it's not obvious as to when a user would want to use fw_devlink.timeout vs probe_deferral_timeout. The extra complexity of remembering which timeout is for what might become a burden to users and developers. > > + fw_devlink.timeout= > + [KNL] Debugging option to set a timeout in seconds for > + drivers to give up waiting on dependencies and to probe > + these are optional. A timeout of 0 will timeout at the > + end of initcalls. If the time out hasn't expired, it'll > + be restarted by each successful driver registration. > + This sounds pretty close to like the deferred_probe_timeout option. I'd suggest some words to make the distinction more clear. thanks -john