drm/radeon: save/restore the PD addr on suspend/resume
This fixes a problem with GPU resets and TLB flushes on SI/CIK. Signed-off-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:

committed by
Alex Deucher

parent
a284e9d14e
commit
054e01d681
@@ -1271,7 +1271,7 @@ static int cayman_pcie_gart_enable(struct radeon_device *rdev)
|
||||
WREG32(VM_CONTEXT0_PAGE_TABLE_START_ADDR + (i << 2), 0);
|
||||
WREG32(VM_CONTEXT0_PAGE_TABLE_END_ADDR + (i << 2), rdev->vm_manager.max_pfn);
|
||||
WREG32(VM_CONTEXT0_PAGE_TABLE_BASE_ADDR + (i << 2),
|
||||
rdev->gart.table_addr >> 12);
|
||||
rdev->vm_manager.saved_table_addr[i]);
|
||||
}
|
||||
|
||||
/* enable context1-7 */
|
||||
@@ -1303,6 +1303,13 @@ static int cayman_pcie_gart_enable(struct radeon_device *rdev)
|
||||
|
||||
static void cayman_pcie_gart_disable(struct radeon_device *rdev)
|
||||
{
|
||||
unsigned i;
|
||||
|
||||
for (i = 1; i < 8; ++i) {
|
||||
rdev->vm_manager.saved_table_addr[i] = RREG32(
|
||||
VM_CONTEXT0_PAGE_TABLE_BASE_ADDR + (i << 2));
|
||||
}
|
||||
|
||||
/* Disable all tables */
|
||||
WREG32(VM_CONTEXT0_CNTL, 0);
|
||||
WREG32(VM_CONTEXT1_CNTL, 0);
|
||||
|
Reference in New Issue
Block a user