Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2947346imm; Thu, 24 May 2018 19:40:11 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoOxQQje2Dn0J5caw4kRrifkzSrVVVKJskAuJXKT4Aj4Yyv1tg2hEl9WjAF/sttC3WfshOS X-Received: by 2002:a63:7209:: with SMTP id n9-v6mr486455pgc.146.1527216011780; Thu, 24 May 2018 19:40:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527216011; cv=none; d=google.com; s=arc-20160816; b=anHCn5PmvkepotlQiyrLcjHT6FC6XnoMJ6ZHAhSxHt4/hJM9N4fgIKg1onqpnwr/rp 2IkF0s/ztCwJmj7stFPyDgzkMybr7i4y0ovI5Vb16ALWX0ZYn+CeWsbCBGrA/K3mcMUr 3ME7wEYJmXE8Hh6qX3KjTytIE8BWcaH8e598qIljWG8EpqyLVbuvcAUrSHS8B/EqCr+5 UHmNxh68ty0PUCwvEy+b+9rSiZ17hMB+iV3q0ZZdWd1fVi4utsH7UWcr3d2itt0PoZKM r9kdhqXOSPa5fnI0F72gdybQ0EpjFNlhl317uf9jkXRKrjuOX9Yx6WOAjLHP5sEh73hB 0f/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=064JMKUltSTb0Hj2w+IQ4TF5C6QVq5eo9oh2q3ZRzEU=; b=Ts0lhfXULMB8cRV+nD057fQ5HgUK3+u/NS2YwpQn7MauUAe5vVqNPIBTDm7HuS/RZd bYYKnnaGmYTl+A+Vlc3iS5aJXURT3nabawUzQdl0cCimRDEtLH9KPR5be+mg9MQPLGLM JGdxDWnQBy2Nx4QKXnXePeu9RSjGqf0JmsvQW7oEtNtuRiHALiMRJWwQ5ZWPr3E8cQnN c7asSTho+X+f0Fgv6alLNiYcXuiKpzcByy7zh/JuwrVGhdCvn+wG6YVPuz27Sb1vLpwz k7Al9TXaf/Qt4UV1h+UGusnVdkiIK6XsIpKCBKEnNMkyvzux6LT/SzdfczyrDtnbmCbZ b4Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tS5TxiKt; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e18-v6si9223487pgv.160.2018.05.24.19.39.57; Thu, 24 May 2018 19:40:11 -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=tS5TxiKt; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S971119AbeEXTqM (ORCPT + 99 others); Thu, 24 May 2018 15:46:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:56750 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967371AbeEXTqK (ORCPT ); Thu, 24 May 2018 15:46:10 -0400 Received: from mail-qk0-f177.google.com (mail-qk0-f177.google.com [209.85.220.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C292F20882; Thu, 24 May 2018 19:46:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527191169; bh=OjPha8G8STckouukdqecOvfI4SQYHPSnTWd9fdqFjCA=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=tS5TxiKtDBY67PRKuMpiznL2BM1pfR8tL1M1cdES3TUzEZ+Dt9+KHYIQ+/On6HQy9 pulF4SXFilzPjDI13uUSv+BUIMHdX4+I9BZG4DuqW7VE0/zPa6WRWK5Of67MhDvvh4 rOFY8FcaubS4DuTwsDM5295kbXJBRN/BF/x1JJok= Received: by mail-qk0-f177.google.com with SMTP id r28-v6so2287911qkk.4; Thu, 24 May 2018 12:46:09 -0700 (PDT) X-Gm-Message-State: ALKqPwdrqNZj8nH3AwL06TaDhIFqgrpyUBBDF1cBoDnWJ/t99qLSZ1uj UWUQSV1mUxUw/07mMNgjEzoJ78ATcx7cndTtSQ== X-Received: by 2002:a37:17c5:: with SMTP id 66-v6mr6779375qkx.375.1527191168954; Thu, 24 May 2018 12:46:08 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a0c:9b02:0:0:0:0:0 with HTTP; Thu, 24 May 2018 12:45:48 -0700 (PDT) In-Reply-To: <20180524190126.GC31019@kroah.com> References: <20180524175024.19874-1-robh@kernel.org> <20180524175024.19874-3-robh@kernel.org> <20180524190126.GC31019@kroah.com> From: Rob Herring Date: Thu, 24 May 2018 14:45:48 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 2/8] driver core: add a deferred probe timeout To: Greg Kroah-Hartman 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" Content-Type: text/plain; charset="UTF-8" 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 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? Rob