drm/amdgpu: fix bad DMA from INTERRUPT_CNTL2
authorSam Bobroff <sbobroff@linux.ibm.com>
Sun, 17 Nov 2019 23:53:54 +0000 (10:53 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Dec 2019 15:45:46 +0000 (16:45 +0100)
commit44d40114eecb7b3269258bed65d50bd4d2ce2aef
tree7a74891eec629fd1e98158d4179e9f1b29f1dd24
parent6d98463304f4a23ee6e63e3a7a07f88762f6eaf6
drm/amdgpu: fix bad DMA from INTERRUPT_CNTL2

[ Upstream commit 3d0e3ce52ce3eb4b9de3caf9c38dbb5a4d3e13c3 ]

The INTERRUPT_CNTL2 register expects a valid DMA address, but is
currently set with a GPU MC address.  This can cause problems on
systems that detect the resulting DMA read from an invalid address
(found on a Power8 guest).

Instead, use the DMA address of the dummy page because it will always
be safe.

Fixes: 27ae10641e9c ("drm/amdgpu: add interupt handler implementation for si v3")
Signed-off-by: Sam Bobroff <sbobroff@linux.ibm.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/si_ih.c