-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branches 'acpi-scan', 'acpi-bus', 'acpi-tables' and 'acpi-sysfs'
Merge ACPI changes related to device enumeration, device object managenet, operation region handling, table parsing and sysfs interface: - Use ZERO_PAGE(0) instead of empty_zero_page in the ACPI device enumeration code (Giulio Benetti). - Change the return type of the ACPI driver remove callback to void and update its users accordingly (Dawei Li). - Add general support for FFH address space type and implement the low- level part of it for ARM64 (Sudeep Holla). - Fix stale comments in the ACPI tables parsing code and make it print more messages related to MADT (Hanjun Guo, Huacai Chen). - Replace invocations of generic library functions with more kernel- specific counterparts in the ACPI sysfs interface (Christophe JAILLET, Xu Panda). * acpi-scan: ACPI: scan: substitute empty_zero_page with helper ZERO_PAGE(0) * acpi-bus: ACPI: FFH: Silence missing prototype warnings ACPI: make remove callback of ACPI driver void ACPI: bus: Fix the _OSC capability check for FFH OpRegion arm64: Add architecture specific ACPI FFH Opregion callbacks ACPI: Implement a generic FFH Opregion handler * acpi-tables: ACPI: tables: Fix the stale comments for acpi_locate_initial_tables() ACPI: tables: Print CORE_PIC information when MADT is parsed * acpi-sysfs: ACPI: sysfs: use sysfs_emit() to instead of scnprintf() ACPI: sysfs: Use kstrtobool() instead of strtobool()
- Loading branch information
Showing
57 changed files
with
291 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// SPDX-License-Identifier: GPL-2.0-only | ||
/* | ||
* Author: Sudeep Holla <sudeep.holla@arm.com> | ||
* Copyright 2022 Arm Limited | ||
*/ | ||
#include <linux/kernel.h> | ||
#include <linux/acpi.h> | ||
#include <linux/completion.h> | ||
#include <linux/idr.h> | ||
#include <linux/io.h> | ||
|
||
#include <linux/arm-smccc.h> | ||
|
||
static struct acpi_ffh_info ffh_ctx; | ||
|
||
int __weak acpi_ffh_address_space_arch_setup(void *handler_ctxt, | ||
void **region_ctxt) | ||
{ | ||
return -EOPNOTSUPP; | ||
} | ||
|
||
int __weak acpi_ffh_address_space_arch_handler(acpi_integer *value, | ||
void *region_context) | ||
{ | ||
return -EOPNOTSUPP; | ||
} | ||
|
||
static acpi_status | ||
acpi_ffh_address_space_setup(acpi_handle region_handle, u32 function, | ||
void *handler_context, void **region_context) | ||
{ | ||
return acpi_ffh_address_space_arch_setup(handler_context, | ||
region_context); | ||
} | ||
|
||
static acpi_status | ||
acpi_ffh_address_space_handler(u32 function, acpi_physical_address addr, | ||
u32 bits, acpi_integer *value, | ||
void *handler_context, void *region_context) | ||
{ | ||
return acpi_ffh_address_space_arch_handler(value, region_context); | ||
} | ||
|
||
void __init acpi_init_ffh(void) | ||
{ | ||
acpi_status status; | ||
|
||
status = acpi_install_address_space_handler(ACPI_ROOT_OBJECT, | ||
ACPI_ADR_SPACE_FIXED_HARDWARE, | ||
&acpi_ffh_address_space_handler, | ||
&acpi_ffh_address_space_setup, | ||
&ffh_ctx); | ||
if (ACPI_FAILURE(status)) | ||
pr_alert("OperationRegion handler could not be installed\n"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.