Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1213871 > unrolled thread
| Started by | Leif Lindholm <leif.lindholm@linaro.org> |
|---|---|
| First post | 2015-08-26 15:30 +0200 |
| Last post | 2015-08-26 15:50 +0200 |
| Articles | 4 — 3 participants |
Back to article view | Back to linux.kernel
[PATCH 0/3] unify efi debug output across architectures Leif Lindholm <leif.lindholm@linaro.org> - 2015-08-26 15:30 +0200
[PATCH 1/3] efi/x86: move efi=debug option parsing to core Leif Lindholm <leif.lindholm@linaro.org> - 2015-08-26 15:30 +0200
Re: [PATCH 1/3] efi/x86: move efi=debug option parsing to core Matt Fleming <matt@codeblueprint.co.uk> - 2015-08-26 19:30 +0200
Re: [PATCH 0/3] unify efi debug output across architectures Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2015-08-26 15:50 +0200
| From | Leif Lindholm <leif.lindholm@linaro.org> |
|---|---|
| Date | 2015-08-26 15:30 +0200 |
| Subject | [PATCH 0/3] unify efi debug output across architectures |
| Message-ID | <q1IW5-6Yn-3@gated-at.bofh.it> |
efi didn't use to have much in the way of kernel command line options, until some point last year. Then once the efi= option was added, it has been expanded on. x86 had an efi=debug option added, but that would be a useful thing across all efi architectures. arm64 efi support (predating efi=debug) came with its own 'uefi_debug' option, and passed along a special verbosity flag when calling into some not-strictly-arch-specific functions in core efi code. So: - Move efi=debug into core code, to be usable by all architectures - Change arm64 efi code to use 'efi=debug' instead of 'uefi_debug' - Rework arm64 interface to core code to drop special verbosity flag Leif Lindholm (3): efi/x86: move efi=debug option parsing to core arm64: use core efi=debug instead of uefi_debug command line parameter efi/arm64: clean up efi_get_fdt_params() interface Documentation/arm/uefi.txt | 2 -- arch/arm64/kernel/efi.c | 19 +++++-------------- arch/x86/platform/efi/efi.c | 2 -- drivers/firmware/efi/efi.c | 9 +++++---- include/linux/efi.h | 2 +- 5 files changed, 11 insertions(+), 23 deletions(-) -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Leif Lindholm <leif.lindholm@linaro.org> |
|---|---|
| Date | 2015-08-26 15:30 +0200 |
| Subject | [PATCH 1/3] efi/x86: move efi=debug option parsing to core |
| Message-ID | <q1IW6-6Yn-33@gated-at.bofh.it> |
| In reply to | #1213871 |
fed6cefe3b6e ("x86/efi: Add a "debug" option to the efi= cmdline")
adds the DBG flag, but does so for x86 only. Move this early param
parsing to core code.
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
---
arch/x86/platform/efi/efi.c | 2 --
drivers/firmware/efi/efi.c | 3 +++
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/x86/platform/efi/efi.c b/arch/x86/platform/efi/efi.c
index e4308fe..9757b79 100644
--- a/arch/x86/platform/efi/efi.c
+++ b/arch/x86/platform/efi/efi.c
@@ -979,8 +979,6 @@ static int __init arch_parse_efi_cmdline(char *str)
if (parse_option_str(str, "old_map"))
set_bit(EFI_OLD_MEMMAP, &efi.flags);
- if (parse_option_str(str, "debug"))
- set_bit(EFI_DBG, &efi.flags);
return 0;
}
diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c
index d6144e3..78de0bd 100644
--- a/drivers/firmware/efi/efi.c
+++ b/drivers/firmware/efi/efi.c
@@ -63,6 +63,9 @@ static int __init parse_efi_cmdline(char *str)
return -EINVAL;
}
+ if (parse_option_str(str, "debug"))
+ set_bit(EFI_DBG, &efi.flags);
+
if (parse_option_str(str, "noruntime"))
disable_runtime = true;
--
2.1.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Matt Fleming <matt@codeblueprint.co.uk> |
|---|---|
| Date | 2015-08-26 19:30 +0200 |
| Subject | Re: [PATCH 1/3] efi/x86: move efi=debug option parsing to core |
| Message-ID | <q1MGl-3Vq-13@gated-at.bofh.it> |
| In reply to | #1213874 |
On Wed, 26 Aug, at 02:24:56PM, Leif Lindholm wrote:
> fed6cefe3b6e ("x86/efi: Add a "debug" option to the efi= cmdline")
> adds the DBG flag, but does so for x86 only. Move this early param
> parsing to core code.
>
> Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
> ---
> arch/x86/platform/efi/efi.c | 2 --
> drivers/firmware/efi/efi.c | 3 +++
> 2 files changed, 3 insertions(+), 2 deletions(-)
Nice clean up. Thanks Leif, applied.
--
Matt Fleming, Intel Open Source Technology Center
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Ard Biesheuvel <ard.biesheuvel@linaro.org> |
|---|---|
| Date | 2015-08-26 15:50 +0200 |
| Message-ID | <q1Jfr-7l6-1@gated-at.bofh.it> |
| In reply to | #1213871 |
On 26 August 2015 at 15:24, Leif Lindholm <leif.lindholm@linaro.org> wrote: > efi didn't use to have much in the way of kernel command line options, > until some point last year. Then once the efi= option was added, it has > been expanded on. > > x86 had an efi=debug option added, but that would be a useful thing > across all efi architectures. > > arm64 efi support (predating efi=debug) came with its own 'uefi_debug' > option, and passed along a special verbosity flag when calling into > some not-strictly-arch-specific functions in core efi code. > > So: > - Move efi=debug into core code, to be usable by all architectures > - Change arm64 efi code to use 'efi=debug' instead of 'uefi_debug' > - Rework arm64 interface to core code to drop special verbosity flag > For the series: Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> > Leif Lindholm (3): > efi/x86: move efi=debug option parsing to core > arm64: use core efi=debug instead of uefi_debug command line parameter > efi/arm64: clean up efi_get_fdt_params() interface > > Documentation/arm/uefi.txt | 2 -- > arch/arm64/kernel/efi.c | 19 +++++-------------- > arch/x86/platform/efi/efi.c | 2 -- > drivers/firmware/efi/efi.c | 9 +++++---- > include/linux/efi.h | 2 +- > 5 files changed, 11 insertions(+), 23 deletions(-) > > -- > 2.1.4 > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web