]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI, APEI, EINJ: Subtract any matching Register Region from Trigger resources
authorYazen Ghannam <yazen.ghannam@amd.com>
Mon, 28 Aug 2017 18:13:14 +0000 (13:13 -0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 28 Aug 2017 22:32:49 +0000 (00:32 +0200)
commit1745fa1d18545865b09d389602d23bb7cbd67f63
tree87da574bafe31d2d7efb89b8034c91d97386f904
parent4aa49a9bb10873e2e84911bb6dd0e834aa2c5dd6
ACPI, APEI, EINJ: Subtract any matching Register Region from Trigger resources

ACPI defines a number of instructions to use for triggering errors. However
we are currently removing the address resources from the trigger resources
for only the WRITE_REGISTER_VALUE instruction. This leads to a resource
conflict for any other valid instruction.

Check that the instruction is less than or equal to the
WRITE_REGISTER_VALUE instruction. This allows all valid memory access
instructions and protects against invalid instructions.

Fixes: ddf06372d93c (ACPI, APEI, EINJ, Refine the fix of resource conflict)
Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Acked-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/apei/einj.c