Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1740849imm; Mon, 3 Sep 2018 08:14:16 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ7Zlyou4vbBcuO26QpXuWVfEBYTG8xyZDo+p794AH/ujUEZuwbvz6gIqAq86Yr7AjCZiYl X-Received: by 2002:a63:5815:: with SMTP id m21-v6mr26568202pgb.78.1535987656254; Mon, 03 Sep 2018 08:14:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535987656; cv=none; d=google.com; s=arc-20160816; b=0sWclzzhsrT/d+ZE+LLpUKEdT6vvzNKE1oPg3ujTFl5B8OQuL2mCrPpUR4fVeAqoFZ H1VqMmWmvmXXMsNcGBlB7igogzKzOqr6Je5m74oDX67F+pIubsFpmOr8SivMQZ9cqMl7 C4N6CyVT8si8HSkwB7mUMTN5cE/pSqBo5KPWIE9JmkiFANWuEY06gcd4icuvNxb5xOHp pwuB7AHDmc89AcDCk0cAxRBnvCLI5at59d93XEgm0QgUf/Tjl0LTypVh8VYqolXwZZ67 5z2WyPkZOkC0/UJy/x0nHQjot8u6HkwELN/0BuZ0txpbZyBny0vPHzqF3TpkPOg7YGdT /kSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=Qb8K/qhM08+8LbmFEFyZMFZh2Dvf9853JXYmu1ZGGoo=; b=xjEEW32Rr0xAYZ7StZpZfHSX9Dw6tN0CZieFh4S19bO+RTgxZ3ywvDPQ5OslceVGPK U/cjJ0zPRzUvfwrQMnIcRy0m9OJbnFOtlSrkRnPm34Jdn5zWCT/rps1H0DEtyxCEOocO RfUmd9e+wrsg8kTR3LZSR7+NATzgp1VkU8WmCbih3I+5LwrjJolbZPlujJ2gIoRj+JIi PAW6j7YN0nh//rx/ISTNTS451eMawXwoayIlBz2Bs9MOxTewuHPPYmG0nVW9Pcy/seJW sNSI/r2xOchg/n6mWaG5du6U8f9jX7W8TecSFf0IRh+Gf3jlhkj+iB53Stdti5SFhsGB lXtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="vKMsLhn/"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z71-v6si18335630pff.223.2018.09.03.08.14.00; Mon, 03 Sep 2018 08:14:16 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="vKMsLhn/"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727458AbeICTcM (ORCPT + 99 others); Mon, 3 Sep 2018 15:32:12 -0400 Received: from mail-io0-f177.google.com ([209.85.223.177]:36264 "EHLO mail-io0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725949AbeICTcM (ORCPT ); Mon, 3 Sep 2018 15:32:12 -0400 Received: by mail-io0-f177.google.com with SMTP id q5-v6so661532iop.3; Mon, 03 Sep 2018 08:11:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Qb8K/qhM08+8LbmFEFyZMFZh2Dvf9853JXYmu1ZGGoo=; b=vKMsLhn/Pzfp0q2Ch4GUMDHD2ZWtnHbCJZQ5vHy419prVjwzlscngeRTiXWjM48NQq qvEd7xVycBX0l+eFDM4aD53rF7jXRDzGQ5j5QRTbh5Zmkcra+O6MEmZsCERu3/8lJzjv tMq0QsjHbWQbn0Fs8QqVucmV/mAcwAC6kkJboYa5QCbiQtWZPh1pnSX2DOMOPbrEyguz eyvAFvVhBUkPaE3GoZaZmqWLOYH2DgFYH/uDsNe/t81EXaNXgLF8Zgfs/2tIwVynsIb3 aC2xQ6BeM+G2dfMKaFPjsvbH0TsaFD2ZQQQQFo7Nyk0zOkHz1H63F46qmZW5v+2y/M82 YzYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Qb8K/qhM08+8LbmFEFyZMFZh2Dvf9853JXYmu1ZGGoo=; b=I+LGrI7b+jv0cWbrtfZ2zvagWMeR79Tk8XsPhSvUj/ynsIzDxTNwfQd4uWiqfD8tEQ todGJBKxG7fX0oYnKWIadOA1QEs2VonI/6RIjJm49MG506WUPK784TWa8pvGqQXpK3EI Jg5dEmdzkBsAGyyYhZ2lLmPumyxnve21OQZp9k1zVh/FcV58PKNo/XHPBmR1JgzW4kwz x9mYKukUItl/3hz1DUHvlROMzyinMbYt+T3eaGzfBBUuZj7S+Sb7Vpewg1THlGIZJ4UL i8ESsq/QaU55UXjMlp9zihSO8YxdvAg9XAQn/zqe0V/0LAdQKVfhr1LgwIsp4iuySnBH zt5g== X-Gm-Message-State: APzg51Dpjlv6Jfw6z1tEr2PL+PT9cHXNl41hF0Pqo8bAli1hoQwpr+3A owvQP8iyQikZw7HzOa1PnJICuUBQ0+KeMidxQT0= X-Received: by 2002:a6b:27c9:: with SMTP id n192-v6mr18223016ion.138.1535987495469; Mon, 03 Sep 2018 08:11:35 -0700 (PDT) MIME-Version: 1.0 References: <1982440.Fn0LzJ7a3l@amdc3058> In-Reply-To: From: David Herrmann Date: Mon, 3 Sep 2018 17:11:23 +0200 Message-ID: Subject: Re: [REGRESSION] boot-screen override by "34db50e55656 efifb: Copy the ACPI BGRT" To: Hans de Goede Cc: Bartlomiej Zolnierkiewicz , linux-kernel , linux-fbdev@vger.kernel.org, linux-efi@vger.kernel.org, dri-devel@lists.freedesktop.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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! Thanks David