Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2020606rdh; Sat, 28 Oct 2023 18:43:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHxFLI9lJVwAHUtYFIim1A4pbzG41Un2Tq5zP55nkBhyenDaMQAwmRj/s2WaH1rk98aq3iw X-Received: by 2002:a05:6e02:17cc:b0:357:4c17:e697 with SMTP id z12-20020a056e0217cc00b003574c17e697mr10416959ilu.10.1698543822582; Sat, 28 Oct 2023 18:43:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698543822; cv=none; d=google.com; s=arc-20160816; b=lryTfIUZyk64bk3ktIpePKCTp+XsEk1hU0iAIrpNqWPLhwygG/9WpqbwkOOZAP+FZy dQz9y1c/EC4WvLsDtakJBhVrCbZWyFyXcRDu/KXlhIQathb84LRfAFDGVvUQYrGnL2Dw DUtCxY7KVsDreJNhGnD1I+mtqVJbZE5eHSb855Q4C9qMnRl5S6xkafzsY0gOx5uICksX K3fEpujdnhXBTT5pCSkYQympnJkXz1SzPjgsyXXHHOBE7bfg4kW5KO6KC3W72JNSOidp v+XgioNz/oWvCnHGkDr5FQ1MBHqPprjiyfZSahtIS2rLQ8FB0Tjw01hmPqFjKnmDw9uP hxyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=eVxlaUWp6CZmZVa4ZkY6YSeWI3lvm5etsQ8FswynDpA=; fh=lNw5IKYyXePkozQHkxUM3g5ANBgUtMvlsaK0+hODftg=; b=vEgiht/W+M+Q9eTAg1gUq41+bu/lWkbs5W7nZBVwrkiH932kMPTPT8F7gPn4ds3Sp9 bj+Nx4Stus/yPQ5KC9Q4U8+0QJ/r0XyWggd06ih+zgcsr/UACCjYQGFjGBi0VBsMs20Y bQYjBBpFP/tnbv7JXcUDUVT/yL0SSMevfmZuwVXFWYivWZ/2fY6RJgMb7sn+aVpX/wYj oDPkiVBvpe/wG0XixB4AWSbubpKexIyym0EPCUhlg2+cjTfiMShXJ4sqa243mLnn2AO8 1h66aGQjgJvuqAm57xj1Kh5NdP5UlvUF3MBoe85Wy363er7fTS8lTDDdnpgGtCVpGwp9 eTfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eXRVa3GW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id b4-20020a170902d50400b001cc44f183d0si153479plg.365.2023.10.28.18.43.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Oct 2023 18:43:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eXRVa3GW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 4D32F805978E; Sat, 28 Oct 2023 18:43:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229529AbjJ2BnK (ORCPT + 99 others); Sat, 28 Oct 2023 21:43:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjJ2BnK (ORCPT ); Sat, 28 Oct 2023 21:43:10 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D24191 for ; Sat, 28 Oct 2023 18:43:07 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B11DDC433CA for ; Sun, 29 Oct 2023 01:43:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698543786; bh=RV0zb3lhegMvwu6SBENrY53pytOM0ZbrC0mX4veCDBU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=eXRVa3GWQFODDE2mzHNFeEErsTmqwR1J6bHjfw9N18KPPAqn1vFFQZc5WuhNJymrS QAbpYVRq1WvH2namEQ+JNx8fUlSAetTZKcB1EeCV4lKAaIRY7PLDFVuNXKN/Z8hBIF w2M0aDlRB/SO4TaCKho0beIApwKFR4Joc0GKb80l9r4XB/aIhsKpf7PnR/2gT++wwM q8WvaOf/ZZ1ZCBPHzlBn772x0lTDK32D/h5Rsbr8IzJUw3JnVYaWr9eT1dtmPy+7Ao vSZ3gwkfli/7diP69l8yL1MoffGxHR6T8BsVHo26tUQIRXL2LB2xhotV3Aqfdes/6D ytDZC09lzUluw== Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-9a58dbd5daeso506374666b.2 for ; Sat, 28 Oct 2023 18:43:06 -0700 (PDT) X-Gm-Message-State: AOJu0Yz6FnjIX2q82yrLjZkXpxBDgFUGoFftRxO1Tfs7SIekCDI7fcuA 3ki7VzMggOo2iXppIoisM4kC5J05peOC1DpH4v0= X-Received: by 2002:a17:907:608c:b0:9c5:6cf5:448a with SMTP id ht12-20020a170907608c00b009c56cf5448amr4880619ejc.44.1698543785110; Sat, 28 Oct 2023 18:43:05 -0700 (PDT) MIME-Version: 1.0 References: <7c50e051-eba2-09fc-da9f-023d592de457@ristioja.ee> <31bdf7b1-0ed9-4217-b459-1d857e53120b@leemhuis.info> <82f1b533-3bd8-4418-843a-718d9a6b5786@leemhuis.info> In-Reply-To: From: Huacai Chen Date: Sun, 29 Oct 2023 09:42:52 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Blank screen on boot of Linux 6.5 and later on Lenovo ThinkPad L570 To: Jaak Ristioja Cc: Linux regressions mailing list , Thomas Zimmermann , Javier Martinez Canillas , Linux DRI Development , Linux Kernel Mailing List , Thorsten Leemhuis , Bagas Sanjaya , Evan Preston Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sat, 28 Oct 2023 18:43:39 -0700 (PDT) On Sat, Oct 28, 2023 at 7:06=E2=80=AFPM Jaak Ristioja wr= ote: > > On 26.10.23 03:58, Huacai Chen wrote: > > Hi, Jaak, > > > > On Thu, Oct 26, 2023 at 2:49=E2=80=AFAM Jaak Ristioja wrote: > >> > >> On 25.10.23 16:23, Huacai Chen wrote: > >>> On Wed, Oct 25, 2023 at 6:08=E2=80=AFPM Thorsten Leemhuis > >>> wrote: > >>>> > >>>> Javier, Dave, Sima, > >>>> > >>>> On 23.10.23 00:54, Evan Preston wrote: > >>>>> On 2023-10-20 Fri 05:48pm, Huacai Chen wrote: > >>>>>> On Fri, Oct 20, 2023 at 5:35=E2=80=AFPM Linux regression tracking = (Thorsten > >>>>>> Leemhuis) wrote: > >>>>>>> On 09.10.23 10:54, Huacai Chen wrote: > >>>>>>>> On Mon, Oct 9, 2023 at 4:45=E2=80=AFPM Bagas Sanjaya wrote: > >>>>>>>>> On Mon, Oct 09, 2023 at 09:27:02AM +0800, Huacai Chen wrote: > >>>>>>>>>> On Tue, Sep 26, 2023 at 10:31=E2=80=AFPM Huacai Chen wrote: > >>>>>>>>>>> On Tue, Sep 26, 2023 at 7:15=E2=80=AFPM Linux regression trac= king (Thorsten > >>>>>>>>>>> Leemhuis) wrote: > >>>>>>>>>>>> On 13.09.23 14:02, Jaak Ristioja wrote: > >>>>>>>>>>>>> > >>>>>>>>>>>>> Upgrading to Linux 6.5 on a Lenovo ThinkPad L570 (Integrate= d Intel HD > >>>>>>>>>>>>> Graphics 620 (rev 02), Intel(R) Core(TM) i7-7500U) results = in a blank > >>>>>>>>>>>>> screen after boot until the display manager starts... if it= does start > >>>>>>>>>>>>> at all. Using the nomodeset kernel parameter seems to be a = workaround. > >>>>>>>>>>>>> > >>>>>>>>>>>>> I've bisected this to commit 60aebc9559492cea6a9625f514a804= 1717e3a2e4 > >>>>>>>>>>>>> ("drivers/firmware: Move sysfb_init() from device_initcall = to > >>>>>>>>>>>>> subsys_initcall_sync"). > >>>>>>>>>>>> > >>>>>>>>>> As confirmed by Jaak, disabling DRM_SIMPLEDRM makes things wor= k fine > >>>>>>>>>> again. So I guess the reason: > >>>>>>> > >>>>>>> Well, this to me still looks a lot (please correct me if I'm wron= g) like > >>>>>>> regression that should be fixed, as DRM_SIMPLEDRM was enabled bef= orehand > >>>>>>> if I understood things correctly. Or is there a proper fix for th= is > >>>>>>> already in the works and I just missed this? Or is there some goo= d > >>>>>>> reason why this won't/can't be fixed? > >>>>>> > >>>>>> DRM_SIMPLEDRM was enabled but it didn't work at all because there = was > >>>>>> no corresponding platform device. Now DRM_SIMPLEDRM works but it h= as a > >>>>>> blank screen. Of course it is valuable to investigate further abou= t > >>>>>> DRM_SIMPLEDRM on Jaak's machine, but that needs Jaak's effort beca= use > >>>>>> I don't have a same machine. > >>>> > >>>> Side note: Huacai, have you tried working with Jaak to get down to t= he > >>>> real problem? Evan, might you be able to help out here? > >>> No, Jaak has no response after he 'fixed' his problem by disabling SI= MPLEDRM. > >>> > >> > >> I'm sorry, what was it exactly you want me to do? Please be mindful th= at > >> I'm not familiar with the internals of the Linux kernel and DRI, and i= t > >> might sometimes take weeks before I have time to work and respond on t= his. > > It doesn't matter. I hope you can do some experiments to investigate > > deeper. The first experiment you can do is enabling SIMPLEFB (i.e. > > CONFIG_FB_SIMPLE) instead of SIMPLEDRM (CONFIG_DRM_SIMPLEDRM) to see > > whether there is also a blank screen. If no blank screen, that > > probably means SIMPLEDRM has a bug, if still blank screen, that means > > the firmware may pass wrong screen information. > > Testing with 6.5.9 I get a blank screen with CONFIG_DRM_SIMPLEDRM=3Dy and > get no blank screen with CONFIG_FB_SIMPLE=3Dy and CONFIG_DRM_SIMPLEDRM un= set. CONFIG_FB_SIMPLE and CONFIG_DRM_SIMPLEDRM use the same device created by sysfb_init(). Since FB_SIMPLE works fine, I think the real problem is that DRM_SIMPLEDRM has a bug. The next step is to enable CONFIG_DRM_SIMPLEDRM and trace its initialization. In detail, adding some printk() in simpledrm_probe() and its sub-routines to see where the driver fails. The output of these printk() can be seen by the 'dmesg' command after boot. Huacai > > Jaak > > > > > Huacai > > > >> > >> Jaak > >> > >>>> > >>>> But I write this mail for a different reason: > >>>> > >>>>> I am having the same issue on a Lenovo Thinkpad P70 (Intel > >>>>> Corporation HD Graphics 530 (rev 06), Intel(R) Core(TM) i7-6700HQ). > >>>>> Upgrading from Linux 6.4.12 to 6.5 and later results in only a blan= k > >>>>> screen after boot and a rapidly flashing device-access-status > >>>>> indicator. > >>>> > >>>> This additional report makes me wonder if we should revert the culpr= it > >>>> (60aebc9559492c ("drivers/firmware: Move sysfb_init() from > >>>> device_initcall to subsys_initcall_sync") [v6.5-rc1]). But I guess t= hat > >>>> might lead to regressions for some users? But the patch description = says > >>>> that this is not a common configuration, so can we maybe get away wi= th that? > >>> From my point of view, this is not a regression, 60aebc9559492c > >>> doesn't cause a problem, but exposes a problem. So we need to fix the > >>> real problem (SIMPLEDRM has a blank screen on some conditions). This > >>> needs Jaak or Evan's help. > >>> > >>> Huacai > >>>> > >>>> Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' = hat) > >>>> -- > >>>> Everything you wanna know about Linux kernel regression tracking: > >>>> https://linux-regtracking.leemhuis.info/about/#tldr > >>>> If I did something stupid, please tell me, as explained on that page= . > >>>> > >>>>>>>>>> When SIMPLEDRM takes over the framebuffer, the screen is blank= (don't > >>>>>>>>>> know why). And before 60aebc9559492cea6a9625f ("drivers/firmwa= re: Move > >>>>>>>>>> sysfb_init() from device_initcall to subsys_initcall_sync") th= ere is > >>>>>>>>>> no platform device created for SIMPLEDRM at early stage, so it= seems > >>>>>>>>>> also "no problem". > >>>>>>>>> I don't understand above. You mean that after that commit the p= latform > >>>>>>>>> device is also none, right? > >>>>>>>> No. The SIMPLEDRM driver needs a platform device to work, and th= at > >>>>>>>> commit makes the platform device created earlier. So, before tha= t > >>>>>>>> commit, SIMPLEDRM doesn't work, but the screen isn't blank; afte= r that > >>>>>>>> commit, SIMPLEDRM works, but the screen is blank. > >>>>>>>> > >>>>>>>> Huacai > >>>>>>>>> > >>>>>>>>> Confused... > >>>>>>>>> > >>>>>>>>> -- > >>>>>>>>> An old man doll... just what I always wanted! - Clara > >>>>>>>> > >>>>>>>> > >>>>> > >>>>> > >> >