Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228559
b: refs/heads/master
c: e419cf0
h: refs/heads/master
i:
  228557: bb7437e
  228555: a97bd8d
  228551: bba2c2c
  228543: f9069dd
v: v3
  • Loading branch information
Francisco Jerez authored and Ben Skeggs committed Dec 3, 2010
1 parent f7cd490 commit ee417dd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 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: 1f6d2de2c539df6fe52ad2187191a9dfe10c7233
refs/heads/master: e419cf0954901bb3a987f8b76cbc9654ca06121c
2 changes: 1 addition & 1 deletion trunk/drivers/gpu/drm/nouveau/nouveau_bo.c
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ nouveau_bo_move_m2mf(struct ttm_buffer_object *bo, int evict, bool intr,
chan = nvbo->channel;
if (!chan || nvbo->no_vm) {
chan = dev_priv->channel;
mutex_lock(&chan->mutex);
mutex_lock_nested(&chan->mutex, NOUVEAU_KCHANNEL_MUTEX);
}

if (dev_priv->card_type < NV_50)
Expand Down
5 changes: 5 additions & 0 deletions trunk/drivers/gpu/drm/nouveau/nouveau_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@ struct nouveau_page_flip_state {
uint64_t offset;
};

enum nouveau_channel_mutex_class {
NOUVEAU_UCHANNEL_MUTEX,
NOUVEAU_KCHANNEL_MUTEX
};

struct nouveau_channel {
struct drm_device *dev;
int id;
Expand Down

0 comments on commit ee417dd

Please sign in to comment.