Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2947756imm; Thu, 24 May 2018 19:40:43 -0700 (PDT) X-Google-Smtp-Source: AB8JxZroPjNxmq1TGO5tdLrcAFh2iGeQKfQycSgO5nhxswSaiNxcDVVNVBL6sIeZ/jm2xvWVqaQU X-Received: by 2002:a17:902:4081:: with SMTP id c1-v6mr634837pld.60.1527216043372; Thu, 24 May 2018 19:40:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527216043; cv=none; d=google.com; s=arc-20160816; b=rpyGsbAUn4SZkXGr5f/crS0SewXK7P2mTfyOHcIyTgebNMRyp9hv421uzTuOD+WHxp +rDFgCIePO5OUjnvxN1AQbD1uklS/ITwqsUUt1aLBmLd/ZtqlsjS15jS1Jr3aTSX2Sct +p1Fp+o+pAz1dEtlj5vamzAbdIIH2Py5pOxYOM+/475Z5yN4XlZn6qSujOtKaew2YgQH x0MnBz0jK+Zk/RAoNRjiZPq7txK6FmtJkA2xuS1kI3WiYiUSsaRAUHFwgJMC7G/2DBRN AWG60Sp8ERLlW40nZC4DWGHjAIwm5WjIXVPDAZ61sXTmBTct1uYNX3ooW5HY9dHyu+yM ApUQ== 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=DpDbkU8DRs3UKV0pEJCsFyGZm/e4F17p1S3Mnng0Ars=; b=LUSmx4B2fkv7QoT1vvn1Du5458KRxLJGyZ1QcxGjRcgVvczWeEd546sWWScMO7RBWE g6E41sUPg9XSIw3wz/7kysa18ynECAJkonfo8Cd3NvHTRn88N1vxpu89zg5kNHAZ1nph W2XO5VAtjvPnBNNGk85a4MjJw6ZoXgzUoMojig57m5z4Md7exY0DqPJFCtYTtZUyse/y TIXmAXLatOhsyIVVp0Uo20zAR6/aQ2mpPOrSWqe6zsuD5ofvGFa+0SjoetGtx9NVI8LO svqPYiFbhQ1dn6aqZiiHnCMypbIqar71ror+TAkiOc4iS6FeLctstcKiAYFVVU4q4NKh U1UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Dul8gj0M; 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 g3-v6si21965794pld.309.2018.05.24.19.40.29; Thu, 24 May 2018 19:40:43 -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=Dul8gj0M; 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 S968664AbeEXTv2 (ORCPT + 99 others); Thu, 24 May 2018 15:51:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:58190 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S968151AbeEXTv0 (ORCPT ); Thu, 24 May 2018 15:51:26 -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 508122084D; Thu, 24 May 2018 19:51:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527191486; bh=eVgGRuLS8D4Rl9karIvJfFECtD5g3Pk9UweEDRYYjUQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Dul8gj0MA+ZdTQOOkkvuZ9KSOQykPJRCzcVdhC6ssa8FZ2dTjJWPYud49x8oAE8yx 6MmGwcnlHJt9Xm/ftXn85w3rNAGuY4IQNb5+jq0ZvnNSFf1tO6XJIgf2Vl3WXX1p6B urxMOOair18/dVbaJuGWTnQO2kqHnSvRooXOpfmo= Date: Thu, 24 May 2018 21:51:07 +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, Architecture Mailman List , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" Subject: Re: [PATCH v2 2/8] driver core: add a deferred probe timeout Message-ID: <20180524195107.GA4917@kroah.com> References: <20180524175024.19874-1-robh@kernel.org> <20180524175024.19874-3-robh@kernel.org> <20180524190126.GC31019@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 02:45:48PM -0500, Rob Herring wrote: > On Thu, May 24, 2018 at 2:01 PM, Greg Kroah-Hartman > wrote: > > 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 :) > > Here's some rope... > > No doubt it can be abused. So are you saying don't call it a debug > option or hide it behind a config option? And for the latter, what's > one that distros don't just turn on? If it is a debug option, make it obvious it's only for debugging. The commit log here says it's a debug option, but your documentation does not say that at all, and that's what people will read. Well, they might read it, probably not. But at least give us something to point at when they mess things up :) thanks, greg k-h