Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5183153imm; Wed, 12 Sep 2018 02:17:05 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYVUwwL0Lq4x1xOYLevBMv+7XkPd+PmigZz5fm9dh3MR5gaRFct0mS8oi+wL98F50S5iT8k X-Received: by 2002:a17:902:708a:: with SMTP id z10-v6mr1093861plk.229.1536743825248; Wed, 12 Sep 2018 02:17:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536743825; cv=none; d=google.com; s=arc-20160816; b=XjZv2HpQYPQGhgMjQfdXwLN63XBSGxdMpkTTCAcgnSf76FMh5n8wPkAejCJc4cHojo XM/1iMl46KMfkSBj814EE36+yre0JSNfwtwh2jInBMO0XgXRyTd+Il/B0G8stjFB7yj9 EwU5+UP8w5iH44RXDvn1qlmn6h12RW265EZMZSbRtkF7cuQU7z+zqzraHjk5ZK/aW/u1 6tQfpvUQkf2FeJzCGx6qEmSPuEAikxnr96mhaHFzhQrB2dXFtSW0poV1/VTEPOUMC++w Y7DS4uTyFqnRkfeWENo4p1A8MfzmUOyWba+UMQugs7a/iS127GPdon4XKYSeUjGEdcwd DW/w== 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; bh=bhKQo4X70prIt+UwUKyzKvZK31h5vf1Jdj+alb5cndc=; b=Pb4rW9N7OCTqt1gU3k1/VTuxbqhwYB1O0PZJYbl1UTQz48ZMQAlkHrPwHKH1O1FWaa g0ZNPriNR/Way7tp0452A0WSgsV/W0Zc6FvbQoqg3GqbNyaZDVUiBC9ZsQhhOQOq4yao ra3AyBwaL7I9ENMyWvr2EgN6CGCeXzLP3WXGKSKK44Wb2kj8YUouHL+QpkvuAIwkH9kV ImoIXGWfW0JtIVOqLqmiIcVhLWC0h2QUm2IDKoJ95Ru9a166DJF3JOhcuDTDGUb2kPO+ cjXI/CEb+Rd1Brmo9UdwWqYrJjB3f5eFmlEUYC1yyW/5ko32kAuoQbe/j4IJZMnaz07A W1FQ== 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 64-v6si426240plk.257.2018.09.12.02.16.49; Wed, 12 Sep 2018 02:17:05 -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 S1728090AbeILORQ (ORCPT + 99 others); Wed, 12 Sep 2018 10:17:16 -0400 Received: from mail-wm0-f54.google.com ([74.125.82.54]:54017 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726901AbeILORP (ORCPT ); Wed, 12 Sep 2018 10:17:15 -0400 Received: by mail-wm0-f54.google.com with SMTP id b19-v6so1525322wme.3 for ; Wed, 12 Sep 2018 02:13:37 -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=bhKQo4X70prIt+UwUKyzKvZK31h5vf1Jdj+alb5cndc=; b=F7iVkCLq8YCqMuQREZ80wz/FbKsH69zBK0abNpNRLPXp1l0CVUSxOB6CVPj6iLog6f ybRArRdPbOLht8gcdK5UsUol/2xDD8vUbxwNjE17A8/mleGqCSO9Bffz+Ol+WC3PfDx2 FSzed9YRsVOmd3v/+oqCrieYotH9v3pMdF1FlpdJbCql8FARD5yi77/+CFwP8MOm0Kus EnKs5j09a5OFNocNhQ7y29lhSWN7GhwnQNR8prB3veSUoYHBzOnfOwUGiiSnd9uHYsei 8GddMLTOWdkmtzbrjsn4ytoml/Ua8uujOc4OZ3VxJVvL2FHrNY8hJPBcaxD9e7IjwK2w JW3A== X-Gm-Message-State: APzg51Bb+36VToOz1Voa8T8bvjz38napHL0ghoV8WLr8APf0ZyfGn9uG K/ezlF2Dgt9rc5AqLutbX42f2Q== X-Received: by 2002:a1c:f913:: with SMTP id x19-v6mr985849wmh.63.1536743616568; Wed, 12 Sep 2018 02:13:36 -0700 (PDT) Received: from shalem.localdomain (546A5441.cm-12-3b.dynamic.ziggo.nl. [84.106.84.65]) by smtp.gmail.com with ESMTPSA id 34-v6sm872316wra.20.2018.09.12.02.13.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Sep 2018 02:13:35 -0700 (PDT) Subject: Re: [REGRESSION] boot-screen override by "34db50e55656 efifb: Copy the ACPI BGRT" To: David Herrmann Cc: Bartlomiej Zolnierkiewicz , linux-kernel , linux-fbdev@vger.kernel.org, linux-efi@vger.kernel.org, dri-devel@lists.freedesktop.org References: <1982440.Fn0LzJ7a3l@amdc3058> From: Hans de Goede Message-ID: <9e9e269d-6ac7-7826-ecd5-acc164025429@redhat.com> Date: Wed, 12 Sep 2018 11:13:35 +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 03-09-18 17:11, David Herrmann wrote: > Hey > > On Mon, Sep 3, 2018 at 4:47 PM Hans de Goede wrote: >> >> Hi, >> >> On 03-09-18 16:16, Bartlomiej Zolnierkiewicz wrote: >>> >>> Hi, >>> >>> On Monday, September 03, 2018 03:23:38 PM David Herrmann wrote: >>>> Hey >>>> >>>> Since this commit: >>>> >>>> 34db50e55656 efifb: Copy the ACPI BGRT >>>> >>>> the kernel will override boot-splashs unasked. This breaks the >>>> graphical boot-process on our setups. In particular, we have a setup >>>> where an efi-boot-entry draws the early boot-splash on-screen, then >>>> hands-over to the linux-kernel + initrd. The boot-splash daemon in the >>>> initrd then takes over control of possible animations. >>>> >>>> With the mentioned commit compiled in, the kernel will redraw the >>>> firmware logo on screen at a random time without any way to intervene. >>> >>> You have CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER=y (the deferred >>> console takeover support introduced in v4,19-rc1). I assume that this >>> is intended? >>> >>>> What is the intention of this commit? Why is the kernel re-drawing the >>>> firmware logo unasked? If someone during the boot-process draws >>>> content on the screen, I would prefer if the kernel does not clear >>>> that on driver load. >>> >>> +/* >>> + * If fbcon deffered console takeover is configured, the intent is for the >>> + * framebuffer to show the boot graphics (e.g. vendor logo) until there is some >>> + * (error) message to display. But the boot graphics may have been destroyed by >>> + * e.g. option ROM output, detect this and restore the boot graphics. >>> + */ >>> +#if defined CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER && \ >>> + defined CONFIG_ACPI_BGRT >>> ... >>> +static void efifb_show_boot_graphics(struct fb_info *info) >>> ... >>> +#else >>> +static inline void efifb_show_boot_graphics(struct fb_info *info) {} >>> +#endif >>> >>>> Can we either provide an option to disable this feature, or revert the commit? >>> >>> Hans? >> >> We use the ACPI bgrt extension to get the logo to draw and then >> draw it since some devices rely on the OS to draw it and otherwise we >> just end up with a blackscreen when doing silent / flickerfree boot. >> >> Ideally you would be able to get your vendor to put the logo in firmware >> in the ACPI bgrt extension, then you also do not need to play any tricks >> with an EFI binary drawing your own logo. But I can understand if you don't >> have control over this, so you need to do this with the EFI binary trick. >> >> I can also understand that you want to use deferred console takeover >> in a setup like yours to avoid fbcon messing up what is on the display >> during boot, that is exactly what it is for. So I think a reasonable >> approach here is to add a kernel commandline option, say: >> >> video=efifb:nobgrt >> >> David, would that work for you? > > That would be perfect! Ok, I just send out a patch for this with you in the Cc. Sorry for taking a bit long to write the patch. Regards, Hans