ACPI: APEI: Fix BERT resources conflict with ACPI NVS area
authorHuang Ying <ying.huang@intel.com>
Mon, 20 Feb 2017 01:12:58 +0000 (09:12 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 27 Feb 2017 21:53:11 +0000 (22:53 +0100)
commit41139ac3cd76c6dff8286102a8ac62933c680463
tree8bfa944d00dfd110a542233dc5e571135c644abf
parentd222678426faa5b0a5c14a468f78c32beb089937
ACPI: APEI: Fix BERT resources conflict with ACPI NVS area

It was reported that on some machines, there is overlap between ACPI
NVS area and BERT address range.  This appears reasonable because BERT
contents need to be non-volatile across reboot.  But this will cause
resources conflict in current Linux kernel implementation because the
ACPI NVS area is marked as busy.  The resource conflict is fixed via
excluding the ACPI NVS area when requesting IO resources for BERT.
When accessing the BERT contents, the whole BERT address range will be
ioremapped and accessed.

Reported-and-tested-by: Hans Kristian Rosbach <hansr@raskesider.no>
Signed-off-by: Ying Huang <ying.huang@intel.com>
Acked-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/apei/bert.c