Skip to content

Commit

Permalink
drm/radeon: restore modeset late in GPU reset path
Browse files Browse the repository at this point in the history
Modeset path seems to conflict sometimes with the memory management
leading to kernel deadlock. This move modesetting reset after GPU
acceleration reset.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
  • Loading branch information
Jerome Glisse authored and Alex Deucher committed Dec 19, 2012
1 parent 5f8f635 commit d349357
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/gpu/drm/radeon/radeon_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -1347,7 +1347,6 @@ int radeon_gpu_reset(struct radeon_device *rdev)
}

radeon_restore_bios_scratch_regs(rdev);
drm_helper_resume_force_mode(rdev->ddev);

if (!r) {
for (i = 0; i < RADEON_NUM_RINGS; ++i) {
Expand All @@ -1373,6 +1372,8 @@ int radeon_gpu_reset(struct radeon_device *rdev)
}
}

drm_helper_resume_force_mode(rdev->ddev);

ttm_bo_unlock_delayed_workqueue(&rdev->mman.bdev, resched);
if (r) {
/* bad news, how to tell it to userspace ? */
Expand Down

0 comments on commit d349357

Please sign in to comment.