mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02:00
Merge branch 'acpi-apei'
* acpi-apei: (29 commits) efi: cper: Fix possible out-of-bounds access ACPI: APEI: Fix possible out-of-bounds access to BERT region MAINTAINERS: Add James Morse to the list of APEI reviewers ACPI / APEI: Add support for the SDEI GHES Notification type firmware: arm_sdei: Add ACPI GHES registration helper ACPI / APEI: Use separate fixmap pages for arm64 NMI-like notifications ACPI / APEI: Only use queued estatus entry during in_nmi_queue_one_entry() ACPI / APEI: Split ghes_read_estatus() to allow a peek at the CPER length ACPI / APEI: Make GHES estatus header validation more user friendly ACPI / APEI: Pass ghes and estatus separately to avoid a later copy ACPI / APEI: Let the notification helper specify the fixmap slot ACPI / APEI: Move locking to the notification helper arm64: KVM/mm: Move SEA handling behind a single 'claim' interface KVM: arm/arm64: Add kvm_ras.h to collect kvm specific RAS plumbing ACPI / APEI: Switch NOTIFY_SEA to use the estatus queue ACPI / APEI: Move NOTIFY_SEA between the estatus-queue and NOTIFY_NMI ACPI / APEI: Don't allow ghes_ack_error() to mask earlier errors ACPI / APEI: Generalise the estatus queue's notify code ACPI / APEI: Don't update struct ghes' flags in read/clear estatus ACPI / APEI: Remove spurious GHES_TO_CLEAR check ...
This commit is contained in:
@@ -644,8 +644,8 @@ static int error_type_set(void *data, u64 val)
|
||||
return 0;
|
||||
}
|
||||
|
||||
DEFINE_SIMPLE_ATTRIBUTE(error_type_fops, error_type_get,
|
||||
error_type_set, "0x%llx\n");
|
||||
DEFINE_DEBUGFS_ATTRIBUTE(error_type_fops, error_type_get, error_type_set,
|
||||
"0x%llx\n");
|
||||
|
||||
static int error_inject_set(void *data, u64 val)
|
||||
{
|
||||
@@ -656,8 +656,7 @@ static int error_inject_set(void *data, u64 val)
|
||||
error_param3, error_param4);
|
||||
}
|
||||
|
||||
DEFINE_SIMPLE_ATTRIBUTE(error_inject_fops, NULL,
|
||||
error_inject_set, "%llu\n");
|
||||
DEFINE_DEBUGFS_ATTRIBUTE(error_inject_fops, NULL, error_inject_set, "%llu\n");
|
||||
|
||||
static int einj_check_table(struct acpi_table_einj *einj_tab)
|
||||
{
|
||||
@@ -709,10 +708,10 @@ static int __init einj_init(void)
|
||||
|
||||
debugfs_create_file("available_error_type", S_IRUSR, einj_debug_dir,
|
||||
NULL, &available_error_type_fops);
|
||||
debugfs_create_file("error_type", S_IRUSR | S_IWUSR, einj_debug_dir,
|
||||
NULL, &error_type_fops);
|
||||
debugfs_create_file("error_inject", S_IWUSR, einj_debug_dir,
|
||||
NULL, &error_inject_fops);
|
||||
debugfs_create_file_unsafe("error_type", 0600, einj_debug_dir,
|
||||
NULL, &error_type_fops);
|
||||
debugfs_create_file_unsafe("error_inject", 0200, einj_debug_dir,
|
||||
NULL, &error_inject_fops);
|
||||
|
||||
apei_resources_init(&einj_resources);
|
||||
einj_exec_ctx_init(&ctx);
|
||||
|
Reference in New Issue
Block a user