Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp262549rdf; Thu, 2 Nov 2023 22:46:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEr5dxb+iECJ7ECopQQpf5Q2lSVR7GZsF+a1pNTJEyweaHm9RIRB9oEIj3jnuM8fNI6lGGe X-Received: by 2002:a05:6e02:151:b0:359:4048:38d3 with SMTP id j17-20020a056e02015100b00359404838d3mr7860929ilr.9.1698990398914; Thu, 02 Nov 2023 22:46:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698990398; cv=pass; d=google.com; s=arc-20160816; b=Eyj1d6zqT9/5aazltJ+wyppcZ9CyYsT6Ps3JIMtU7zleH7MqNnq2db7wsFg8d9NJ9k u5Em6Gleni5ubVZdq9mVXBkFzzcyq5IvproslvzCM15eh0Wn5c0nKbe2RvN9p+ETBlVS sysFV45BF0n1ZtEcFOHAnM6JRgVwywlY2fWMAmfQ+Jj3/hA/Ey0zb2SD8g1RBxHjBz1t nop44wKhgfGTfwHQgmZwdxMLcp6ew57sE+CGXJ+4Y7B+UA4X0FA2Tx4j1xw0QxgNdwiQ myYL9/ustvTNWFDK3ajnnUjxi5npVnVCdvRRCQIqoppGSv0oPpf6Ra4gdhekvlHFOwYW btlQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=iOcwJOPeJ8LW/FdY//YnVIMSB4MCNRdxvLdVWXUV3YY=; fh=7EgbDZcfZQwWO2E+HbkQX1uvPhJblty39BshJmA92xI=; b=Jc4Y6xOjS5Qvzmqbzj/DH8y5iruHjMP+MEA5kSdQ0u3duKtgV0H2gzJqK6O1+qeZaQ pHEkrNk4vCx+eWxvlSHikpREmsPVyA8F907MFRvwSJcmmxxX5AZsjj2i2x4kMknPwNJx i8oyZ2qg6pFlsvJq7u9idPxNl7Ir2JLGgWVu4+BblJ0PvrO6KFsHeCTElJ+wf9dLJyDI a8v+pJuQJgIJgarCDVU2UG8i1TZZiFdA8f7eHsZpE8yunxbhbZQaPFlSouxeyKlzdOIs yzQ+no9bUb4tunddIJmj2FJeFlx6P7lG8eG9ANPUMweUKymzx5U7Ez833HqEvuCXXD4k 61PA== ARC-Authentication-Results: i=2; mx.google.com; dkim=temperror (no key for signature) header.i=@epreston.net header.s=default header.b=rCRptVah; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id j15-20020a63e74f000000b005b9377ee20csi940996pgk.701.2023.11.02.22.46.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 22:46:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@epreston.net header.s=default header.b=rCRptVah; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 97DCB82516C6; Thu, 2 Nov 2023 22:46:29 -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 S229523AbjKCFqE (ORCPT + 99 others); Fri, 3 Nov 2023 01:46:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229463AbjKCFqC (ORCPT ); Fri, 3 Nov 2023 01:46:02 -0400 Received: from bird.elm.relay.mailchannels.net (bird.elm.relay.mailchannels.net [23.83.212.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 743801A6 for ; Thu, 2 Nov 2023 22:45:56 -0700 (PDT) X-Sender-Id: hostpapa|x-authuser|x.reply@epreston.net Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id C4FA5841BC0; Fri, 3 Nov 2023 05:45:54 +0000 (UTC) Received: from s147.servername.online (unknown [127.0.0.6]) (Authenticated sender: hostpapa) by relay.mailchannels.net (Postfix) with ESMTPA id 9D1FE841679; Fri, 3 Nov 2023 05:45:53 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1698990353; a=rsa-sha256; cv=none; b=g8FWJUE1jGA/p9wprs+jc0mCzZVfeNCFnApllJFpf8FiRfcFWz++Dh+nE0o7CsO0Q4J/DB 4+1+hMQGrQ7dn3L/xZrnvE67IkUK+Eoqd02xnZKCLb+vuuGz03jgFzpJiwyw3CrXAHx8qI Q6TaTSs32X/FfvQxiCKMnrv1+L2p86vjUM7BxSLYUwur1DxKoTHwYvWqkQaG8TVCD1x4+T kqwBy7dF1YE/F8Af8MCtWypE6OFoXh4PwN1DtENSHIj/YdiwwSeSkmu5ROdCMf8W1BmNZ0 YZvYSLqLmCrwz87prUr0ydSTCEuXYlJ0R560AJCQrbHfsk1JRbNNJE/CFQVdGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1698990353; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=iOcwJOPeJ8LW/FdY//YnVIMSB4MCNRdxvLdVWXUV3YY=; b=27eo8H5tYbei77DE+86pkUPIU/A6hUCbDaELfpblx0TQnjLP1hXGOvEohOVeIXCITNyyj6 4L0x7zRyx22dOXY36CpDGdGnEqPwH+OaVmH/yf9egkMvFjTSWPiesfwe7SFxMdxtHr2nAB Bi3ZFbZOci+tCDlBr2dsBGiOKlx3uyUp7B8iHxnzAMprU2NWh3gHNe5MygC2QfXnttdZrE erf+BSFzQGB17jo0yyu8E0C1zycxtrW0uy1Atn5xs5/WFoggk5DPNoKZ7Kf0fvhbcI4BBp 1ihcwGW24HaMYgWurhvkJ6WHAyqJtQf/damZnm2UX7EDTWdRIcPTK+jlUMGTsw== ARC-Authentication-Results: i=1; rspamd-79d8cddc67-sdlhj; auth=pass smtp.auth=hostpapa smtp.mailfrom=x.arch@epreston.net X-Sender-Id: hostpapa|x-authuser|x.reply@epreston.net X-MC-Relay: Neutral X-MailChannels-SenderId: hostpapa|x-authuser|x.reply@epreston.net X-MailChannels-Auth-Id: hostpapa X-Keen-Wide-Eyed: 40429521226e4cd5_1698990354486_2334182038 X-MC-Loop-Signature: 1698990354486:3333365556 X-MC-Ingress-Time: 1698990354486 Received: from s147.servername.online (s147.servername.online [204.44.192.62]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.101.67.91 (trex/6.9.2); Fri, 03 Nov 2023 05:45:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=epreston.net; s=default; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=iOcwJOPeJ8LW/FdY//YnVIMSB4MCNRdxvLdVWXUV3YY=; b=rCRptVahp5Wm6vTq0z6ttKQADG rq1m/x5db/G8fgK8SBflaLYc8eBo5cwDByGw/Dgj40mQ13ElOtKQtSgx2JmwVvOdPm3b75uklM8gs XLS7UL1WqUK8KoJxK6ELOy5Cw8c2FEoioc+rWTXqx96ZTEO+Ez72tag8ur6GKtViEttLBYK5aVfNN olY8JYm0YKw9QBo1er3k8k18OiYH7yfVLY8/sOS/r0HsFheSLySgXWrx5OW8gHab5ZI1plEZ73zba wPhyceiYGVqvISlMXP56B6qOcQgpBUcC6Ut8c2RTSJYejmyavQNrmoDe3m23xtKAYNQAoIrOiNjOc U49lAODw==; Received: from [50.35.115.28] (port=58340 helo=P70.localdomain) by s147.servername.online with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1qyn09-008fw9-1A; Thu, 02 Nov 2023 22:45:53 -0700 Date: Thu, 2 Nov 2023 22:45:48 -0700 From: Evan Preston To: Huacai Chen Cc: Jaak Ristioja , Linux regressions mailing list , Linux Kernel Mailing List , Linux DRI Development , Javier Martinez Canillas , Thorsten Leemhuis , Thomas Zimmermann , Bagas Sanjaya , Evan Preston Subject: Re: Blank screen on boot of Linux 6.5 and later on Lenovo ThinkPad L570 Message-ID: References: <82f1b533-3bd8-4418-843a-718d9a6b5786@leemhuis.info> <31ed0db1-9398-4c46-a391-fc644ec49268@ristioja.ee> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-AuthUser: x.reply@epreston.net X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,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 22:46:29 -0700 (PDT) Hi Huacai, On 2023-11-02 Thu 08:38pm, Huacai Chen wrote: > Hi, Jaak, > > On Wed, Nov 1, 2023 at 7:52 PM Jaak Ristioja wrote: > > > > On 31.10.23 14:17, Huacai Chen wrote: > > > Hi, Jaak and Evan, > > > > > > On Sun, Oct 29, 2023 at 9:42 AM Huacai Chen wrote: > > >> > > >> On Sat, Oct 28, 2023 at 7:06 PM Jaak Ristioja wrote: > > >>> > > >>> On 26.10.23 03:58, Huacai Chen wrote: > > >>>> Hi, Jaak, > > >>>> > > >>>> On Thu, Oct 26, 2023 at 2:49 AM Jaak Ristioja wrote: > > >>>>> > > >>>>> On 25.10.23 16:23, Huacai Chen wrote: > > >>>>>> On Wed, Oct 25, 2023 at 6:08 PM 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 PM Linux regression tracking (Thorsten > > >>>>>>>>> Leemhuis) wrote: > > >>>>>>>>>> On 09.10.23 10:54, Huacai Chen wrote: > > >>>>>>>>>>> On Mon, Oct 9, 2023 at 4:45 PM Bagas Sanjaya wrote: > > >>>>>>>>>>>> On Mon, Oct 09, 2023 at 09:27:02AM +0800, Huacai Chen wrote: > > >>>>>>>>>>>>> On Tue, Sep 26, 2023 at 10:31 PM Huacai Chen wrote: > > >>>>>>>>>>>>>> On Tue, Sep 26, 2023 at 7:15 PM Linux regression tracking (Thorsten > > >>>>>>>>>>>>>> Leemhuis) wrote: > > >>>>>>>>>>>>>>> On 13.09.23 14:02, Jaak Ristioja wrote: > > >>>>>>>>>>>>>>>> > > >>>>>>>>>>>>>>>> Upgrading to Linux 6.5 on a Lenovo ThinkPad L570 (Integrated 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 60aebc9559492cea6a9625f514a8041717e3a2e4 > > >>>>>>>>>>>>>>>> ("drivers/firmware: Move sysfb_init() from device_initcall to > > >>>>>>>>>>>>>>>> subsys_initcall_sync"). > > >>>>>>>>>>>>>>> > > >>>>>>>>>>>>> As confirmed by Jaak, disabling DRM_SIMPLEDRM makes things 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 enabled 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 some 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 but it has a > > >>>>>>>>> blank screen. Of course it is valuable to investigate further about > > >>>>>>>>> DRM_SIMPLEDRM on Jaak's machine, but that needs Jaak's effort because > > >>>>>>>>> I don't have a same machine. > > >>>>>>> > > >>>>>>> Side note: Huacai, have you tried working with Jaak to get down to the > > >>>>>>> real problem? Evan, might you be able to help out here? > > >>>>>> No, Jaak has no response after he 'fixed' his problem by disabling SIMPLEDRM. > > >>>>>> > > >>>>> > > >>>>> I'm sorry, what was it exactly you want me to do? Please be mindful 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 respond on this. > > >>>> 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=y and > > >>> get no blank screen with CONFIG_FB_SIMPLE=y and CONFIG_DRM_SIMPLEDRM unset. > > >> 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. > > > 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. Thank > > > 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. 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-6700HQ). > > >>>>>>>> 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-status > > >>>>>>>> indicator. > > >>>>>>> > > >>>>>>> This additional report makes me wonder if we should revert the 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 description 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, 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/firmware: Move > > >>>>>>>>>>>>> sysfb_init() from device_initcall to subsys_initcall_sync") 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 commit 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, before that > > >>>>>>>>>>> commit, SIMPLEDRM doesn't work, but the screen isn't blank; after that > > >>>>>>>>>>> commit, SIMPLEDRM works, but the screen is blank. > > >>>>>>>>>>> > > >>>>>>>>>>> Huacai > > >>>>>>>>>>>> > > >>>>>>>>>>>> Confused... > > >>>>>>>>>>>> > > >>>>>>>>>>>> -- > > >>>>>>>>>>>> An old man doll... just what I always wanted! - Clara > > >>>>>>>>>>> > > >>>>>>>>>>> > > >>>>>>>> > > >>>>>>>> > > >>>>> > > >>> > >