Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp468554rdb; Tue, 23 Jan 2024 05:25:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IHQOz2sc+7gklznZpgvJKzKpjPr9VXyKb2qinFfO7i0YUPLQcVyB5fsVPordOxCrzOwP6a9 X-Received: by 2002:a17:906:8a50:b0:a30:f4fb:a557 with SMTP id gx16-20020a1709068a5000b00a30f4fba557mr30184ejc.59.1706016325428; Tue, 23 Jan 2024 05:25:25 -0800 (PST) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id r10-20020a170906548a00b00a2aae353dfbsi11351391ejo.253.2024.01.23.05.25.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 05:25:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35374-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b=gGu8sojm; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-35374-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35374-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 321581F2273A for ; Tue, 23 Jan 2024 13:25:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0121667E71; Tue, 23 Jan 2024 13:12:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="gGu8sojm" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 30C2667E66 for ; Tue, 23 Jan 2024 13:12:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706015534; cv=none; b=HBWJzGs8r/uzclx2WlkMDoesOSew/17p/d4ab/frmSd9MIerKiT9MhIhunPvRhVy3XH9ccJRM+06nElc/raEyjXWnomrIszrgNu5YxIh9Kf4/ZNDYmJDSUbzVQ9Z33T0SpA2ZHTdsf1+OYn24C9jIOsqI3l2WqX/xsQXbZXrqZM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706015534; c=relaxed/simple; bh=ueru+mw1cE0XRlZEGPUaiKo7r27Ceou9vCB7MrFSjAE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=aEhI08ZzmVJBLEekmAIMltSpgjmjD0o7vY+BlhLVXa+HhHlHVT2Z1r5tzFeE8/jLkvtRRL6h5sMjXRusxoiCoMqLB+DwBd78c5s5L8+3bTqrkD1MSA0nRx10sG1So9VOKU8JYvYPrtCirEeSJs8mEqcHuoEQk7ViTbEE+J3HL54= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gGu8sojm; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D932C43390 for ; Tue, 23 Jan 2024 13:12:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706015533; bh=ueru+mw1cE0XRlZEGPUaiKo7r27Ceou9vCB7MrFSjAE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=gGu8sojmykuWlHHtnhyPY+0ZtEO+PukTGSgIo6Dz3zo9o2W6lzcCxz/tJArjxiLqk w8CGzYTNVmRd0v45K0Pn1bx4rSk5w3Xmw1+TVlWlDX57f5o7dpeCPAr8CnUCKGB9i+ 6w90I3r/AQp/G3hdWsQ6tN72nvOy5PRItQ8Oo/purfPQ5Ktuz5Zi7lts+g0sgjBQ0e EYhWgFp5iMmd5PxMknCsTDOd/fsXhw/nB8oAbZElYi5ZpG6ZSfEk5gcdrU9omBbguB kwC0JO+2s8cqjvqgKkGZHf5gNp2xXKHCKpIC7hhXE76vt8x37o0CcOjZyrpeqzO2WJ eRSCE5r4CtCSw== Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-40e9101b5f9so48041655e9.3 for ; Tue, 23 Jan 2024 05:12:13 -0800 (PST) X-Gm-Message-State: AOJu0Yw1jdyiDHF0zV1lh/GsWHrkuiVwCQb6cMHf4nkd0V3VQ8PPNp8V jg+s42g9d2Qo9WC4io/iblhtue+R0z8/AnIyPZoHh9CoxmJbCY540NxOh8gA86XkK0/8tMdANR7 IAT7aU/4mZFgSPjICWQ/jwL8cRoY= X-Received: by 2002:a05:600c:538e:b0:40e:6d7a:f9dd with SMTP id hg14-20020a05600c538e00b0040e6d7af9ddmr138840wmb.47.1706015532072; Tue, 23 Jan 2024 05:12:12 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240123120937.27736-1-tzimmermann@suse.de> In-Reply-To: <20240123120937.27736-1-tzimmermann@suse.de> From: Huacai Chen Date: Tue, 23 Jan 2024 21:12:00 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] Revert "drivers/firmware: Move sysfb_init() from device_initcall to subsys_initcall_sync" To: Thomas Zimmermann Cc: javierm@redhat.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jaak Ristioja , Huacai Chen , Thorsten Leemhuis , Jani Nikula Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I'm very sorry to hear that, If Jaak can respond, I think I can find the root cause and fix that... Huacai On Tue, Jan 23, 2024 at 8:09=E2=80=AFPM Thomas Zimmermann wrote: > > This reverts commit 60aebc9559492cea6a9625f514a8041717e3a2e4. > > Commit 60aebc9559492cea ("drivers/firmware: Move sysfb_init() from > device_initcall to subsys_initcall_sync") messes up initialization order > of the graphics drivers and leads to blank displays on some systems. So > revert the commit. > > To make the display drivers fully independent from initialization > order requires to track framebuffer memory by device and independently > from the loaded drivers. The kernel currently lacks the infrastructure > to do so. > > Reported-by: Jaak Ristioja > Closes: https://lore.kernel.org/dri-devel/ZUnNi3q3yB3zZfTl@P70.localdomai= n/T/#t > Reported-by: Huacai Chen > Closes: https://lore.kernel.org/dri-devel/20231108024613.2898921-1-chenhu= acai@loongson.cn/ > Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/10133 > Signed-off-by: Thomas Zimmermann > Cc: Javier Martinez Canillas > Cc: Thorsten Leemhuis > Cc: Jani Nikula > --- > drivers/firmware/sysfb.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/firmware/sysfb.c b/drivers/firmware/sysfb.c > index 82fcfd29bc4d2..3c197db42c9d9 100644 > --- a/drivers/firmware/sysfb.c > +++ b/drivers/firmware/sysfb.c > @@ -128,4 +128,4 @@ static __init int sysfb_init(void) > } > > /* must execute after PCI subsystem for EFI quirks */ > -subsys_initcall_sync(sysfb_init); > +device_initcall(sysfb_init); > -- > 2.43.0 >