Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp5491778imm; Tue, 26 Jun 2018 12:11:56 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLAac0evFgs+rP2VvbKcOZl4gXtJwGZjvI3os85oVL3Mqi/AHw0tMhgPUktscO9qnU6JfW3 X-Received: by 2002:a65:4bcd:: with SMTP id p13-v6mr2496476pgr.114.1530040316910; Tue, 26 Jun 2018 12:11:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530040316; cv=none; d=google.com; s=arc-20160816; b=vEanu/8zYIoGxN+BtidL7qrWFhAK9oLcSDF0f0KDVlill3gl9669NHuuJd3DSVjxoZ XPCE9wXxTbT4eV0eeznmjjdWafUvvAntNOZVUNKrqIfbQC2VWcqqqTnRRQOA7IXlJ5MQ SDaoGxaekmx8TEcwmFSXt8R0LF09uo3Q941unMVhS7nZRehbMClyzPNZcOtDpXcjwYyY 4MJ5ExTlsaVadM/oDHhXKbyraJDl/EDuCOJf/I9vxhfMRr7Zlah4ON6OymPru1ljLddh Kfnz2iPdcKLXPnNBvpwCnXrUmf3jp451omXelR+Mau0bUGwi0kISBet4PrjHth7bpW/p SEWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=ZDn3qoo3IMjSUe/WmGnkdEjxeaYPLSrNkmO6pEqVmT0=; b=Nh21kw8ePK/MkSlwgDU13Zd/xayE5QmMwpBk3CIme8+xqRLfnb2JfAiF3TYQoLg/pi ppTJ0rkD6xEM7NIKIFr++rWnonir96Zs3TRzX5IvgrLta1nsbK4+I3Ps5O1fBRYdYFJs HdvNZsav+ntKQiwCAIH4NzngEPNeuXLqG0/Ljw0WLzq6msCRhthOebk++TdYbkLkDYPZ LgI2/5aPRnzsZBfSTUyZwoV8zbs2ZjTk8StTygzaoAYy2nYY2XdtgtwEjMAVRmyjUKW4 e8oYIuCcKTPat7ugVCNb/F0Gy2dz6XY4NTzw8+COYqPo0/J0qkqqQskgqvgDwtCpv8m3 sv9Q== 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 c17-v6si1907504pgf.352.2018.06.26.12.11.42; Tue, 26 Jun 2018 12:11:56 -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 S934082AbeFZS3u (ORCPT + 99 others); Tue, 26 Jun 2018 14:29:50 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:38168 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754582AbeFZS3r (ORCPT ); Tue, 26 Jun 2018 14:29:47 -0400 Received: by mail-wr0-f194.google.com with SMTP id e18-v6so18221821wrs.5 for ; Tue, 26 Jun 2018 11:29:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ZDn3qoo3IMjSUe/WmGnkdEjxeaYPLSrNkmO6pEqVmT0=; b=F4r476odD7nKfgOCLyynAUcb7vISTxa1u8P7xHdZhLoJPxJRyem376xqXi66l6JETF 2fnaP79/016BKW9J+LhjiQq27Fb2WEM2MzxAfeqVig5cEjGJVuvsD544UyWtpdxNeQ1+ 0MJn206PINPl3jrJh5ptWNRT0l3bCz1HCYeD8CmrkvBkZ2s8UubZrfco6pUdV9CSO2WK lfD7J9lFcx2aHm6hz5lB0WFQe7q4MkYdAj4P5kwFpRGtOpy8hiiTHefSSPD8wSKbqJGr KrzQGJIA2X7/ZTjTx8H1JuK/UmixBBbFL+AIHi4LyUaDDGlJ3Vc4luMYFfUhL9EmTN/h hkWg== X-Gm-Message-State: APt69E1if/egor+Mbt3O+IRpxp7sA77QF/J49SQoz7FkmXQwylxHm6Vh cOOl1SuNTpzDV29AXlVdNCaIIka1yU4= X-Received: by 2002:adf:f5c3:: with SMTP id k3-v6mr501824wrp.219.1530037786158; Tue, 26 Jun 2018 11:29:46 -0700 (PDT) Received: from shalem.localdomain (546A5441.cm-12-3b.dynamic.ziggo.nl. [84.106.84.65]) by smtp.gmail.com with ESMTPSA id j131-v6sm3238029wmb.25.2018.06.26.11.29.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Jun 2018 11:29:45 -0700 (PDT) Subject: Re: [PATCH v3 3/3] console/fbcon: Add support for deferred console takeover To: Andy Shevchenko Cc: Bartlomiej Zolnierkiewicz , Petr Mladek , Sergey Senozhatsky , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, Steven Rostedt , Linux Kernel Mailing List References: <20180626135535.2990-1-hdegoede@redhat.com> <20180626135535.2990-4-hdegoede@redhat.com> From: Hans de Goede Message-ID: Date: Tue, 26 Jun 2018 20:29:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 26-06-18 19:12, Andy Shevchenko wrote: > On Tue, Jun 26, 2018 at 4:55 PM, Hans de Goede wrote: >> Currently fbcon claims fbdevs as soon as they are registered and takes over >> the console as soon as the first fbdev gets registered. >> >> This behavior is undesirable in cases where a smooth graphical bootup is >> desired, in such cases we typically want the contents of the framebuffer >> (typically a vendor logo) to stay in place as is. >> >> The current solution for this problem (on embedded systems) is to not >> enable fbcon. >> >> This commit adds a new FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER config option, >> which when enabled defers fbcon taking over the console from the dummy >> console until the first text is displayed on the console. Together with the >> "quiet" kernel commandline option, this allows fbcon to still be used >> together with a smooth graphical bootup, having it take over the console as >> soon as e.g. an error message is logged. > >> + for (i = 0; i < FB_MAX; i++) { >> + if (registered_fb[i]) >> + fbcon_fb_registered(registered_fb[i]); >> + } > > Simple git grep shows that we perhaps do > > #define for_each_registered_fbcon(i) ... > > (As an example see for_each_pci_bridge() how it's done there) This is probably a worthwhile cleanup for all the fbdev related code / drivers. But outside of the scope of this patchset. Regards, Hans