Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 371607
b: refs/heads/master
c: 893e90c
h: refs/heads/master
i:
  371605: 216d9cb
  371603: d6bae2a
  371599: a6df0ed
v: v3
  • Loading branch information
Ben Skeggs committed Apr 26, 2013
1 parent df86daa commit 3d59d00
Show file tree
Hide file tree
Showing 3 changed files with 10 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: 10eeaf123dd55cd2c1d2d23366d211dafbe71bde
refs/heads/master: 893e90c554c1ef85684b335655a5030d38a4a1b0
7 changes: 7 additions & 0 deletions trunk/drivers/gpu/drm/nouveau/core/engine/fifo/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ nouveau_fifo_channel_create_(struct nouveau_object *parent,
if (!chan->user)
return -EFAULT;

nouveau_event_trigger(priv->cevent, 0);

chan->size = size;
return 0;
}
Expand Down Expand Up @@ -167,6 +169,7 @@ nouveau_fifo_destroy(struct nouveau_fifo *priv)
{
kfree(priv->channel);
nouveau_event_destroy(&priv->uevent);
nouveau_event_destroy(&priv->cevent);
nouveau_engine_destroy(&priv->base);
}

Expand All @@ -191,6 +194,10 @@ nouveau_fifo_create_(struct nouveau_object *parent,
if (!priv->channel)
return -ENOMEM;

ret = nouveau_event_create(1, &priv->cevent);
if (ret)
return ret;

ret = nouveau_event_create(1, &priv->uevent);
if (ret)
return ret;
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/gpu/drm/nouveau/core/include/engine/fifo.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ struct nouveau_fifo_base {
struct nouveau_fifo {
struct nouveau_engine base;

struct nouveau_event *uevent;
struct nouveau_event *cevent; /* channel creation event */
struct nouveau_event *uevent; /* async user trigger */

struct nouveau_object **channel;
spinlock_t lock;
Expand Down

0 comments on commit 3d59d00

Please sign in to comment.