Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1652680pxb; Wed, 10 Feb 2021 13:22:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJy67ASaFjGmKI0UyQgcz6gWjvT1Svd2szxYo4YWqdaP9DbHdM0YaXw5Ula7EccP9LJ2/1wn X-Received: by 2002:a17:906:2bce:: with SMTP id n14mr4771362ejg.171.1612992163844; Wed, 10 Feb 2021 13:22:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612992163; cv=none; d=google.com; s=arc-20160816; b=mDsJsfdPIvo0OI6+urJKRfCfAF92nHzaDXldwPc5A4wQrELt1CJW/GOYCt93OY4ugP 2PWZjT3z4lpKNLZbDUufNwHgsYpLyYKiQjYyZcBb+MK7yiJZugCclOICQSg4aU2P9cih rmSH3Ky7O/HWlOzWrTYGjdIc4F8J+68o8L8oYMoNTFaU2J59aaBinYMY/VKuodEMkHFo zhHvC9LeXXnvAvfelgciko+Asl8LOAZtthKUZtmrZfJuEqGMAkSQ8ZPf1zYJhirS420h LthKEme32Aou4K6zA1cvYEOTZC8OAYVPhQXeTJr2ByLyzu3mqaGRuyHWz+JLS+d49t2J U05Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:autocrypt:from :references:cc:to:subject:sender:dkim-signature; bh=skCZAnYC/J+OpbtCkFsFwnqTinOfbpgEwbQYU8Qx0fY=; b=OPMEo7REDmeYrMEYnlUYd5KOnmBrkv8uUOZrniM+sAuEpsYokrsv/TUr64A9gVR8KN Vz2q+sif7Yo8RvCA5YCa/PDkDeklIMIv+izLTN1Unj6fHjjHs6sno3MXs9ztqjVLmFFA OXft51C6sbwoAbPphuXKsfR2a3R5Z27in9iB73psL51oJzq9ajCeqAiYPvvFB6UFV+VZ Q1w/NPX/O/Hmh2O7P7eGoCtDsdKjX74jxxhZrcZlOV2vCv4gKZnZxUFldTAywH+JLTJT zNHg9oCxJZAUUHsXMLs8e2uAPSC6K0g9PDCI5wWilxvo614njkAQiPfngMIJOfIirKkm 3lyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FUWq0due; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o11si2010307edc.411.2021.02.10.13.22.18; Wed, 10 Feb 2021 13:22:43 -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=@gmail.com header.s=20161025 header.b=FUWq0due; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232392AbhBJVVp (ORCPT + 99 others); Wed, 10 Feb 2021 16:21:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230107AbhBJVVn (ORCPT ); Wed, 10 Feb 2021 16:21:43 -0500 Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0374C06174A for ; Wed, 10 Feb 2021 13:21:03 -0800 (PST) Received: by mail-ot1-x329.google.com with SMTP id 100so3249257otg.3 for ; Wed, 10 Feb 2021 13:21:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=skCZAnYC/J+OpbtCkFsFwnqTinOfbpgEwbQYU8Qx0fY=; b=FUWq0dueCeEVzYAbu9J3bym4tVMzu16e91m9TvWVb6MkBD8H/VFKluxwxDuc1Q5tf/ vssOYue8HeQjI/Ok5FrtIMJJsgZaltssJf3snRw0eRLC4f710CVrrFcC8qxL35zvvQE2 zTEkvnenyOGwATGMnD4r7vCUCqLZxIQVe+uDmTlL52MMqq3NcD0DR8WqDaBjJLNrJ4yz ESyubYltWxycm0cqKHhiMsAVO7MmSB4vBMDNTgy/MOsoDy7xoMHkfG6lp1Eum1R4qRMz /QdMy069Vums4x6kcz1MjK5rv2K8nCHQxQ9D9Vfb/0+zQCDS3w27vrxgUaXVRtcAAWmb YH5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=skCZAnYC/J+OpbtCkFsFwnqTinOfbpgEwbQYU8Qx0fY=; b=QmC6VJTv+8m2seKspMX62sFyfvJwguJmbEjRzY4PrloVVs/OYBHkAfhi3sMRtNSbQt NEPnar6LR73nVbTi1T4n3YSgBv7Jzg+ullz/2Z31uDh5+PRVCbKrPDBLwWidS2gElTu/ j+ejmlh3n1nuftTFxGFl6nNPvlhIEYiWJBs3KwMAelD/hyhLOdFVXHQYq3TvvvrxnUk1 rTrZglrenzhQIuOOZOgE9XqaZv/hAX7WY+NSpOybPERPufzanS+UDTYHyzlhmDnhIKAq qlf44D+TV//3k0HJ2r7CeliA2xjG+uZEUgcOxqKiv13Q506Ub5s3OhnHonUT3LIF9Uq5 X+YA== X-Gm-Message-State: AOAM532QydDAeZeUxNYOPIFyNe+FPujax3x6t/cZLWU228iqhVj2/Z4k evs/NwFjFnBAsztgdzIP5O8= X-Received: by 2002:a05:6830:140a:: with SMTP id v10mr3590604otp.355.1612992063039; Wed, 10 Feb 2021 13:21:03 -0800 (PST) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id f29sm229709ook.7.2021.02.10.13.21.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 Feb 2021 13:21:02 -0800 (PST) Sender: Guenter Roeck Subject: Re: [PATCH v1 5/5] driver core: Set fw_devlink=on by default To: Saravana Kannan Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" , Android Kernel Team , LKML , Jisheng Zhang , Kevin Hilman , John Stultz , Nicolas Saenz Julienne , Marc Zyngier 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> From: Guenter Roeck Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+ApmcQ9i87XdZQiB9cpN RYHA7RCEK2dh6dDccykQk3bC90xXMPg+O3R+C/SkwcnUak1UZaeK/SwQbq/t0tkMzYDRxfJ7 nyFiKxUehbNF3r9qlJgPqONwX5vJy4/GvDHdddSCxV41P/ejsZ8PykxyJs98UWhF54tGRWFl 7i1xvaDB9lN5WTLRKSO7wICuLiSz5WZHXMkyF4d+/O5ll7yz/o/JxK5vO/sduYDIlFTvBZDh gzaEtNf5tQjsjG4io8E0Yq0ViobLkS2RTNZT8ICq/Jmvl0SpbHRvYwa2DhNsK0YjHFQBB0FX IdhdUEzNefcNcYvqigJpdICoP2e4yJSyflHFO4dr0OrdnGLe1Zi/8Xo/2+M1dSSEt196rXaC kwu2KgIgmkRBb3cp2vIBBIIowU8W3qC1+w+RdMUrZxKGWJ3juwcgveJlzMpMZNyM1jobSXZ0 VHGMNJ3MwXlrEFPXaYJgibcg6brM6wGfX/LBvc/haWw4yO24lT5eitm4UBdIy9pKkKmHHh7s jfZJkB5fWKVdoCv/omy6UyH6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k7Rj trjv82EZtrhLuLjHRCaG50OOm0hwPSk1J64R8O3HjSLdertmw7eyAYOo4RuWJguYMg5DRnBk WkRwrSuCn7UG+qVWZeKEsFKFOkynOs3pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= Message-ID: Date: Wed, 10 Feb 2021 13:21:00 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/10/21 12:52 PM, Saravana Kannan wrote: > 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? > Correct. Guenter