From: Matt Fleming <matt-HNK1S37rvNbeXh+fF434Mdi2O/JbrIOy@public.gmane.org>
To: Andre <andre.muller-S0/GAf8tV78@public.gmane.org>
Cc: linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Ulf Winkelvos <ulf-rS3t9PEbhQ0OIzVOb1FTxg@public.gmane.org>
Subject: Re: [RFC] [PATCH] x86/efi: Adding efi_printks on memory allocationa and pci.reads
Date: Thu, 11 Sep 2014 09:08:41 +0100 [thread overview]
Message-ID: <20140911080841.GH18582@console-pimps.org> (raw)
In-Reply-To: <20140910010022.21b2707b@bert>
On Wed, 10 Sep, at 01:00:22AM, Andre wrote:
> All other calls to allocate memory seem to make some noise already, with the
> exception of two calls (for gop, uga) in the setup_graphics path.
>
> The purpose is to be noisy on worrysome errors immediately.
>
> > commit fb86b2440de0ec10fe0272eb19d262ae7a01adb8
> > Author: Ulf Winkelvos <ulf-rS3t9PEbhQ0OIzVOb1FTxg@public.gmane.org>
> > Date: Thu Jul 10 02:12:41 2014 +0200
> >
> > x86/efi: Add better error logging to EFI boot stub
>
> introduces printing false alarms for lots of hardware. Rather than playing
> Whack a Mole with non-fatal exit conditions, try the other way round.
The usual way to reference existing commits is to quote the commit sha1
(abbreviated to 12-characters) with the patch subject in parenthesis and
quotes, i.e. commit fb86b2440de0 ("x86/efi: Add better error logging to
EFI boot stub") - I fixed this up.
> This is per Matt Fleming's suggestion:
>
> > Where I think we could improve things
> > is by adding efi_printk() message in certain error paths. Clearly, not
> > all error paths need such messages, e.g. the EFI_INVALID_PARAMETER path
> > you highlighted above, but it makes sense for memory allocation and PCI
> > read failures.
>
> http://article.gmane.org/gmane.linux.kernel.efi/4628
>
> After this, the status check on the setup_efi_pci() function
> can go away again.
>
> Signed-off-by: Andre Müller <andre.muller-S0/GAf8tV78@public.gmane.org>
> ---
> arch/x86/boot/compressed/eboot.c | 29 ++++++++++++++++++++++-------
> 1 file changed, 22 insertions(+), 7 deletions(-)
Patch looks good to me. Applied, thanks!
--
Matt Fleming, Intel Open Source Technology Center
prev parent reply other threads:[~2014-09-11 8:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-06 21:02 [PATCH 1/1] arch/x86: Add better error logging to efi main Andre
2014-09-07 0:11 ` Andre
2014-09-08 21:18 ` Matt Fleming
[not found] ` <20140908211856.GC18582-HNK1S37rvNbeXh+fF434Mdi2O/JbrIOy@public.gmane.org>
2014-09-09 22:54 ` Andre
2014-09-09 23:00 ` [RFC] [PATCH] x86/efi: Adding efi_printks on memory allocationa and pci.reads Andre
2014-09-11 8:08 ` Matt Fleming [this message]
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=20140911080841.GH18582@console-pimps.org \
--to=matt-hnk1s37rvnbexh+ff434mdi2o/jbrioy@public.gmane.org \
--cc=andre.muller-S0/GAf8tV78@public.gmane.org \
--cc=linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=ulf-rS3t9PEbhQ0OIzVOb1FTxg@public.gmane.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.