Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1143158pxb; Wed, 10 Feb 2021 00:45:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJyZcZCHMrnvLkPOcMjkucs+kVdUpiNRAvTAfTQrAoCRPVfmINf7swBng1vc6gJYg3NCyHR3 X-Received: by 2002:a17:906:d8ca:: with SMTP id re10mr1957333ejb.18.1612946715205; Wed, 10 Feb 2021 00:45:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612946715; cv=none; d=google.com; s=arc-20160816; b=dh2DtGEq8LlcGaf2YtPXhxJpwWc7JEtSC1vNCC21qLoLYdjL6lqlW4iN9L+C1SURqo lyx+PeCsM7LSZE1dsAquwV5qIlw+0M8ZXa80hmnB1YuejchdXg0dw2LbrebItgVdI5ej eN4u2o/a1h4OIEB83ClfEkyBAyPETC2KkvmK6/3a2NWEIhSLqoxj3T96bqOq+4VARt9P 1YTJ64stfAy49HTprVOtDQomDjMo22dCSKp4N98f5FWJO6sUxPNkqcFDydI6guNUFoVz Uhr9N8vr37Bc3Ivm5BLycCBMIYK4iONBa1Oxf7lbyfe63teUBMj5N6q2W+Tc163tuwut T4tQ== 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=FIqgcDLVoAGyNzTIfHbE7e7huwuc6dNEEW3mElUfayY=; b=oggwGcxCFM1E59VpERa9y9dxK39X8WA7Almjq9G7cHo0GQ2D6qL8d9kBeymJXK3gzu kNGO6VLJvzayni57N4BdnTRgW0UNJ7Ir/u6Lufrlyfl5+/sCDMoYccHlVFWkT2qmc71h WaOsCk+IZajJOqokDzdIA+9rX2HYSaAsIp0z8tBl0HgyEDGvVuX2Lvev+8oxAxFXG83c kW1bneaAGHr66r7v7qk2M7+MbNYmbHUgBFI/3H93bMO8rfA2bLULwrZpMldpi2UpTMIE 4RXUQXDS3ydWf31rEJZp6JFrZ423/OS3fOQT72S915XmiWRKFCo+P8kIbi9cQ2hvIOgi qNnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ZMlMXKHb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t12si1145369edc.228.2021.02.10.00.44.51; Wed, 10 Feb 2021 00:45:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ZMlMXKHb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S233867AbhBJIWc (ORCPT + 99 others); Wed, 10 Feb 2021 03:22:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233852AbhBJIWG (ORCPT ); Wed, 10 Feb 2021 03:22:06 -0500 Received: from mail-yb1-xb31.google.com (mail-yb1-xb31.google.com [IPv6:2607:f8b0:4864:20::b31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20DCEC06174A for ; Wed, 10 Feb 2021 00:21:26 -0800 (PST) Received: by mail-yb1-xb31.google.com with SMTP id l8so1143361ybe.12 for ; Wed, 10 Feb 2021 00:21:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FIqgcDLVoAGyNzTIfHbE7e7huwuc6dNEEW3mElUfayY=; b=ZMlMXKHb2IDsH2nmflNqtxbKxm/anDuvK4EdtH00w+xq+Cs62Ca05AsGNbswPdmLtI T70nN4QcivwcEdsLA1COlCFcdYI5Hl1yfoPSTGtd2eeIHnRYOyopk1QCCM5TyVfwsihK zb/xhAVPykGoXGHAHVOcuWou3IL8xnNM9k+ed4nP9y5BU+QjZWeduiErGAsS4lT9fnJC BxPnzYXvKT9hgjpNvRL8Yn27rtCNSL/rJsjS6To7a81t3B9AsGxISYt+3RVfbeB/hkLR /lYDt9k40+qNoky7XLIv4oewcqujE/kPjCvBsZ07zf2nVrEWHT7MKZYJct+lvJOUahWz 7jTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FIqgcDLVoAGyNzTIfHbE7e7huwuc6dNEEW3mElUfayY=; b=In8bgwMSazPKMEAiBxOxUww1+Bnm9TO+qBX6vq/B8mkI9fJhRRiWnngKk+UGwM9ZNh TjqbSp8vtARrf7DyCffW8QE4k3M/NoBm+zoywdwvDMSiAhXhQv6zsodg0WChJObMGtY6 4oRI8JB8QWPU40NIaanHo9065lVBnkFZqxP0WYwP87eI4PHnLb8DZNK6ZmhIgyMDpY7V XIaM85GCTbs0nK1gzdY575ieS++RH0MC8P8ME3C5gJ9p0g2zQeLPNB0+aW3+dLGh9CqT e/fgXyumwzfsz2YgnYcqhwjNOxdzLvyOJ1gcKzhryh7KH4wTnDvyWq0ahfbMI3MVbW7m NsYA== X-Gm-Message-State: AOAM5319guuLc4BPF1T6BLqVbmasJ/xt2ZpWkGvNERYhUHjDZNNRXRHC criprjg7jDLqiSUEaovcr0IohmrVgOrzTzJ+GQSROHsI/Q9lzQ== X-Received: by 2002:a25:b74c:: with SMTP id e12mr2914529ybm.20.1612945285197; Wed, 10 Feb 2021 00:21:25 -0800 (PST) MIME-Version: 1.0 References: <20201218031703.3053753-1-saravanak@google.com> <20201218031703.3053753-6-saravanak@google.com> <20210210055430.GA73123@roeck-us.net> In-Reply-To: <20210210055430.GA73123@roeck-us.net> From: Saravana Kannan Date: Wed, 10 Feb 2021 00:20:48 -0800 Message-ID: Subject: Re: [PATCH v1 5/5] driver core: Set fw_devlink=on by default To: Guenter Roeck Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" , Android Kernel Team , LKML , Jisheng Zhang , Kevin Hilman , John Stultz , Nicolas Saenz Julienne , Marc Zyngier Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 9, 2021 at 9:54 PM Guenter Roeck wrote: > > On Thu, Dec 17, 2020 at 07:17:03PM -0800, Saravana Kannan wrote: > > Cyclic dependencies in some firmware was one of the last remaining > > reasons fw_devlink=on couldn't be set by default. Now that cyclic > > dependencies don't block probing, set fw_devlink=on by default. > > > > Setting fw_devlink=on by default brings a bunch of benefits (currently, > > only for systems with device tree firmware): > > * Significantly cuts down deferred probes. > > * Device probe is effectively attempted in graph order. > > * Makes it much easier to load drivers as modules without having to > > worry about functional dependencies between modules (depmod is still > > needed for symbol dependencies). > > > > If this patch prevents some devices from probing, it's very likely due > > to the system having one or more device drivers that "probe"/set up a > > device (DT node with compatible property) without creating a struct > > device for it. If we hit such cases, the device drivers need to be > > fixed so that they populate struct devices and probe them like normal > > device drivers so that the driver core is aware of the devices and their > > status. See [1] for an example of such a case. > > > > [1] - https://lore.kernel.org/lkml/CAGETcx9PiX==mLxB9PO8Myyk6u2vhPVwTMsA5NkD-ywH5xhusw@mail.gmail.com/ > > Signed-off-by: Saravana Kannan > > This patch breaks nios2 boot tests in qemu. The system gets stuck when > trying to reboot. Reverting this patch fixes the problem. Bisect log > is attached. Thanks for the report Guenter. Can you please try this series? https://lore.kernel.org/lkml/20210205222644.2357303-1-saravanak@google.com/ It's in driver-core-testing too if that's easier. -Saravana