ACPI: Fix bug when ACPI reset register is implemented in system memory
authorRandy Wright <rwright@hp.com>
Wed, 4 Jun 2014 15:55:59 +0000 (08:55 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 5 Jun 2014 12:36:40 +0000 (14:36 +0200)
commita4714a898e85205e1118ec923cde43d88eb105f6
tree17f3011a638e8c17f6df28d608dc6cf0647128f7
parent72013795a73f8536d3346fa90379c987bcad0cc8
ACPI: Fix bug when ACPI reset register is implemented in system memory

Use acpi_os_map_generic_address to pre-map the reset register if it is
memory mapped, thereby preventing the BUG_ON() in line 1319 of
mm/vmalloc.c from triggering during panic-triggered reboots.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=77131
Signed-off-by: Randy Wright <rwright@hp.com>
Signed-off-by: David E. Box <david.e.box@linux.intel.com>
[rjw: Changelog, simplified code]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/osl.c