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)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Nov 2019 15:12:54 +0000 (10:12 -0500)
commitb992691d453c1cb16390d21c9f557196d3ab3141
treedcebda904f7f6909da28e53d24c97eff2b3e9b33
parenta542ad9e5de132cbb3e75b89008d44327a0d44d7
drm/amdgpu: fix bad DMA from INTERRUPT_CNTL2

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>
drivers/gpu/drm/amd/amdgpu/si_ih.c