mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-13 08:30:18 +00:00
drm/radeon/kms: re-enable gui idle interrupts on r6xx+
Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
f4b7fb94c5
commit
4f3218cbc3
@ -64,17 +64,19 @@ static void radeon_pm_set_clocks(struct radeon_device *rdev, int static_switch)
|
|||||||
mutex_lock(&rdev->ddev->struct_mutex);
|
mutex_lock(&rdev->ddev->struct_mutex);
|
||||||
mutex_lock(&rdev->vram_mutex);
|
mutex_lock(&rdev->vram_mutex);
|
||||||
mutex_lock(&rdev->cp.mutex);
|
mutex_lock(&rdev->cp.mutex);
|
||||||
#if 0
|
|
||||||
/* wait for GPU idle */
|
/* gui idle int has issues on older chips it seems */
|
||||||
rdev->pm.gui_idle = false;
|
if (rdev->family >= CHIP_R600) {
|
||||||
rdev->irq.gui_idle = true;
|
/* wait for GPU idle */
|
||||||
radeon_irq_set(rdev);
|
rdev->pm.gui_idle = false;
|
||||||
wait_event_interruptible_timeout(
|
rdev->irq.gui_idle = true;
|
||||||
rdev->irq.idle_queue, rdev->pm.gui_idle,
|
radeon_irq_set(rdev);
|
||||||
msecs_to_jiffies(RADEON_WAIT_IDLE_TIMEOUT));
|
wait_event_interruptible_timeout(
|
||||||
rdev->irq.gui_idle = false;
|
rdev->irq.idle_queue, rdev->pm.gui_idle,
|
||||||
radeon_irq_set(rdev);
|
msecs_to_jiffies(RADEON_WAIT_IDLE_TIMEOUT));
|
||||||
#endif
|
rdev->irq.gui_idle = false;
|
||||||
|
radeon_irq_set(rdev);
|
||||||
|
}
|
||||||
radeon_unmap_vram_bos(rdev);
|
radeon_unmap_vram_bos(rdev);
|
||||||
|
|
||||||
if (!static_switch) {
|
if (!static_switch) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user