Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp5493941imm; Tue, 26 Jun 2018 12:14:40 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeaAHxMIbY5MebDRNs0+aI8GSJfw+8UPWVAv8GSBmQOJYpzTDdostkhzhxxacJGF2zvveEo X-Received: by 2002:a62:a104:: with SMTP id b4-v6mr2779584pff.159.1530040480452; Tue, 26 Jun 2018 12:14:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530040480; cv=none; d=google.com; s=arc-20160816; b=wtQ5OLcMcuDDgmhhfcfHeVvUURpM2HLNclbj8404f8O3tlUl3qdIVO6iss9G3N+9vL jICLWnmiTCbMfsKPMcpSy2Xz9jTfWxBt/lHkIzA9C+KYe1+5OwxHq5J/qqOBUysMSXIW YnoYPPlRiyDcdGj+ILdwGMTwfCwJjVziSs6Aa3lApUYw6GiBIDgpZIbXXhpzaDHtJp1b oZwTSTwCeMJs5ZdbE9XySB6TgeQnFCzc2/4oDfBPFtisKMhrdHhuuZS25sEgbghoQIxX N8COhBRR3hUnsRpWrQTL5RHNyqHM6CSNPQwAZvvb8rVrGXu9d3oaBGCOFaRvUri2+/Hc HKwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=52nuPCIs+TShfEbvsPhmP/g9sh+lsmcJHZ0XtiVCP9o=; b=iaYX5nSO/dyaNnBuw4cU20bu8WDk6CAu7MPikKiIEh9OiX7sB4YDH3h/Y7J7YVB75b z/3mdDq+tOnYOZBsIRz8WAg4lfFiED5iLkiJzoBG7EhhIpuDYdiZT8La8z4/BqU3o+Bx 7zRIZKy2z2T1pQB8YmGmo62DgilCqNtuKqb22rJQYZu6ffudJf4vouAYUgA5L04xY5+K ieIwWbuJCzqGHSSFK1XHkc56Kk5sladEmArkwWaGbagKQj7vs9i5DRgDSE2CPSC/UGOF Q8D+VlWCI4OyCH/pKcFI5qicaS8X3Zq2PaZTWctROzkjrTIBaQ5tHf1p89HbKlVoOySi /ujw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 128-v6si1880073pge.444.2018.06.26.12.14.25; Tue, 26 Jun 2018 12:14:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753076AbeFZSgR (ORCPT + 99 others); Tue, 26 Jun 2018 14:36:17 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:60092 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752187AbeFZSgP (ORCPT ); Tue, 26 Jun 2018 14:36:15 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4EC3C81A4EA4; Tue, 26 Jun 2018 18:36:15 +0000 (UTC) Received: from shalem.localdomain.com (ovpn-116-227.ams2.redhat.com [10.36.116.227]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1747E111763E; Tue, 26 Jun 2018 18:36:13 +0000 (UTC) From: Hans de Goede To: Bartlomiej Zolnierkiewicz , Petr Mladek , Sergey Senozhatsky Cc: Hans de Goede , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, Steven Rostedt , linux-kernel@vger.kernel.org Subject: [PATCH v4 0/3] console/fbcon: Add support for deferred console takeover Date: Tue, 26 Jun 2018 20:36:09 +0200 Message-Id: <20180626183612.321-1-hdegoede@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Tue, 26 Jun 2018 18:36:15 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Tue, 26 Jun 2018 18:36:15 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'hdegoede@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi All, Here is v4 of my patch-set, to delay fbcon taking over the console (and binding to fbdev devices) until there actually is some text output to the console. This is intended for use with the "quiet" cmdline option, in combination with a bootloader which leaves the vendor's logo / EFI bootgraphics put up by the firmware intact on the EFI framebuffer. The end goal here is a boot where the firmware shows its boot graphics and these stay in place for a couple of seconds until the GUI loads and the GUI then smoothly takes over the framebuffer without any distruptions. This patch-set spans 2 subsystems. Petr, the printk subsys change is really trivial (1 line addition) can we get your Acked-by for merging all 3 patches through the fbdev tree? Changelog: Changes in v4: -Keep the comments about which fbcon functions need locks in place Changes in v3: -Export is_console_locke() for use in modules (as fbcon may be built as a .ko) -Use WARN_CONSOLE_UNLOCKED() in several places in the fbcon code to assert proper locking (requested by Daniel) -Unregister the fbcon-dummycon-output-notifier on fbcon_exit() (req. by Daniel) -Document the fbcon=nodefer commandline option (req. by Emil) Changes in v2: -Check the whole string when checking for erases in putcs, instead of just the first char -Make dummycon_blank return 1, so that a redraw gets triggered and any text rendered while blanked gets output so that it can trigger a deferred takeover if one is pending Regards, Hans