From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E779BC433F5 for ; Wed, 2 Feb 2022 07:46:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240544AbiBBHqU (ORCPT ); Wed, 2 Feb 2022 02:46:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234558AbiBBHqT (ORCPT ); Wed, 2 Feb 2022 02:46:19 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CA2FC061714 for ; Tue, 1 Feb 2022 23:46:18 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0A4ED61791 for ; Wed, 2 Feb 2022 07:46:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 70FDFC340F0 for ; Wed, 2 Feb 2022 07:46:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643787977; bh=EU8FY4hoqMKIUTQTA8fc+OQEccHtNTc7RoeXbnU6SfU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=BuItHP8NJ3VXtkbWynb6fL58D8vI14aAtJOQqeabKt7MMEAa72AK+CFGNnQpytpqo zFiUgmkWRZwrf+q28zKBsQLk7jmQrzQM181d1WJP8fgVRSKWoI6WrXEWZWglrKZWOV RAMx+H0Gk2GcXw+CM1rNZ3vaWETts5L1TloD9L9nLWC78H2yPxqw+SNhznVBi4WqWd R+pDLwhuRMSKW4SIG4WerhpMJaNTxq3V2dTOdfavMqJr3SmPknXwzrTMeme+5L4Ubv d8oy6KhT/l9Usz/yfFoH4HdrAlEewUPvRtOpZ//S3/h2Lx5rp3Ti0GS5RfOEV494yi C4WY1WoRqkgwQ== Received: by mail-oi1-f170.google.com with SMTP id q186so38213710oih.8 for ; Tue, 01 Feb 2022 23:46:17 -0800 (PST) X-Gm-Message-State: AOAM531doDIRJSB7C+pML4T+65i1aUpG/2DP2YRv0L1zBYxwrIC3LUwK qXYSZOkisirwznbaVkiaYuNEdEG+pIRh+61p4sk= X-Google-Smtp-Source: ABdhPJzP2OU6GD384wgiKPZ/tJqOrgrct7yj4Y0w9RqPGWR+zWghE43jcZK7xTpWygr/3VJ2kMrKTBbSZAzGiVkKOW8= X-Received: by 2002:aca:f03:: with SMTP id 3mr3702970oip.102.1643787976652; Tue, 01 Feb 2022 23:46:16 -0800 (PST) MIME-Version: 1.0 References: <6fc4a81f-1a13-bff9-7b2e-d5bec382cb42@synopsys.com> <9bab4777-3034-b789-fdf6-ca8d7e6a8c35@infradead.org> In-Reply-To: From: Arnd Bergmann Date: Wed, 2 Feb 2022 08:46:00 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Kconfig CONFIG_FB dependency regression To: Thinh Nguyen Cc: Fabio Estevam , Randy Dunlap , Kees Cook , Daniel Vetter , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , John Youn , Bing Yuan , "linux-mediatek@lists.infradead.org" , "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 2, 2022 at 1:14 AM Thinh Nguyen wrote: > Fabio Estevam wrote: > > On Tue, Feb 1, 2022 at 8:06 PM Randy Dunlap wrote: > >> > >> On 2/1/22 15:01, Thinh Nguyen wrote: > >>> Hi, > >>> > >>> One of our test setups is unable to boot (stuck at initramfs). Git > >>> bisection points to the commit below: > >>> > >>> f611b1e7624c ("drm: Avoid circular dependencies for CONFIG_FB") > >>> > >>> Reverting this patch resolves the issue. This issue persists in mainline > >>> also. Unfortunately there isn't any meaningful log. Hopefully someone > >>> can give some insight as to what could be the issue and revert/fix this > >>> issue. > >> > >> Hi, > >> Did you enable DRM_FBDEV_EMULATION? > > I did not enable it. > > >> Please provide the failing .config file. > > > > Does selecting CONFIG_FB=y help? > > > > On the config that has the issue, this isn't set. After reverting the > commit above, this was set. Maybe this is what's needed? I need to test it. CONFIG_FB should not normally be needed for booting, so unless you have a graphical application in your initramfs that requires the /dev/fb0 device to work, it is not supposed to make a difference. Are there any other differences in your .config before and after the patch? It's possible that you use some other driver that in turn depends on CONFIG_FB. Does your machine have any graphical output device? If yes, which driver do you use? You may also want to make sure that you have 9d6366e743f3 ("drm: fb_helper: improve CONFIG_FB dependency") in your kernel, which fixes a minor problem with my original patch. Arnd From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8723AC433EF for ; Wed, 2 Feb 2022 07:46:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=gnueRvi6GcjMuz06r2d8dkzVOy+yrWT+LwnDM5BR2ek=; b=wtW2GO47ubEQtX 5o5T4YHkvVcBCUW8qoxJuReu1va+Wr3t5p1cizTTCsWnqpu/67s+XduQCCcTZaX3Ca2P93bN0EJHz eINEQPStRAC7eACsArczKa4RZ4RRjtvG1Z8ULLVHmK9X4Lg4z9bvv7DSRiLDok2MbAQNl/HDOwbEo VE96Scwmkq3vJe1nHPRkBNqVn4Jqu1scUEbq8h42O/PILMY4GVaqcq0IatnXeH3L0aT6DBr89GJZW ZOZnG7UIAgLJuhDc12sABG1nTJU6UnT4omG4vE19KfOmOUk0DrA7TeGusKs9g1mlSN+ep5KWcR1WB WjGwFKdY++y7eshFcMcw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFALg-00ESBf-2x; Wed, 02 Feb 2022 07:46:40 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFALK-00ES76-IF; Wed, 02 Feb 2022 07:46:20 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0672F61731; Wed, 2 Feb 2022 07:46:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 72BF2C340EF; Wed, 2 Feb 2022 07:46:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643787977; bh=EU8FY4hoqMKIUTQTA8fc+OQEccHtNTc7RoeXbnU6SfU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=BuItHP8NJ3VXtkbWynb6fL58D8vI14aAtJOQqeabKt7MMEAa72AK+CFGNnQpytpqo zFiUgmkWRZwrf+q28zKBsQLk7jmQrzQM181d1WJP8fgVRSKWoI6WrXEWZWglrKZWOV RAMx+H0Gk2GcXw+CM1rNZ3vaWETts5L1TloD9L9nLWC78H2yPxqw+SNhznVBi4WqWd R+pDLwhuRMSKW4SIG4WerhpMJaNTxq3V2dTOdfavMqJr3SmPknXwzrTMeme+5L4Ubv d8oy6KhT/l9Usz/yfFoH4HdrAlEewUPvRtOpZ//S3/h2Lx5rp3Ti0GS5RfOEV494yi C4WY1WoRqkgwQ== Received: by mail-oi1-f180.google.com with SMTP id e81so38222112oia.6; Tue, 01 Feb 2022 23:46:17 -0800 (PST) X-Gm-Message-State: AOAM532yqOMPiGuhCEIF3ifyr2L2X/omTwp/Zwa8uLkAIyworjM6cPki hQOywDKMKRYnUpGXbiifIHGfgUz1sxU7MQ+x1Kg= X-Google-Smtp-Source: ABdhPJzP2OU6GD384wgiKPZ/tJqOrgrct7yj4Y0w9RqPGWR+zWghE43jcZK7xTpWygr/3VJ2kMrKTBbSZAzGiVkKOW8= X-Received: by 2002:aca:f03:: with SMTP id 3mr3702970oip.102.1643787976652; Tue, 01 Feb 2022 23:46:16 -0800 (PST) MIME-Version: 1.0 References: <6fc4a81f-1a13-bff9-7b2e-d5bec382cb42@synopsys.com> <9bab4777-3034-b789-fdf6-ca8d7e6a8c35@infradead.org> In-Reply-To: From: Arnd Bergmann Date: Wed, 2 Feb 2022 08:46:00 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Kconfig CONFIG_FB dependency regression To: Thinh Nguyen Cc: Fabio Estevam , Randy Dunlap , Kees Cook , Daniel Vetter , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , John Youn , Bing Yuan , "linux-mediatek@lists.infradead.org" , "linux-arm-kernel@lists.infradead.org" X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220201_234618_699954_87EF7BD9 X-CRM114-Status: GOOD ( 24.55 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org On Wed, Feb 2, 2022 at 1:14 AM Thinh Nguyen wrote: > Fabio Estevam wrote: > > On Tue, Feb 1, 2022 at 8:06 PM Randy Dunlap wrote: > >> > >> On 2/1/22 15:01, Thinh Nguyen wrote: > >>> Hi, > >>> > >>> One of our test setups is unable to boot (stuck at initramfs). Git > >>> bisection points to the commit below: > >>> > >>> f611b1e7624c ("drm: Avoid circular dependencies for CONFIG_FB") > >>> > >>> Reverting this patch resolves the issue. This issue persists in mainline > >>> also. Unfortunately there isn't any meaningful log. Hopefully someone > >>> can give some insight as to what could be the issue and revert/fix this > >>> issue. > >> > >> Hi, > >> Did you enable DRM_FBDEV_EMULATION? > > I did not enable it. > > >> Please provide the failing .config file. > > > > Does selecting CONFIG_FB=y help? > > > > On the config that has the issue, this isn't set. After reverting the > commit above, this was set. Maybe this is what's needed? I need to test it. CONFIG_FB should not normally be needed for booting, so unless you have a graphical application in your initramfs that requires the /dev/fb0 device to work, it is not supposed to make a difference. Are there any other differences in your .config before and after the patch? It's possible that you use some other driver that in turn depends on CONFIG_FB. Does your machine have any graphical output device? If yes, which driver do you use? You may also want to make sure that you have 9d6366e743f3 ("drm: fb_helper: improve CONFIG_FB dependency") in your kernel, which fixes a minor problem with my original patch. Arnd _______________________________________________ Linux-mediatek mailing list Linux-mediatek@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-mediatek From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1F933C433EF for ; Wed, 2 Feb 2022 07:47:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=307EJNe3rIam1dOqmuUmF4aAEAjqQoDYYAuQVu996Qg=; b=4y6oZ9ig1VMKfU RX9CYPTcgdHz1j3lwuXbdS6NzrTFagxyeKHt9CdOw4deo/Wwe300+tk8acSwPNdlGO3nvyVkuPJgA rpGD48MyRtVeeH1UVLxmaBYRRYtbBW0J4GS0pn0kdtK0SZJsP6QZgqtr9XowdYPXd8ol6j2+73UDV XqRRSxuoVKBf/yWf8HiFMxGlzX4A6DsjC+6x/lSDxL82XhSSKouQOXBlChYNdKc584jkF3qwrALrA K0D1NyZOLLZCyQqA7UBPzUgWIcQD1tk/zbDHr7G447XeSAGKPrQu7FCVPhoaZP7Cl43gSDQS9AuQi zPrwMbCO9s3AYbNDA9wg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFALW-00ES9p-RP; Wed, 02 Feb 2022 07:46:31 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFALK-00ES76-IF; Wed, 02 Feb 2022 07:46:20 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0672F61731; Wed, 2 Feb 2022 07:46:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 72BF2C340EF; Wed, 2 Feb 2022 07:46:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643787977; bh=EU8FY4hoqMKIUTQTA8fc+OQEccHtNTc7RoeXbnU6SfU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=BuItHP8NJ3VXtkbWynb6fL58D8vI14aAtJOQqeabKt7MMEAa72AK+CFGNnQpytpqo zFiUgmkWRZwrf+q28zKBsQLk7jmQrzQM181d1WJP8fgVRSKWoI6WrXEWZWglrKZWOV RAMx+H0Gk2GcXw+CM1rNZ3vaWETts5L1TloD9L9nLWC78H2yPxqw+SNhznVBi4WqWd R+pDLwhuRMSKW4SIG4WerhpMJaNTxq3V2dTOdfavMqJr3SmPknXwzrTMeme+5L4Ubv d8oy6KhT/l9Usz/yfFoH4HdrAlEewUPvRtOpZ//S3/h2Lx5rp3Ti0GS5RfOEV494yi C4WY1WoRqkgwQ== Received: by mail-oi1-f180.google.com with SMTP id e81so38222112oia.6; Tue, 01 Feb 2022 23:46:17 -0800 (PST) X-Gm-Message-State: AOAM532yqOMPiGuhCEIF3ifyr2L2X/omTwp/Zwa8uLkAIyworjM6cPki hQOywDKMKRYnUpGXbiifIHGfgUz1sxU7MQ+x1Kg= X-Google-Smtp-Source: ABdhPJzP2OU6GD384wgiKPZ/tJqOrgrct7yj4Y0w9RqPGWR+zWghE43jcZK7xTpWygr/3VJ2kMrKTBbSZAzGiVkKOW8= X-Received: by 2002:aca:f03:: with SMTP id 3mr3702970oip.102.1643787976652; Tue, 01 Feb 2022 23:46:16 -0800 (PST) MIME-Version: 1.0 References: <6fc4a81f-1a13-bff9-7b2e-d5bec382cb42@synopsys.com> <9bab4777-3034-b789-fdf6-ca8d7e6a8c35@infradead.org> In-Reply-To: From: Arnd Bergmann Date: Wed, 2 Feb 2022 08:46:00 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Kconfig CONFIG_FB dependency regression To: Thinh Nguyen Cc: Fabio Estevam , Randy Dunlap , Kees Cook , Daniel Vetter , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , John Youn , Bing Yuan , "linux-mediatek@lists.infradead.org" , "linux-arm-kernel@lists.infradead.org" X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220201_234618_699954_87EF7BD9 X-CRM114-Status: GOOD ( 24.55 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Feb 2, 2022 at 1:14 AM Thinh Nguyen wrote: > Fabio Estevam wrote: > > On Tue, Feb 1, 2022 at 8:06 PM Randy Dunlap wrote: > >> > >> On 2/1/22 15:01, Thinh Nguyen wrote: > >>> Hi, > >>> > >>> One of our test setups is unable to boot (stuck at initramfs). Git > >>> bisection points to the commit below: > >>> > >>> f611b1e7624c ("drm: Avoid circular dependencies for CONFIG_FB") > >>> > >>> Reverting this patch resolves the issue. This issue persists in mainline > >>> also. Unfortunately there isn't any meaningful log. Hopefully someone > >>> can give some insight as to what could be the issue and revert/fix this > >>> issue. > >> > >> Hi, > >> Did you enable DRM_FBDEV_EMULATION? > > I did not enable it. > > >> Please provide the failing .config file. > > > > Does selecting CONFIG_FB=y help? > > > > On the config that has the issue, this isn't set. After reverting the > commit above, this was set. Maybe this is what's needed? I need to test it. CONFIG_FB should not normally be needed for booting, so unless you have a graphical application in your initramfs that requires the /dev/fb0 device to work, it is not supposed to make a difference. Are there any other differences in your .config before and after the patch? It's possible that you use some other driver that in turn depends on CONFIG_FB. Does your machine have any graphical output device? If yes, which driver do you use? You may also want to make sure that you have 9d6366e743f3 ("drm: fb_helper: improve CONFIG_FB dependency") in your kernel, which fixes a minor problem with my original patch. Arnd _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 721D8C433EF for ; Wed, 2 Feb 2022 07:53:00 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7015710F8D8; Wed, 2 Feb 2022 07:52:59 +0000 (UTC) X-Greylist: delayed 394 seconds by postgrey-1.36 at gabe; Wed, 02 Feb 2022 07:52:58 UTC Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by gabe.freedesktop.org (Postfix) with ESMTPS id 420C410F8D8 for ; Wed, 2 Feb 2022 07:52:58 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id ED07FCE1B3D for ; Wed, 2 Feb 2022 07:46:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6CF56C340EC for ; Wed, 2 Feb 2022 07:46:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643787977; bh=EU8FY4hoqMKIUTQTA8fc+OQEccHtNTc7RoeXbnU6SfU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=BuItHP8NJ3VXtkbWynb6fL58D8vI14aAtJOQqeabKt7MMEAa72AK+CFGNnQpytpqo zFiUgmkWRZwrf+q28zKBsQLk7jmQrzQM181d1WJP8fgVRSKWoI6WrXEWZWglrKZWOV RAMx+H0Gk2GcXw+CM1rNZ3vaWETts5L1TloD9L9nLWC78H2yPxqw+SNhznVBi4WqWd R+pDLwhuRMSKW4SIG4WerhpMJaNTxq3V2dTOdfavMqJr3SmPknXwzrTMeme+5L4Ubv d8oy6KhT/l9Usz/yfFoH4HdrAlEewUPvRtOpZ//S3/h2Lx5rp3Ti0GS5RfOEV494yi C4WY1WoRqkgwQ== Received: by mail-oi1-f175.google.com with SMTP id m10so13205851oie.2 for ; Tue, 01 Feb 2022 23:46:17 -0800 (PST) X-Gm-Message-State: AOAM532atEkLzuhD67gSL4xQD7I0UytA6gysb+rm+sMHDY0G/1tBC/JQ ngDFxgJmO4G69cR5Pfc0t4upnoUh5WhdApor4AE= X-Google-Smtp-Source: ABdhPJzP2OU6GD384wgiKPZ/tJqOrgrct7yj4Y0w9RqPGWR+zWghE43jcZK7xTpWygr/3VJ2kMrKTBbSZAzGiVkKOW8= X-Received: by 2002:aca:f03:: with SMTP id 3mr3702970oip.102.1643787976652; Tue, 01 Feb 2022 23:46:16 -0800 (PST) MIME-Version: 1.0 References: <6fc4a81f-1a13-bff9-7b2e-d5bec382cb42@synopsys.com> <9bab4777-3034-b789-fdf6-ca8d7e6a8c35@infradead.org> In-Reply-To: From: Arnd Bergmann Date: Wed, 2 Feb 2022 08:46:00 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Kconfig CONFIG_FB dependency regression To: Thinh Nguyen Content-Type: text/plain; charset="UTF-8" X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kees Cook , Daniel Vetter , Randy Dunlap , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , John Youn , Bing Yuan , "linux-mediatek@lists.infradead.org" , "linux-arm-kernel@lists.infradead.org" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Wed, Feb 2, 2022 at 1:14 AM Thinh Nguyen wrote: > Fabio Estevam wrote: > > On Tue, Feb 1, 2022 at 8:06 PM Randy Dunlap wrote: > >> > >> On 2/1/22 15:01, Thinh Nguyen wrote: > >>> Hi, > >>> > >>> One of our test setups is unable to boot (stuck at initramfs). Git > >>> bisection points to the commit below: > >>> > >>> f611b1e7624c ("drm: Avoid circular dependencies for CONFIG_FB") > >>> > >>> Reverting this patch resolves the issue. This issue persists in mainline > >>> also. Unfortunately there isn't any meaningful log. Hopefully someone > >>> can give some insight as to what could be the issue and revert/fix this > >>> issue. > >> > >> Hi, > >> Did you enable DRM_FBDEV_EMULATION? > > I did not enable it. > > >> Please provide the failing .config file. > > > > Does selecting CONFIG_FB=y help? > > > > On the config that has the issue, this isn't set. After reverting the > commit above, this was set. Maybe this is what's needed? I need to test it. CONFIG_FB should not normally be needed for booting, so unless you have a graphical application in your initramfs that requires the /dev/fb0 device to work, it is not supposed to make a difference. Are there any other differences in your .config before and after the patch? It's possible that you use some other driver that in turn depends on CONFIG_FB. Does your machine have any graphical output device? If yes, which driver do you use? You may also want to make sure that you have 9d6366e743f3 ("drm: fb_helper: improve CONFIG_FB dependency") in your kernel, which fixes a minor problem with my original patch. Arnd