Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228595
b: refs/heads/master
c: 937c347
h: refs/heads/master
i:
  228593: 44bd362
  228591: e6d69ef
v: v3
  • Loading branch information
Francisco Jerez committed Dec 8, 2010
1 parent 2a83b3a commit 4f066b2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a8b214f007e299225d3fcf10c46f7fc603c275fa
refs/heads/master: 937c3471cc8b7ef8f9e382d9e4ec232db151ea7b
19 changes: 11 additions & 8 deletions trunk/drivers/gpu/drm/nouveau/nouveau_fence.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,17 @@ nouveau_fence_update(struct nouveau_channel *chan)

spin_lock(&chan->fence.lock);

if (USE_REFCNT(dev))
sequence = nvchan_rd32(chan, 0x48);
else
sequence = atomic_read(&chan->fence.last_sequence_irq);

if (chan->fence.sequence_ack == sequence)
goto out;
chan->fence.sequence_ack = sequence;
/* Fetch the last sequence if the channel is still up and running */
if (likely(!list_empty(&chan->fence.pending))) {
if (USE_REFCNT(dev))
sequence = nvchan_rd32(chan, 0x48);
else
sequence = atomic_read(&chan->fence.last_sequence_irq);

if (chan->fence.sequence_ack == sequence)
goto out;
chan->fence.sequence_ack = sequence;
}

list_for_each_entry_safe(fence, tmp, &chan->fence.pending, entry) {
sequence = fence->sequence;
Expand Down

0 comments on commit 4f066b2

Please sign in to comment.