• Jia He's avatar
    Revert "ACPI: Add memory semantics to acpi_os_map_memory()" · 12064c17
    Jia He authored
    This reverts commit 437b38c5.
    
    The memory semantics added in commit 437b38c5 causes SystemMemory
    Operation region, whose address range is not described in the EFI memory
    map to be mapped as NormalNC memory on arm64 platforms (through
    acpi_os_map_memory() in acpi_ex_system_memory_space_handler()).
    
    This triggers the following abort on an ARM64 Ampere eMAG machine,
    because presumably the physical address range area backing the Opregion
    does not support NormalNC memory attributes driven on the bus.
    
     Internal error: synchronous external abort: 96000410 [#1] SMP
     Modules linked in:
     CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.14.0+ #462
     Hardware name: MiTAC RAPTOR EV-883832-X3-0001/RAPTOR, BIOS 0.14 02/22/2019
     pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
    [...snip...]
     Call trace:
      acpi_ex_system_memory_space_handler+0x26c/0x2c8
      acpi_ev_address_space_dispatch+0x228/0x2c4
      acpi_ex_access_regi...
    12064c17
acpi_io.h 723 Bytes