Lines Matching +full:console +full:- +full:size
1 // SPDX-License-Identifier: GPL-2.0-only
3 * ARM64 Specific Low-Level ACPI Boot Support
5 * Copyright (C) 2013-2014, Linaro Ltd.
16 #include <linux/arm-smccc.h>
19 #include <linux/efi-bgrt.h>
54 return -EINVAL; in parse_acpi()
63 else if (strcmp(arg, "nospcr") == 0) /* disable SPCR as default console */ in parse_acpi()
66 return -EINVAL; /* Core will print when we return error */ in parse_acpi()
94 void __init __iomem *__acpi_map_table(unsigned long phys, unsigned long size) in __acpi_map_table() argument
96 if (!size) in __acpi_map_table()
99 return early_memremap(phys, size); in __acpi_map_table()
102 void __init __acpi_unmap_table(void __iomem *map, unsigned long size) in __acpi_unmap_table() argument
104 if (!map || !size) in __acpi_unmap_table()
107 early_memunmap(map, size); in __acpi_unmap_table()
122 * acpi_fadt_sanity_check() - Check FADT presence and carry out sanity
143 return -ENODEV; in acpi_fadt_sanity_check()
154 if (table->revision < 5 || in acpi_fadt_sanity_check()
155 (table->revision == 5 && fadt->minor_revision < 1)) { in acpi_fadt_sanity_check()
157 table->revision, fadt->minor_revision); in acpi_fadt_sanity_check()
159 if (!fadt->arm_boot_flags) { in acpi_fadt_sanity_check()
160 ret = -EINVAL; in acpi_fadt_sanity_check()
166 if (!(fadt->flags & ACPI_FADT_HW_REDUCED)) { in acpi_fadt_sanity_check()
168 ret = -EINVAL; in acpi_fadt_sanity_check()
187 * We can parse ACPI boot-time tables such as MADT after
192 * - ACPI tables are initialized and sanity checks passed
193 * - acpi=force was passed in the command line and ACPI was not disabled
204 * - ACPI has been disabled explicitly (acpi=off), or in acpi_boot_table_init()
205 * - the device tree is not empty (it has more than just a /chosen node, in acpi_boot_table_init()
242 ((struct acpi_table_facs *)facs)->hardware_signature; in acpi_boot_table_init()
249 * to completely silence the serial console output, and only in acpi_boot_table_init()
252 * behaviour, use acpi=nospcr to disable console in ACPI SPCR in acpi_boot_table_init()
253 * table as default serial console. in acpi_boot_table_init()
258 pr_info("Use ACPI SPCR as default console: No\n"); in acpi_boot_table_init()
260 pr_info("Use ACPI SPCR as default console: Yes\n"); in acpi_boot_table_init()
270 * Although UEFI specifies the use of Normal Write-through for in __acpi_get_writethrough_mem_attribute()
273 * purpose, emit a warning and use Normal Non-cacheable instead. in __acpi_get_writethrough_mem_attribute()
275 pr_warn_once("No MAIR allocation for EFI_MEMORY_WT; treating as Normal Non-cacheable\n"); in __acpi_get_writethrough_mem_attribute()
301 void __iomem *acpi_os_ioremap(acpi_physical_address phys, acpi_size size) in acpi_os_ioremap() argument
310 u64 end = md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT); in acpi_os_ioremap()
312 if (phys < md->phys_addr || phys >= end) in acpi_os_ioremap()
315 if (phys + size > end) { in acpi_os_ioremap()
331 switch (region->type) { in acpi_os_ioremap()
339 !memblock_is_region_memory(phys, size)) { in acpi_os_ioremap()
368 * as read-only. in acpi_os_ioremap()
388 if (region->attribute & EFI_MEMORY_WB) in acpi_os_ioremap()
390 else if (region->attribute & EFI_MEMORY_WC) in acpi_os_ioremap()
392 else if (region->attribute & EFI_MEMORY_WT) in acpi_os_ioremap()
396 return ioremap_prot(phys, size, prot); in acpi_os_ioremap()
407 int err = -ENOENT; in apei_claim_sea()
432 * APEI NMI-like notifications are deferred to irq_work. Unless in apei_claim_sea()
433 * we interrupted irqs-masked code, we can do that now. in apei_claim_sea()
443 err = -EINPROGRESS; in apei_claim_sea()
452 void arch_reserve_mem_area(acpi_physical_address addr, size_t size) in arch_reserve_mem_area() argument
454 memblock_mark_nomap(addr, size); in arch_reserve_mem_area()