Skip to content

Commit

Permalink
arm64: Use core efi=debug instead of uefi_debug command line parameter
Browse files Browse the repository at this point in the history
Now that we have an efi=debug command line option in the core code, use
this instead of the arm64-specific uefi_debug option.

Signed-off-by: Leif Lindholm <[email protected]>
Acked-by: Ard Biesheuvel <[email protected]>
Tested-by: Ard Biesheuvel <[email protected]>
Cc: Mark Salter <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: Will Deacon <[email protected]>
Signed-off-by: Matt Fleming <[email protected]>
  • Loading branch information
Leif Lindholm authored and Matt Fleming committed Oct 12, 2015
1 parent 12dd00e commit c9494dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
2 changes: 0 additions & 2 deletions Documentation/arm/uefi.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,3 @@ linux,uefi-mmap-desc-ver | 32-bit | Version of the mmap descriptor format.
--------------------------------------------------------------------------------
linux,uefi-stub-kern-ver | string | Copy of linux_banner from build.
--------------------------------------------------------------------------------

For verbose debug messages, specify 'uefi_debug' on the kernel command line.
19 changes: 5 additions & 14 deletions arch/arm64/kernel/efi.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,6 @@ static struct mm_struct efi_mm = {
INIT_MM_CONTEXT(efi_mm)
};

static int uefi_debug __initdata;
static int __init uefi_debug_setup(char *str)
{
uefi_debug = 1;

return 0;
}
early_param("uefi_debug", uefi_debug_setup);

static int __init is_normal_ram(efi_memory_desc_t *md)
{
if (md->attribute & EFI_MEMORY_WB)
Expand Down Expand Up @@ -171,14 +162,14 @@ static __init void reserve_regions(void)
efi_memory_desc_t *md;
u64 paddr, npages, size;

if (uefi_debug)
if (efi_enabled(EFI_DBG))
pr_info("Processing EFI memory map:\n");

for_each_efi_memory_desc(&memmap, md) {
paddr = md->phys_addr;
npages = md->num_pages;

if (uefi_debug) {
if (efi_enabled(EFI_DBG)) {
char buf[64];

pr_info(" 0x%012llx-0x%012llx %s",
Expand All @@ -194,11 +185,11 @@ static __init void reserve_regions(void)

if (is_reserve_region(md)) {
memblock_reserve(paddr, size);
if (uefi_debug)
if (efi_enabled(EFI_DBG))
pr_cont("*");
}

if (uefi_debug)
if (efi_enabled(EFI_DBG))
pr_cont("\n");
}

Expand All @@ -210,7 +201,7 @@ void __init efi_init(void)
struct efi_fdt_params params;

/* Grab UEFI information placed in FDT by stub */
if (!efi_get_fdt_params(&params, uefi_debug))
if (!efi_get_fdt_params(&params, efi_enabled(EFI_DBG)))
return;

efi_system_table = params.system_table;
Expand Down

0 comments on commit c9494dc

Please sign in to comment.