]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: APEI: Fix _EINJ vs EFI_MEMORY_SP
authorDan Williams <dan.j.williams@intel.com>
Fri, 24 Jun 2022 23:05:26 +0000 (16:05 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 29 Jun 2022 18:24:19 +0000 (20:24 +0200)
commitb13a3e5fd40b7d1b394c5ecbb5eb301a4c38e7b2
treef81b7a3fcd5eda532e9d5956f1d3520a28ffe23f
parentc3481b6b75b4797657838f44028fd28226ab48e0
ACPI: APEI: Fix _EINJ vs EFI_MEMORY_SP

When a platform marks a memory range as "special purpose" it is not
onlined as System RAM by default. However, it is still suitable for
error injection. Add IORES_DESC_SOFT_RESERVED to einj_error_inject() as
a permissible memory type in the sanity checking of the arguments to
_EINJ.

Fixes: 262b45ae3ab4 ("x86/efi: EFI soft reservation to E820 enumeration")
Reviewed-by: Tony Luck <tony.luck@intel.com>
Reported-by: Omar Avelar <omar.avelar@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/apei/einj.c