drm/radeon: Update IH_RB_RPTR register after each processed interrupt
Subsystems (2)
PATCH 1/1 drm/radeon: Update IH_RB_RPTR register after each processed interrupt
From: Michel Dänzer <[email protected]>
This might decrease the chance of IH ring buffer overflows.
Signed-off-by Michel Dänzer <[email protected]>
---
I think this patch should wait for after 3.17.
drivers/gpu/drm/radeon/cik.c | 2 +- drivers/gpu/drm/radeon/evergreen.c | 2 +- drivers/gpu/drm/radeon/r600.c | 2 +- drivers/gpu/drm/radeon/si.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/radeon/cik.c +1 -1
@@ -8251,6 +8251,7 @@ restart_ih:/* wptr/rptr are in bytes! */ rptr +=16 ; rptr &= rdev->ih.ptr_mask; +WREG32 (IH_RB_RPTR , rptr); }if (queue_hotplug)schedule_work (&rdev->hotplug_work);
@@ -8259,7 +8260,6 @@ restart_ih:if (queue_thermal)schedule_work (&rdev->pm.dpm.thermal.work); rdev->ih.rptr = rptr; -WREG32 (IH_RB_RPTR , rdev->ih.rptr);atomic_set (&rdev->ih.lock,0 );/* make sure wptr hasn't changed while processing */
drivers/gpu/drm/radeon/evergreen.c +1 -1
@@ -5137,6 +5137,7 @@ restart_ih:/* wptr/rptr are in bytes! */ rptr +=16 ; rptr &= rdev->ih.ptr_mask; +WREG32 (IH_RB_RPTR , rptr); }if (queue_hotplug)schedule_work (&rdev->hotplug_work);
@@ -5145,7 +5146,6 @@ restart_ih:if (queue_thermal && rdev->pm.dpm_enabled)schedule_work (&rdev->pm.dpm.thermal.work); rdev->ih.rptr = rptr; -WREG32 (IH_RB_RPTR , rdev->ih.rptr);atomic_set (&rdev->ih.lock,0 );/* make sure wptr hasn't changed while processing */
drivers/gpu/drm/radeon/r600.c +1 -1
@@ -4058,6 +4058,7 @@ restart_ih:/* wptr/rptr are in bytes! */ rptr +=16 ; rptr &= rdev->ih.ptr_mask; +WREG32 (IH_RB_RPTR , rptr); }if (queue_hotplug)schedule_work (&rdev->hotplug_work);
@@ -4066,7 +4067,6 @@ restart_ih:if (queue_thermal && rdev->pm.dpm_enabled)schedule_work (&rdev->pm.dpm.thermal.work); rdev->ih.rptr = rptr; -WREG32 (IH_RB_RPTR , rdev->ih.rptr);atomic_set (&rdev->ih.lock,0 );/* make sure wptr hasn't changed while processing */
drivers/gpu/drm/radeon/si.c +1 -1
@@ -6665,13 +6665,13 @@ restart_ih:/* wptr/rptr are in bytes! */ rptr +=16 ; rptr &= rdev->ih.ptr_mask; +WREG32 (IH_RB_RPTR , rptr); }if (queue_hotplug)schedule_work (&rdev->hotplug_work);if (queue_thermal && rdev->pm.dpm_enabled)schedule_work (&rdev->pm.dpm.thermal.work); rdev->ih.rptr = rptr; -WREG32 (IH_RB_RPTR , rdev->ih.rptr);atomic_set (&rdev->ih.lock,0 );/* make sure wptr hasn't changed while processing */
Signature · 6 lines
2.1.0 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel