Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp280934rdf; Thu, 2 Nov 2023 23:37:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHXkc4x/YiIG6q0n7wxcEFRPAOJJxStU/strXTcOs93VnLnKvdIhXo74eNuJpHMfBGUqklQ X-Received: by 2002:a05:6870:1017:b0:1ef:9f6c:3dea with SMTP id 23-20020a056870101700b001ef9f6c3deamr15312509oai.39.1698993444588; Thu, 02 Nov 2023 23:37:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698993444; cv=none; d=google.com; s=arc-20160816; b=wM/vTYDSGN2KpOxAQ42IgU0FXTfkfkXhRaGNm55zXHS/8WB/PaiT1VXCIQhA5x/VwW Yg5AWlZDWEI5+04S3c16OCR0KVCJlR/fHhponi1wqaZTG1+0l14PibRTtftVxGcgovQu PgmPVOtymCwwSP6dV78vsYw6gOMVQVkiQuj1fvQyypKiQ9qXeKMaoHJWxFq7t5ifoPWE HZ3W9MPTg4/PwtfZd4QK6UWw//MNah0HK7LIIioXYvdiUG7xAN+/HOPHDYQVq32r3MNv MiVXXOxNLsMGV6tLmNrcBRxN+S6UuSz9eamXJ5u/GwnwfuVAy1hlNVg6F6FfaVoN9kzH XX/A== 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=0nxDn9F+HkaAaO6w+tf+F5XOaFlxsQYaIjHj4Lo0UVU=; fh=wbyqTyn4GyCeTaoG6eNy0GCQLTb0Nol6UpY2jEE1O50=; b=c7QharJRNawR7MifbEI6w4nCe05oAsACFc4OAo18jOBuHr4B7BWqynHg8TZEVmdrwx UQEtksVjbG8W4oXkIgwHXDSDkbUTx9V000Yhv39TkyLL3Bexp8JV+w4GafKNxDu6WSuG HIJ8rgDvFZYBR728uKInD4CKaFtTHmnXNp9BGMUUJDj6wsI1e3mkfwEHAb5l8U76Azah E683hhvYNDMVWtdqj62O37kWBra51NG369/yJvjhoCQikD0CkpuOGwX8GhXW8M2pby5i 1bkU5Fo10nxuMWY2cMIqxuVtbltI5Oscsm8UVuN7NbOPTZtAo0hfs7GysQAQHCEL7Ea5 k73w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bVqdP7wY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id c5-20020a6566c5000000b0055b640a6b3csi959648pgw.884.2023.11.02.23.37.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 23:37:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bVqdP7wY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 0BEA18242F6B; Thu, 2 Nov 2023 23:37:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231220AbjKCGhC (ORCPT + 99 others); Fri, 3 Nov 2023 02:37:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229480AbjKCGhB (ORCPT ); Fri, 3 Nov 2023 02:37:01 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AE711B9 for ; Thu, 2 Nov 2023 23:36:55 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2F6DAC433C9 for ; Fri, 3 Nov 2023 06:36:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698993415; bh=uGFIe74ep8DudwxIo3EhJhTyvWFwIB7jua7bjSCIcVQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=bVqdP7wYxD/+mfgI8o4q2okqrApZzo/HhdONohcbEKuFqBaI2JGdFU3SsroSEZN5y 9IX3fFnZHtB1oSuFTlqyUjlxz1fszzH8IdN4HZaVpK8V01jOyJcCghR2OgAoibg+L3 opW3G36Ns30BcsFWgB97qVvacjoyivNZyAsrNhKhgFhalBWrcH00SGvDTIGWCwcqr+ 6H1YjFFvb8zS7F/7XZe2AjN+lhRR3iJ+xEgXIMvpgMuUoa71NXj3Ta40hXWbnEEP/o ut0MHCBSevuAC9NDFS7/adn6tSva6T2QwcjXnpReiEqXTy3xG2mTcjmzvb9I4TGuZv y1DSfTEq/nilQ== Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-9adca291f99so254729566b.2 for ; Thu, 02 Nov 2023 23:36:55 -0700 (PDT) X-Gm-Message-State: AOJu0Yylp56w0LRK206KAnyfSoxopVrP8jaoBFbsfyaL/OLMR0h4/3bv b8O3zK3fyl7RINZv3Nnugec2u85Kdgfg2i2MeEU= X-Received: by 2002:a17:907:a08a:b0:9c7:db3:8b36 with SMTP id hu10-20020a170907a08a00b009c70db38b36mr5915977ejc.74.1698993413600; Thu, 02 Nov 2023 23:36:53 -0700 (PDT) MIME-Version: 1.0 References: <82f1b533-3bd8-4418-843a-718d9a6b5786@leemhuis.info> <31ed0db1-9398-4c46-a391-fc644ec49268@ristioja.ee> In-Reply-To: From: Huacai Chen Date: Fri, 3 Nov 2023 14:36:42 +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: Evan Preston Cc: Jaak Ristioja , Linux regressions mailing list , Linux Kernel Mailing List , Linux DRI Development , Javier Martinez Canillas , Thorsten Leemhuis , Thomas Zimmermann , Bagas Sanjaya Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.6 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,T_PDS_OTHER_BAD_TLD,T_SCC_BODY_TEXT_LINE, WEIRD_PORT autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Thu, 02 Nov 2023 23:37:19 -0700 (PDT) Hi, Evan, On Fri, Nov 3, 2023 at 1:54=E2=80=AFPM Evan Preston w= rote: > > Hi Huacai, > > On 2023-11-02 Thu 08:38pm, Huacai Chen wrote: > > Hi, Jaak, > > > > On Wed, Nov 1, 2023 at 7:52=E2=80=AFPM Jaak Ristioja = wrote: > > > > > > On 31.10.23 14:17, Huacai Chen wrote: > > > > Hi, Jaak and Evan, > > > > > > > > On Sun, Oct 29, 2023 at 9:42=E2=80=AFAM Huacai Chen wrote: > > > >> > > > >> On Sat, Oct 28, 2023 at 7:06=E2=80=AFPM Jaak Ristioja wrote: > > > >>> > > > >>> 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 tr= acking (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 wr= ote: > > > >>>>>>>>>>>>> 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 regressi= on tracking (Thorsten > > > >>>>>>>>>>>>>> Leemhuis) wrote: > > > >>>>>>>>>>>>>>> On 13.09.23 14:02, Jaak Ristioja wrote: > > > >>>>>>>>>>>>>>>> > > > >>>>>>>>>>>>>>>> Upgrading to Linux 6.5 on a Lenovo ThinkPad L570 (In= tegrated Intel HD > > > >>>>>>>>>>>>>>>> Graphics 620 (rev 02), Intel(R) Core(TM) i7-7500U) r= esults in a blank > > > >>>>>>>>>>>>>>>> screen after boot until the display manager starts..= . if it does start > > > >>>>>>>>>>>>>>>> at all. Using the nomodeset kernel parameter seems t= o be a workaround. > > > >>>>>>>>>>>>>>>> > > > >>>>>>>>>>>>>>>> I've bisected this to commit 60aebc9559492cea6a9625f= 514a8041717e3a2e4 > > > >>>>>>>>>>>>>>>> ("drivers/firmware: Move sysfb_init() from device_in= itcall to > > > >>>>>>>>>>>>>>>> subsys_initcall_sync"). > > > >>>>>>>>>>>>>>> > > > >>>>>>>>>>>>> As confirmed by Jaak, disabling DRM_SIMPLEDRM makes thi= ngs work fine > > > >>>>>>>>>>>>> again. So I guess the reason: > > > >>>>>>>>>> > > > >>>>>>>>>> Well, this to me still looks a lot (please correct me if I= 'm wrong) like > > > >>>>>>>>>> regression that should be fixed, as DRM_SIMPLEDRM was enab= led beforehand > > > >>>>>>>>>> if I understood things correctly. Or is there a proper fix= for this > > > >>>>>>>>>> already in the works and I just missed this? Or is there s= ome good > > > >>>>>>>>>> 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 b= ut it has a > > > >>>>>>>>> blank screen. Of course it is valuable to investigate furth= er about > > > >>>>>>>>> DRM_SIMPLEDRM on Jaak's machine, but that needs Jaak's effo= rt because > > > >>>>>>>>> I don't have a same machine. > > > >>>>>>> > > > >>>>>>> Side note: Huacai, have you tried working with Jaak to get do= wn to the > > > >>>>>>> real problem? Evan, might you be able to help out here? > > > >>>>>> No, Jaak has no response after he 'fixed' his problem by disab= ling SIMPLEDRM. > > > >>>>>> > > > >>>>> > > > >>>>> I'm sorry, what was it exactly you want me to do? Please be min= dful that > > > >>>>> I'm not familiar with the internals of the Linux kernel and DRI= , and it > > > >>>>> might sometimes take weeks before I have time to work and respo= nd on this. > > > >>>> It doesn't matter. I hope you can do some experiments to investi= gate > > > >>>> 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_SIMP= LEDRM unset. > > > >> CONFIG_FB_SIMPLE and CONFIG_DRM_SIMPLEDRM use the same device cre= ated > > > >> by sysfb_init(). Since FB_SIMPLE works fine, I think the real prob= lem > > > >> is that DRM_SIMPLEDRM has a bug. The next step is to enable > > > >> CONFIG_DRM_SIMPLEDRM and trace its initialization. In detail, addi= ng > > > >> some printk() in simpledrm_probe() and its sub-routines to see whe= re > > > >> the driver fails. The output of these printk() can be seen by the > > > >> 'dmesg' command after boot. > > > > I need your help. I tried with my laptop (ThinkPad E490, Intel Core > > > > i3-8145U, UHD Graphics 620) but I can't reproduce your problem. So > > > > please patch your 6.5.x kernel with this temporary patch [1], then > > > > build a "bad kernel" with SIMPLEDRM enabled. And after booting your > > > > machine with this "bad kernel", please give me the dmesg output. Th= ank > > > > you very much. > > > > > > > > [1] http://ddns.miaomiaomiao.top:9000/download/kernel/patch-6.5.9 > > > > > > I'm unable to download it. Can you please send it by e-mail? > > I'm sorry, please download from attachment. > > When applying this patch the first hunk (drivers/firmware/sysfb.c) fails = for > me with 6.5.9. Attempting to load the 6.5.9 kernel without this patch > produces no dmesg output on my machine. You copy-paste the patch? If you download it directly it can be applied successfully, I think. Huacai > > Evan > > > > > Huacai > > > > > > > > Jaak > > > > > > > > > > > > > > > Huacai > > > > > > > >> > > > >> 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-6= 700HQ). > > > >>>>>>>> Upgrading from Linux 6.4.12 to 6.5 and later results in only= a blank > > > >>>>>>>> screen after boot and a rapidly flashing device-access-statu= s > > > >>>>>>>> indicator. > > > >>>>>>> > > > >>>>>>> This additional report makes me wonder if we should revert th= e culprit > > > >>>>>>> (60aebc9559492c ("drivers/firmware: Move sysfb_init() from > > > >>>>>>> device_initcall to subsys_initcall_sync") [v6.5-rc1]). But I = guess that > > > >>>>>>> might lead to regressions for some users? But the patch descr= iption says > > > >>>>>>> that this is not a common configuration, so can we maybe get = away with that? > > > >>>>>> From my point of view, this is not a regression, 60aebc9559= 492c > > > >>>>>> 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 tr= acker' hat) > > > >>>>>>> -- > > > >>>>>>> Everything you wanna know about Linux kernel regression track= ing: > > > >>>>>>> https://linux-regtracking.leemhuis.info/about/#tldr > > > >>>>>>> If I did something stupid, please tell me, as explained on th= at page. > > > >>>>>>> > > > >>>>>>>>>>>>> When SIMPLEDRM takes over the framebuffer, the screen i= s blank (don't > > > >>>>>>>>>>>>> know why). And before 60aebc9559492cea6a9625f ("drivers= /firmware: Move > > > >>>>>>>>>>>>> sysfb_init() from device_initcall to subsys_initcall_sy= nc") there 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 commi= t the platform > > > >>>>>>>>>>>> device is also none, right? > > > >>>>>>>>>>> No. The SIMPLEDRM driver needs a platform device to work,= and that > > > >>>>>>>>>>> commit makes the platform device created earlier. So, bef= ore that > > > >>>>>>>>>>> commit, SIMPLEDRM doesn't work, but the screen isn't blan= k; after that > > > >>>>>>>>>>> commit, SIMPLEDRM works, but the screen is blank. > > > >>>>>>>>>>> > > > >>>>>>>>>>> Huacai > > > >>>>>>>>>>>> > > > >>>>>>>>>>>> Confused... > > > >>>>>>>>>>>> > > > >>>>>>>>>>>> -- > > > >>>>>>>>>>>> An old man doll... just what I always wanted! - Clara > > > >>>>>>>>>>> > > > >>>>>>>>>>> > > > >>>>>>>> > > > >>>>>>>> > > > >>>>> > > > >>> > > > > >