summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2014-10-29 09:22:37 +1000
committerBen Skeggs <bskeggs@redhat.com>2014-10-29 09:22:37 +1000
commit3faa6c9d4ce12f24f4d84f6db454f83a1fbcc126 (patch)
tree04dc39a73abd6d32b045ce333cbda077228a73aa
parentfd3e5b6194e5ab27e7b5e25dc0ea5d8ccc08a422 (diff)
downloadnouveau-3faa6c9d4ce12f24f4d84f6db454f83a1fbcc126.tar.gz
v3.18-rc2
-rw-r--r--drm/nouveau_chan.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/drm/nouveau_chan.c b/drm/nouveau_chan.c
index 589dbb582..fd3dbd59d 100644
--- a/drm/nouveau_chan.c
+++ b/drm/nouveau_chan.c
@@ -400,15 +400,20 @@ nouveau_channel_new(struct nouveau_drm *drm, struct nvif_device *device,
struct nouveau_channel **pchan)
{
struct nouveau_cli *cli = (void *)nvif_client(&device->base);
+ bool super;
int ret;
+ /* hack until fencenv50 is fixed, and agp access relaxed */
+ super = cli->base.super;
+ cli->base.super = true;
+
ret = nouveau_channel_ind(drm, device, handle, arg0, pchan);
if (ret) {
NV_PRINTK(debug, cli, "ib channel create, %d\n", ret);
ret = nouveau_channel_dma(drm, device, handle, pchan);
if (ret) {
NV_PRINTK(debug, cli, "dma channel create, %d\n", ret);
- return ret;
+ goto done;
}
}
@@ -416,8 +421,9 @@ nouveau_channel_new(struct nouveau_drm *drm, struct nvif_device *device,
if (ret) {
NV_PRINTK(error, cli, "channel failed to initialise, %d\n", ret);
nouveau_channel_del(pchan);
- return ret;
}
- return 0;
+done:
+ cli->base.super = super;
+ return ret;
}