Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 260153
b: refs/heads/master
c: 60f7ab0
h: refs/heads/master
i:
  260151: c84549d
v: v3
  • Loading branch information
Dan Carpenter authored and Ben Skeggs committed Jun 26, 2011
1 parent 8010355 commit 8d82181
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 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: 3b40d07d8c4a9dc33ee6e1b4ad1d377309531ffe
refs/heads/master: 60f7ab06651db7d9916c0d9138ed3b12676e920d
22 changes: 12 additions & 10 deletions trunk/drivers/gpu/drm/nouveau/nvc0_graph.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ nvc0_graph_construct_context(struct nouveau_channel *chan)
if (!nv_wait(dev, 0x409800, 0x80000000, 0x80000000)) {
NV_ERROR(dev, "PGRAPH: HUB_SET_CHAN timeout\n");
nvc0_graph_ctxctl_debug(dev);
return -EBUSY;
ret = -EBUSY;
goto err;
}
} else {
nvc0_graph_load_context(chan);
Expand All @@ -119,10 +120,8 @@ nvc0_graph_construct_context(struct nouveau_channel *chan)
}

ret = nvc0_grctx_generate(chan);
if (ret) {
kfree(ctx);
return ret;
}
if (ret)
goto err;

if (!nouveau_ctxfw) {
nv_wr32(dev, 0x409840, 0x80000000);
Expand All @@ -131,21 +130,24 @@ nvc0_graph_construct_context(struct nouveau_channel *chan)
if (!nv_wait(dev, 0x409800, 0x80000000, 0x80000000)) {
NV_ERROR(dev, "PGRAPH: HUB_CTX_SAVE timeout\n");
nvc0_graph_ctxctl_debug(dev);
return -EBUSY;
ret = -EBUSY;
goto err;
}
} else {
ret = nvc0_graph_unload_context_to(dev, chan->ramin->vinst);
if (ret) {
kfree(ctx);
return ret;
}
if (ret)
goto err;
}

for (i = 0; i < priv->grctx_size; i += 4)
ctx[i / 4] = nv_ro32(grch->grctx, i);

priv->grctx_vals = ctx;
return 0;

err:
kfree(ctx);
return ret;
}

static int
Expand Down

0 comments on commit 8d82181

Please sign in to comment.