]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon: fix bad DMA from INTERRUPT_CNTL2
authorSam Bobroff <sbobroff@linux.ibm.com>
Sun, 17 Nov 2019 23:53:53 +0000 (10:53 +1100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 22 Nov 2019 19:35:10 +0000 (14:35 -0500)
commit60a8245fdbc8c4b49951d1ab7b3a778622abe411
treebd156d9f711e588081829537e85477d34a3be66c
parente1476455fe66b99d3f1f356cc9130102ddd8179c
drm/radeon: 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: 822d7a552516 ("drm/radeon/kms: Add support for interrupts on r6xx/r7xx chips (v3)")
Fixes: a236e06517c4 ("drm/radeon/kms: add support for interrupts on SI")
Fixes: 10d4e4fd8838 ("drm/radeon: add support for interrupts on CIK (v5)")
Signed-off-by: Sam Bobroff <sbobroff@linux.ibm.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/cik.c
drivers/gpu/drm/radeon/r600.c
drivers/gpu/drm/radeon/si.c