diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2013-10-02 20:50:57 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2013-10-09 23:13:49 +0200 |
commit | a6f4ae8dc904ad0e4e416800172fc88f716314dd (patch) | |
tree | 57dea39f5bdeaa264c597c0275486d5b2ad4ee5a /drivers/gpu | |
parent | drm/radeon/dpm: off by one in si_set_mc_special_registers() (diff) | |
download | linux-a6f4ae8dc904ad0e4e416800172fc88f716314dd.tar.xz linux-a6f4ae8dc904ad0e4e416800172fc88f716314dd.zip |
drm/radeon: improve soft reset on SI
Disable CG/PG and stop the rlc before resetting.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/radeon/si.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/si.c b/drivers/gpu/drm/radeon/si.c index c354c1094967..d4652af425b8 100644 --- a/drivers/gpu/drm/radeon/si.c +++ b/drivers/gpu/drm/radeon/si.c @@ -85,6 +85,9 @@ extern void si_dma_vm_set_page(struct radeon_device *rdev, uint32_t incr, uint32_t flags); static void si_enable_gui_idle_interrupt(struct radeon_device *rdev, bool enable); +static void si_fini_pg(struct radeon_device *rdev); +static void si_fini_cg(struct radeon_device *rdev); +static void si_rlc_stop(struct radeon_device *rdev); static const u32 verde_rlc_save_restore_register_list[] = { @@ -3608,6 +3611,13 @@ static void si_gpu_soft_reset(struct radeon_device *rdev, u32 reset_mask) dev_info(rdev->dev, " VM_CONTEXT1_PROTECTION_FAULT_STATUS 0x%08X\n", RREG32(VM_CONTEXT1_PROTECTION_FAULT_STATUS)); + /* disable PG/CG */ + si_fini_pg(rdev); + si_fini_cg(rdev); + + /* stop the rlc */ + si_rlc_stop(rdev); + /* Disable CP parsing/prefetching */ WREG32(CP_ME_CNTL, CP_ME_HALT | CP_PFP_HALT | CP_CE_HALT); |