Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1633073pxb; Wed, 10 Feb 2021 12:56:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJx3gj83jTgy1QfZRuzZkunrpfBx5uvoUSH25hF5ZnotjADCXjzl1qBaBnFvnE2oIXGGnd36 X-Received: by 2002:a17:907:1692:: with SMTP id hc18mr4901490ejc.244.1612990618923; Wed, 10 Feb 2021 12:56:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612990618; cv=none; d=google.com; s=arc-20160816; b=mytVkrdWKIvDgiQr7YRJAvMo2+FYeGrlao3IJ7J+gimTY9yP2YdwD29zf0ezEfGyL+ qK7KylALf6r3U9eMKh/FYAEyUq5zs9aoOx4a/X/SIKPSOlTb+g7zVZ26zAS2GOo/wGVx l2cNHycfy3lECg5Uud6VtvCpjtBuue47P529UjjQjtSm1r3IlQj9/ITKQfjD/5v58xH/ uwpEArWKpPiFaJCkmQRN7ZazEcB/50U2gSKfs3c3pPDzUWn3RLM5vO8DLuYpKeDIsFon 1OgwHm/m+RKhvVg/r/YQjsuNSQUfPQnLYZ4NTiMAFXS4zvme4uj1N8HXzobQV3CsegGL m2ZA== 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=BsB5KRJaGcVhcZiseIo9XXgOJ7KRckf1RNXqQ8o+K1c=; b=wiyJ1iDKs/GIl1jPnJVWlIGjM7SDFOSh+YBge/VXHKJf0FvCKO70MAoWHmwZafCpBq kCWDCnsASdEiSScpOeW0xTNtWsEERR/7O60QI7yLYvufC2uQs3pjxOy3PX3ZRCKUurX1 BbSPqE/zaqpycm99HWWBQC01K/mdRAe8+QtCuNOPaAOsshYHG29JEJMsPRlVsVa9TASS p4l9C0rFCSb3/PT4ItqdcF5Zdne4e2KAB2do5fqEoKPI+EgAnlv+hlKr0pb8u3w6+yJe 8WvdHGm6KQxZusX09SCZHnKAk4qbJJAzwsIHwh1Cn4rHezADGd7kpAIye7NNJRvls75j 0N/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Yc469+QX; 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 j16si2036600ejy.305.2021.02.10.12.56.34; Wed, 10 Feb 2021 12:56:58 -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=Yc469+QX; 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 S232037AbhBJUxv (ORCPT + 99 others); Wed, 10 Feb 2021 15:53:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232166AbhBJUxr (ORCPT ); Wed, 10 Feb 2021 15:53:47 -0500 Received: from mail-yb1-xb29.google.com (mail-yb1-xb29.google.com [IPv6:2607:f8b0:4864:20::b29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E72A0C0613D6 for ; Wed, 10 Feb 2021 12:53:06 -0800 (PST) Received: by mail-yb1-xb29.google.com with SMTP id l8so3379184ybe.12 for ; Wed, 10 Feb 2021 12:53:06 -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=BsB5KRJaGcVhcZiseIo9XXgOJ7KRckf1RNXqQ8o+K1c=; b=Yc469+QXefSui1tifcqA/p8KFWOiXopacGJDqvWnRhTpKQINREc+ZxaGRpuQ/WM3d6 zJ8Swxlie5zX0zsN4cbkwZzSQFygwI91ioP3117sBFrGVPm8hFRNZWuyQsTTXI9Nlxev nTO9eyc04R0YG3GMyYsqgrecQlToDk4zwi5cnxJIvAL8icU12ThURwW5hQBcolgp9cmD YmD8nfo/VJUo5ArYG3a3WHo57QUOlZxXtkW7IE+FQ/6CEy+vLo7k2ihl6cTO7y5x2NMp +hGiRiwubF7X+wX6p63hJ0XFQaoZH3TJWpCbckBz+34vV2dH67qwN3YnYOwjC5q/8Bxn o9eQ== 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=BsB5KRJaGcVhcZiseIo9XXgOJ7KRckf1RNXqQ8o+K1c=; b=ATxFC6Tjtpr1TFIRUe2ghLNmF5l6dhV5ZKPnCHyUdOCCE97vsKfBhUy9s8e1kSOX6R 0nRzrHfa+FAKSKsxZlIhD6Sur63PquFH1mNBqA3/wW/iiNw8noGFR1anCmaiQazvKEyo FHrP/+qkNBFtnzOhR8d8ikDfpUsh2zor08frTylTBiKPQntinY1jXAgqf3buTiz0maBw 9+T2dlQ+7+tCrsgZ/RkhL3UriKFb2LU6jPnwf3jBvPd1x3iBXwwHIU4/VZcWd9ajRSFe yZYCIacGaiJKgBvQBNfrUgy4AWIqSQa/8kUU+k86uoCa06Gg5nDdM+dM7VM0qOIDFIMX numg== X-Gm-Message-State: AOAM531vZ4EDtkhpxsFh3lXpHUFb+EyKzlDRaqXsbwCP7QD78x+acKeH GJ6AVVqpz52zEX8ia2L50e8uNiVxbfZuqRliMfNsWg== X-Received: by 2002:a25:718b:: with SMTP id m133mr7085877ybc.412.1612990385982; Wed, 10 Feb 2021 12:53:05 -0800 (PST) MIME-Version: 1.0 References: <20201218031703.3053753-1-saravanak@google.com> <20201218031703.3053753-6-saravanak@google.com> <20210210055430.GA73123@roeck-us.net> <33f643b9-9f6d-e59a-64e7-2d2b7d3e71a4@roeck-us.net> In-Reply-To: <33f643b9-9f6d-e59a-64e7-2d2b7d3e71a4@roeck-us.net> From: Saravana Kannan Date: Wed, 10 Feb 2021 12:52:29 -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 Wed, Feb 10, 2021 at 7:10 AM Guenter Roeck wrote: > > On 2/10/21 12:20 AM, Saravana Kannan wrote: > > 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/ > > > > Not this week. I have lots of reviews to complete before the end of the week, > with the 5.12 commit window coming up. Ok. By next week, all the fixes should be in linux-next too. So it should be easier if you choose to test. > Given the number of problems observed, I personally think that it is way > too early for this patch. We'll have no end of problems if it is applied > to the upstream kernel in the next commit window. Of course, that is just > my personal opinion. You had said "with 115 of 430 boot tests failing in -next" earlier. Just to be sure I understand it right, you are not saying this patch caused them all right? You are just saying that 115 general boot failures that might mask fw_devlink issues in some of them, right? Thanks, Saravana