Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2945903imm; Thu, 24 May 2018 19:38:19 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoKjphA9ZfNoiF8SdP35OUEL3VYr8ApnxahgtA6E6vVnermkT0Aqod4wAjxk6vbbNiATAjq X-Received: by 2002:a65:62c5:: with SMTP id m5-v6mr464497pgv.13.1527215898951; Thu, 24 May 2018 19:38:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527215898; cv=none; d=google.com; s=arc-20160816; b=RTjWlmFD2Kv0kELWhQ+jCnbye3jVf9tGGNcvQQoW2YKz90Dqi2P5u+RqpB5zUd2qt/ U4aABXgFIXi9TydYvY+cbrPxPHcuFP0BncOgMaTgpL+XqoDBr5b2rmfqMv4JYpE4OPhS Rs+zKwqEzyD8AfuWREhziv7gSlo4IadTgXjGhMYqWU78n6Ui+u/FQj9YxmB6HZOiR0Hn 3YSofbfPEzr7Anrpu9WeWb5EyaVFR14/RuYpKBnPsxJJWsLASWktlWZyxQi+MAXZLDMK bqT0G6+CmQc1FfCop1Gr1KrNWGWK5Dz262DferfOVxuXN7WMCGJ7JEmDvy2Z0jrALmE1 xUHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=OUZZhr+JTbphAj1PHn/WGh8dLtY3qZJyDeZSt1B3nlM=; b=OkETCCA7aJqRTvA9CyvTh8Sa4o751XwmQkRpx4BxEfmHV+h0DbGuMzFurVKJPuVx0x mYRsO0FjSlhddDOJyZjDnu4VctPIOgXnPrlWYJ7n5+Zk/WGC4zQcz4EFdrVQ5Mxc/2a3 UsCzHtTmCmZyCvWSBVXDkQpAV+IULtnUR1E9VeOd7PfIEAZS4Zt9Z77m/HX0UDY+cLYE r1ch8n8+Ol97brYkjd4lV26OqwaSdaj+eQZUuY/Cq15ADKjlb20Xvyd2RkwzVzWRMU+J /kV3IyiR6obngEcfFo4BSAbm71wV48942X+XjYR/oUa89xmoglN6SyFGqWms680RYvMo gqDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JQNwcw/z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m11-v6si10532162plt.284.2018.05.24.19.38.04; Thu, 24 May 2018 19:38:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JQNwcw/z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161140AbeEXTBq (ORCPT + 99 others); Thu, 24 May 2018 15:01:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:39934 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1032740AbeEXTBp (ORCPT ); Thu, 24 May 2018 15:01:45 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D79A62086E; Thu, 24 May 2018 19:01:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527188504; bh=oEFYd6axewpmP6QDOcK2Sk1mCjsPcsAdKbI3hmWHfAo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JQNwcw/zCXuvCcrqncSu4wvrgh9fQwD2rqWvzUZHk6es/weup5Rqb8lOtp2xro+y5 YpwvWynunwP7EDrZRxaEnOuJGKFQBJy+4HGXJvENVl34QCcQ61vjXTG0Exir8gKwCk MBl8WigkkrRC5gaU8WieR1sVQjApBRkorSTHPsIU= Date: Thu, 24 May 2018 21:01:26 +0200 From: Greg Kroah-Hartman To: Rob Herring Cc: Linus Walleij , Alexander Graf , Bjorn Andersson , "Rafael J. Wysocki" , Kevin Hilman , Ulf Hansson , Joerg Roedel , Robin Murphy , Mark Brown , Frank Rowand , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, boot-architecture@lists.linaro.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 2/8] driver core: add a deferred probe timeout Message-ID: <20180524190126.GC31019@kroah.com> References: <20180524175024.19874-1-robh@kernel.org> <20180524175024.19874-3-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180524175024.19874-3-robh@kernel.org> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 24, 2018 at 12:50:18PM -0500, Rob Herring wrote: > Deferring probe can wait forever on dependencies that may never appear > for a variety of reasons. This can be difficult to debug especially if > the console has dependencies or userspace fails to boot to a shell. Add > a timeout to retry probing without possibly optional dependencies and to > dump out the deferred probe pending list after retrying. > > This mechanism is intended for debug purposes. It won't work for the > console which needs to be enabled before userspace starts. However, if > the console's dependencies are resolved, then the kernel log will be > printed (as opposed to no output). > > Signed-off-by: Rob Herring > --- > .../admin-guide/kernel-parameters.txt | 7 +++++ > drivers/base/dd.c | 28 ++++++++++++++++++- > 2 files changed, 34 insertions(+), 1 deletion(-) > > diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt > index 11fc28ecdb6d..dd3f40b34a24 100644 > --- a/Documentation/admin-guide/kernel-parameters.txt > +++ b/Documentation/admin-guide/kernel-parameters.txt > @@ -809,6 +809,13 @@ > Defaults to the default architecture's huge page size > if not specified. > > + deferred_probe_timeout= > + [KNL] Set a timeout in seconds for deferred probe to > + give up waiting on dependencies to probe. Only specific > + dependencies (subsystems or drivers) that have opted in > + will be ignored. This option also dumps out devices > + still on the deferred probe list after retrying. Doesn't sound like a debugging-only option. I can see devices enabling this when they figure out that's the only way their platform can boot :) thanks, greg k-h