Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp515257rdb; Tue, 23 Jan 2024 06:39:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IE6b19bDGSDu9Ev7pENR5i/716p7b0YM1itEFMzb4qC3U7bCLYPzXv9p7s2O67z3rrRUYH+ X-Received: by 2002:a17:907:2721:b0:a30:bdd4:ecfd with SMTP id d1-20020a170907272100b00a30bdd4ecfdmr165684ejl.37.1706020766262; Tue, 23 Jan 2024 06:39:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706020766; cv=pass; d=google.com; s=arc-20160816; b=U1zwFpPdqs91sT7yOLDEnuJ9Ql4yclG2g46yb1fEuyQy3i1SZmSLu1Vm/4d+Ze+Wie 43H8nvr3AqR669KNwp9QZVDZlTIwGPGOH5vgbDlypHjV67g6iOGSQUA8OcXhFo5fiGg8 uBZWX3V17lCQsNvbjlF6EHgnjXmpanndftMLKSBee6Uw3QtmhLYoHTJpz7qghwrHMV+4 9nsb9m4nPrKeOaUz6RxRohqOlePjfXufl3Gu1Kf5tud0IvU+GkV6Y5phjTXskltBT3z6 xNxPIedjBh8II9oucuHRPgojFhv5ExihHqy8rU4qsD2CSRhy7GrgKFtIVJBMkvOJFXLO p9gg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:organization:in-reply-to:subject:cc:to :from:dkim-signature; bh=NC6ub5uCAKlm+3hGq1lAE6gcaDBqsoC1W9cbzbtjal4=; fh=4CaU9husvPX7EX5K/FEk7A7qKNNxw1/9u5q9wBd74AU=; b=gJLO1a2Gkri7nJij8V6RK0PirctAecYTkhKAf/8XhrUF2VzPUmJmkUdY0EYitCz67H OIm6/FsNq4mEtuuoUmViJpDgLgycaEbFT4YePZAX6T34qrNNUXCzVxksbAlNeK4ujxRw kuneidfTClyYFK5bX3xNXpxI9iuTji/zNnfu25QJ7KIiePxHMCKR9fWVvY48wuxBCoEf rSXAideHndTMptuF0IEDjmGyHyXbOPKITXO3ZLscc3RiMHxAxLr62iDsi5CmaOoq+6OT //nVaBCiY5DyzbA5GSBr0HpG1ZVH+hTw6SHqmC1Q5lDtXaXgwmbMANUN3620lhiTGCFs iQHg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iXqW0xhR; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-35462-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35462-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id x24-20020a1709060a5800b00a28af8f4c95si12015061ejf.640.2024.01.23.06.39.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 06:39:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35462-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=pass header.i=@intel.com header.s=Intel header.b=iXqW0xhR; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-35462-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35462-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 082751F2934F for ; Tue, 23 Jan 2024 14:39:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 92A1F5C601; Tue, 23 Jan 2024 14:39:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="iXqW0xhR" Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) (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 1A1B756755 for ; Tue, 23 Jan 2024 14:39:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.55.52.120 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706020752; cv=none; b=qP6PJYMgoUnEIeBJso2HlAJMv4FLdnFROdwZR07aX+tWeiIUgeWLZ3o5V7F+MalWeLIaJbOvZy5H/zoQv5YzyBKFeHcdnIHi/3qVoyg9K94Xa4CPSDwJJ/r7XvaZVXBNskYbOT2C5e/Kt4e+Zgd6b3bPzH4vQth3U6/pWv+K/sA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706020752; c=relaxed/simple; bh=90efiydoJUFwFSGiHQI4dQGybhe96j9FBwZwRp774Eg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=RAan/JSMtyxHL6Z1aLte0bOmD2Mxl6XheftphihcAkhdVAlwL9EuV9i2pirDEsDTfTzkI/w1MWr2Xe64saMzG8YeS/bYK2V9oyx2grunX0TxmRt/S32N5R7VUGLnyjbzwEU9Z4ariVmlo9iy05kmUNJwP3ESejIxUBfW8+rF04k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=iXqW0xhR; arc=none smtp.client-ip=192.55.52.120 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706020751; x=1737556751; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=90efiydoJUFwFSGiHQI4dQGybhe96j9FBwZwRp774Eg=; b=iXqW0xhRDMkzz1cUUGsfxHt5uBqOp3AOhaZaA+YiuudJWlcHrmo0X4fK cizAZzR21lUHqiB2Q3OqSO7kUSMz05RDiX92qEBDqR4wkxyFHdFJn/A5L hyFRZwIAKvPeuCA1dNqtHQIil65OUYyU1Bu1xxmC8dhw2BZhK4O3yCKOU QHzA7f7dGCi/KlwcdlSQqAEkTdDdn2yBhLckdDAoWqoGQLoLC4dk2UH8h 0OeBQfbQxj+sZkjet2nqimO+FYGxEvIdaF+Ex0GlHYSqydQEidWfzXx9k cWWsVgvrWuDxYeg0P0GlSm0IGBbIKaqnLG2AvGXlmoSkqzpYrw5uZNanK Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10962"; a="400401583" X-IronPort-AV: E=Sophos;i="6.05,214,1701158400"; d="scan'208";a="400401583" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jan 2024 06:39:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10962"; a="1117272579" X-IronPort-AV: E=Sophos;i="6.05,214,1701158400"; d="scan'208";a="1117272579" Received: from pzsolt-mobl1.ger.corp.intel.com (HELO localhost) ([10.252.40.183]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jan 2024 06:39:04 -0800 From: Jani Nikula To: Thomas Zimmermann , javierm@redhat.com, chenhuacai@kernel.org Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Thomas Zimmermann , Jaak Ristioja , Huacai Chen , Thorsten Leemhuis Subject: Re: [PATCH] Revert "drivers/firmware: Move sysfb_init() from device_initcall to subsys_initcall_sync" In-Reply-To: <20240123120937.27736-1-tzimmermann@suse.de> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20240123120937.27736-1-tzimmermann@suse.de> Date: Tue, 23 Jan 2024 16:39:02 +0200 Message-ID: <874jf4nmgp.fsf@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Tue, 23 Jan 2024, 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.localdomain/T/#t > Reported-by: Huacai Chen > Closes: https://lore.kernel.org/dri-devel/20231108024613.2898921-1-chenhuacai@loongson.cn/ > Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/10133 FWIW, Acked-by: Jani Nikula but would be great to get a Tested-by from Jaak or from the gitlab issue reporter. Thanks. > 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); -- Jani Nikula, Intel