]> git.openpandora.org Git - pandora-kernel.git/commitdiff
drm/radeon: drop doing resets in a work item
authorChristian König <christian.koenig@amd.com>
Wed, 27 Aug 2014 13:22:01 +0000 (15:22 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 27 Aug 2014 21:42:13 +0000 (17:42 -0400)
Blocking completely innocent processes with a GPU reset is
a pretty bad idea. Just set needs_reset and let the next
command submission or fence wait do the job.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/cik.c
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_device.c
drivers/gpu/drm/radeon/radeon_irq_kms.c

index 79a5a5519bd67131233508b99d0f11add8b48240..1f598ab3b9a7046aa2bdac07471b399e0ce246fc 100644 (file)
@@ -8246,8 +8246,10 @@ restart_ih:
        }
        if (queue_hotplug)
                schedule_work(&rdev->hotplug_work);
-       if (queue_reset)
-               schedule_work(&rdev->reset_work);
+       if (queue_reset) {
+               rdev->needs_reset = true;
+               wake_up_all(&rdev->fence_queue);
+       }
        if (queue_thermal)
                schedule_work(&rdev->pm.dpm.thermal.work);
        rdev->ih.rptr = rptr;
Simple merge