drivers: firmware: psci: Use __pa_symbol for cpu_resume
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 24 Jan 2017 15:30:19 +0000 (16:30 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 26 Jan 2017 12:15:07 +0000 (12:15 +0000)
commit1c33dc1015be482ca1a248981698d75369ce8cdc
treebd70d9f857060f79a4176703de303ed86f57dbdb
parentcbb999dd0b452991f4f698142aa7ffe566c0b415
drivers: firmware: psci: Use __pa_symbol for cpu_resume

If CONFIG_DEBUG_VIRTUAL=y, during s2ram:

    virt_to_phys used for non-linear address: ffffff80085db280 (cpu_resume+0x0/0x20)
    ------------[ cut here ]------------
    WARNING: CPU: 0 PID: 1628 at arch/arm64/mm/physaddr.c:14 __virt_to_phys+0x28/0x60
    ...
    [<ffffff800809abb4>] __virt_to_phys+0x28/0x60
    [<ffffff80084a0c38>] psci_system_suspend+0x20/0x44
    [<ffffff8008095b28>] cpu_suspend+0x3c/0x68
    [<ffffff80084a0b48>] psci_system_suspend_enter+0x18/0x20
    [<ffffff80080ea3e0>] suspend_devices_and_enter+0x3f8/0x7e8
    [<ffffff80080ead14>] pm_suspend+0x544/0x5f4

Fixes: 1a08e3d9e0ac4577 ("drivers: firmware: psci: Use __pa_symbol for kernel symbol")
Acked-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/firmware/psci.c