From: Ingo Molnar <mingo@kernel.org>
To: Matt Fleming <matt@console-pimps.org>
Cc: linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org,
Matt Fleming <matt.fleming@intel.com>,
"H. Peter Anvin" <hpa@zytor.com>,
Thomas Gleixner <tglx@linutronix.de>,
Peter Jones <pjones@redhat.com>
Subject: Re: [PATCH v2 2/2] x86/efi: Add EFI framebuffer earlyprintk support
Date: Sat, 12 Oct 2013 19:56:15 +0200 [thread overview]
Message-ID: <20131012175615.GB18849@gmail.com> (raw)
In-Reply-To: <1381502037-22225-3-git-send-email-matt@console-pimps.org>
* Matt Fleming <matt@console-pimps.org> wrote:
> From: Matt Fleming <matt.fleming@intel.com>
>
> It's incredibly difficult to diagnose early EFI boot issues without
> special hardware because earlyprintk=vga doesn't work on EFI systems.
>
> Add support for writing to the EFI framebuffer, via earlyprintk=efi,
> which will actually give users a chance of providing debug output.
>
> Cc: H. Peter Anvin <hpa@zytor.com>
> Cc: Ingo Molnar <mingo@kernel.org>
> Cc: Thomas Gleixner <tglx@linutronix.de>
> Cc: Peter Jones <pjones@redhat.com>
> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
>
> Documentation/kernel-parameters.txt | 8 +-
> arch/x86/Kconfig.debug | 9 ++
> arch/x86/include/asm/efi.h | 2 +
> arch/x86/kernel/early_printk.c | 6 ++
> arch/x86/platform/efi/Makefile | 1 +
> arch/x86/platform/efi/early_printk.c | 191 +++++++++++++++++++++++++++++++++++
> 6 files changed, 214 insertions(+), 3 deletions(-)
> create mode 100644 arch/x86/platform/efi/early_printk.c
Looks really nice now!
Reviewed-by: Ingo Molnar <mingo@kernel.org>
One detail:
> +static void early_efi_write_char(u32 *dst, unsigned char c, unsigned int h)
> +{
> + const u32 color_black = 0x00000000;
> + const u32 color_grey = 0x00aaaaaa;
I still think this should be white - that should be more visible than
grey, especially in brightly lit places. (And I'm really sorry about nerds
in the basement getting eye damage.)
Also, what is the highest byte typically, can that ever be part of
multiple framebuffers and can it mean an alpha channel? If yes then '0x00'
(read: fully translucent) might not be the best of choices for console
output. In that case -1 (0xffffffff) would work in a natural way.
(If it's reserved bits then it has to be all zeroes.)
Thanks,
Ingo
next prev parent reply other threads:[~2013-10-12 17:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-11 14:33 [PATCH 0/2] EFI earlyprintk support Matt Fleming
2013-10-11 14:33 ` [PATCH 1/2] x86/efi: Include linux/efi.h in asm/efi.h Matt Fleming
2013-10-11 15:25 ` H. Peter Anvin
2013-10-11 18:19 ` Matt Fleming
2013-10-11 14:33 ` [PATCH v2 2/2] x86/efi: Add EFI framebuffer earlyprintk support Matt Fleming
2013-10-12 17:56 ` Ingo Molnar [this message]
2013-10-14 5:08 ` Matt Fleming
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131012175615.GB18849@gmail.com \
--to=mingo@kernel.org \
--cc=hpa@zytor.com \
--cc=linux-efi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=matt.fleming@intel.com \
--cc=matt@console-pimps.org \
--cc=pjones@redhat.com \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).