History

Merge branch 'drm-fixes-3.10' of git://people.freedesktop.org/~agd5f/linux into drm-fixes

One user visible fix to stop misreport GPU hangs and subsequent resets. * 'drm-fixes-3.10' of git://people.freedesktop.org/~agd5f/linux: drm/radeon: update lockup tracking when scheduling in empty ring

Dave Airlie committed 13 years ago

Commit 9aa36872 parents 784a4d5 8444d5c1 file · +7 −0Browse files

Unified · Split

drivers/gpu/drm/radeon/radeon_ring.c+7−0
@@ -402,6 +402,13 @@ int radeon_ring_alloc(struct radeon_device *rdev, struct radeon_ring *ring, unsi · 401 unmodified lines
402402 return -ENOMEM;
403403 /* Align requested size with padding so unlock_commit can
404404 * pad safely */
405+ radeon_ring_free_size(rdev, ring);
406+ if (ring->ring_free_dw == (ring->ring_size / 4)) {
407+ /* This is an empty ring update lockup info to avoid
408+ * false positive.
409+ */
410+ radeon_ring_lockup_update(ring);
411+ }
405412 ndw = (ndw + ring->align_mask) & ~ring->align_mask;
406413 while (ndw > (ring->ring_free_dw - 1)) {
407414 radeon_ring_free_size(rdev, ring);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t