Lines Matching +full:riscv +full:- +full:v +full:- +full:spec
1 // SPDX-License-Identifier: GPL-2.0-only
3 * RISC-V Specific Low-Level ACPI Boot Support
5 * Copyright (C) 2013-2014, Linaro Ltd.
12 * Copyright (C) 2021-2023, Ventana Micro Systems Inc.
13 * Author: Sunil V L <sunilvl@ventanamicro.com>
37 return -EINVAL; in parse_acpi()
47 return -EINVAL; /* Core will print when we return error */ in parse_acpi()
54 * acpi_fadt_sanity_check() - Check FADT presence and carry out sanity
67 * FADT is required on riscv; retrieve it to check its presence in acpi_fadt_sanity_check()
75 return -ENODEV; in acpi_fadt_sanity_check()
85 * for HW_REDUCED flag. However, once RISC-V updates are released in in acpi_fadt_sanity_check()
86 * the ACPI spec, we need to update this check for exact minor revision in acpi_fadt_sanity_check()
88 if (table->revision < 6 || (table->revision == 6 && fadt->minor_revision < 5)) in acpi_fadt_sanity_check()
90 table->revision, fadt->minor_revision); in acpi_fadt_sanity_check()
92 if (!(fadt->flags & ACPI_FADT_HW_REDUCED)) { in acpi_fadt_sanity_check()
94 ret = -EINVAL; in acpi_fadt_sanity_check()
111 * We can parse ACPI boot-time tables such as MADT after
116 * - ACPI tables are initialized and sanity checks passed
117 * - acpi=force was passed in the command line and ACPI was not disabled
126 * - ACPI has been disabled explicitly (acpi=off), or in acpi_boot_table_init()
127 * - firmware has not populated ACPI ptr in EFI system table in acpi_boot_table_init()
160 if (!(rintc->flags & ACPI_MADT_ENABLED)) in acpi_parse_madt_rintc()
163 cpuid = riscv_hartid_to_cpuid(rintc->hart_id); in acpi_parse_madt_rintc()
195 return acpi_cpu_get_madt_rintc(cpu)->uid; in get_acpi_id_for_cpu()
228 * controller support is added in RISC-V ACPI.
244 return -1; in acpi_pci_bus_find_domain_nr()