Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2543023rwb; Thu, 17 Nov 2022 12:17:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf4gqcyUMDpb4jc2o1zEHMI3OYfLt0uJ17w1oCB7yAUngo+JBV1FR5OrpiACwg5vd8ZCxA// X-Received: by 2002:a05:6402:28ac:b0:461:9512:ebfd with SMTP id eg44-20020a05640228ac00b004619512ebfdmr3663340edb.103.1668716258299; Thu, 17 Nov 2022 12:17:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668716258; cv=none; d=google.com; s=arc-20160816; b=ugCP/wz7ZPBZlkw2O8R6mly8GR0n4W+pFk0FSuaFoyDBABNBklR26vADam0WNMNc7C kdyCoSPldkUNYOkX1mZxJRtf4B1SkNzQFq7FONM5MscmYSmU2QpWrv7MznvwuRV8grcu I31VTn+XDB2BiadNJdBLlzvui2GuE3cbTezdtJcMtFdnv89kWURwBc8dsxnb58amWZcq 7ZHXDWTZtoWVXHtJrV9opw7NHKlxX2P8gYwELIrD2ungAGflZSkm4lfwt87UvQ816VtE UMZOI5hOlLYCBfsvCGtUpI8ZLzdE38RdPhYIDhuuo8E3ylp0FswUN7sB4m+CR7I/q67D ARLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=qX7k7ySpM2yQbDcfvA3eNm9gzjLpcHZv9S182SN9z64=; b=ItGH5ZiIrJ8NZFVrxIFiaLdmCTWEnveD0Ve83IULFmPmOMyb1S79FWEeJJMHBmPDuo ZjEsxSCQkhJWj6t3GaO66a1S9OTAvJCCkdGZpJIVVhCyHyxugnvcNNykF3LAqgrOgIay T2d9yMH47SIHHl50Qc771oAAC4x8uGq0GZWTBKi53WJckmDIozn7GT87rFm/pQ3L/ZeG Q5+wNjEaVy+HMmC5auXOd92fqvu2dlS95EnAq7ZxtHGsyDYjGvb23yXcFb7F7Y0a6Dr7 BvA8b0oGWQU/bv3Ow1q/BGjfsON1pWHBQWovKnPdnQbVMOXcvEt7rX09ZsapANcYNqCU L+NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=clqnlk9g; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gq17-20020a170906e25100b0073db353cb25si1110119ejb.869.2022.11.17.12.17.15; Thu, 17 Nov 2022 12:17:38 -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=@redhat.com header.s=mimecast20190719 header.b=clqnlk9g; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240784AbiKQTRP (ORCPT + 92 others); Thu, 17 Nov 2022 14:17:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240781AbiKQTRJ (ORCPT ); Thu, 17 Nov 2022 14:17:09 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F68B88FBE for ; Thu, 17 Nov 2022 11:16:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668712567; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qX7k7ySpM2yQbDcfvA3eNm9gzjLpcHZv9S182SN9z64=; b=clqnlk9goL53y1z0NmAvF6hBrWCq9rJiipB8dF0Y2+O4uKTwXZrDaJhSXZXHHQxyvYrDpU MOB1q6u/0AG7OdtPbcuxNWHQEIqjtFFblvFm7U243i9BIF4bxL3PJV/WkCWuXqyG3k5WNG yQuFJ88TXqJCmHpg8mkZ4/QsEHvzV3w= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-630-5FjVfZDqM3Cb36iC7qlU5g-1; Thu, 17 Nov 2022 14:16:04 -0500 X-MC-Unique: 5FjVfZDqM3Cb36iC7qlU5g-1 Received: by mail-wr1-f71.google.com with SMTP id e21-20020adfa455000000b002365c221b59so999476wra.22 for ; Thu, 17 Nov 2022 11:16:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qX7k7ySpM2yQbDcfvA3eNm9gzjLpcHZv9S182SN9z64=; b=XwUTXOCrDg8VI4iM5v0GA+ws4XvP3YvsY3kGjyw1p8IoAoiWOUyBm3/hf9NPmvMz92 zJExYHzd1ilVD1CYDECLyZjv+nN3fUCEFoRxgO4P9Y6jFBhfNGQ09K7e9GvC0wQveKdt Y6arQaVN6rIMxRFX7SsksukTtDHxY4zK/favnw1i3Odw9zoej7zV6Kaa3KofgtOhrqEp DrRAFyFYXSXmhdGIngq2HnXaq2OEphznK0eUvxjSlyZrJsNominlO/NN5yHV/W4jixV6 6QRrIiHkiayuvbNzcFvrfgTgNp9txAlIF8wCdKI9IBhxvuuh7aaxIc/0oAorKkq9zyoq u89g== X-Gm-Message-State: ANoB5plC2pynZubhA2NII9VslSQrVfrqrHfpLnGLGGiOTsRR//9hNnWx NSezB1rUqFZC4p7IA/gCIt0u317IqfBAdFXpac0+yqCpItTKPlZy2Zz3qgiqmh3lfu6XSI6h9K8 fgu3IFFFMcBoZW0Lzmkqq9VwX X-Received: by 2002:adf:ebce:0:b0:22e:4acd:cc89 with SMTP id v14-20020adfebce000000b0022e4acdcc89mr2588535wrn.76.1668712563372; Thu, 17 Nov 2022 11:16:03 -0800 (PST) X-Received: by 2002:adf:ebce:0:b0:22e:4acd:cc89 with SMTP id v14-20020adfebce000000b0022e4acdcc89mr2588506wrn.76.1668712563082; Thu, 17 Nov 2022 11:16:03 -0800 (PST) Received: from [192.168.1.130] (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id m17-20020adfdc51000000b0023677e1157fsm1681896wrj.56.2022.11.17.11.16.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 17 Nov 2022 11:16:02 -0800 (PST) Message-ID: Date: Thu, 17 Nov 2022 20:16:01 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [PATCH v2 3/4] driver core: Add fw_devlink.timeout param to stop waiting for devlinks Content-Language: en-US To: John Stultz 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 References: <20221116115348.517599-1-javierm@redhat.com> <20221116120159.519908-1-javierm@redhat.com> From: Javier Martinez Canillas In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 Hello John, On 11/17/22 20:07, John Stultz wrote: > 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? > Thanks for your feedback. You are right that I need to better explain the why / goal of this patch. But basically is that it would be good to allow timeout waiting for the optional links while still allow the non-optional links to keep make the drivers to keep deferring. I can make a better job at explaining the why in the next iteration. > 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. > Yeah, I can think how to better explain this... but it's similar because there is some overlapping between the two really, but are not exactly the same even though we are tying the two and folding the disable of the two under the same timeout. I'll be OK to drop this parameter btw, and just keep it as an internal var if it's fine to just always use the default 10 seconds or whatever timeout it is decided. -- Best regards, Javier Martinez Canillas Core Platforms Red Hat