Skip to content

Commit

Permalink
drm/nvc0: fix init without firmware present
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information
Ben Skeggs committed Jan 6, 2011
1 parent 47a44d2 commit eeb9cc0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions drivers/gpu/drm/nouveau/nvc0_graph.c
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ nvc0_graph_init_ctxctl(struct drm_device *dev)
r000260 = nv_mask(dev, 0x000260, 0x00000001, 0x00000000);
ret = nvc0_fuc_load_fw(dev, 0x409000, "fuc409c", "fuc409d");
if (ret == 0)
nvc0_fuc_load_fw(dev, 0x41a000, "fuc41ac", "fuc41ad");
ret = nvc0_fuc_load_fw(dev, 0x41a000, "fuc41ac", "fuc41ad");
nv_wr32(dev, 0x000260, r000260);

if (ret)
Expand Down Expand Up @@ -686,10 +686,8 @@ nvc0_graph_init(struct drm_device *dev)
nv_wr32(dev, 0x400054, 0x34ce3464);

ret = nvc0_graph_init_ctxctl(dev);
if (ret)
return ret;

dev_priv->engine.graph.accel_blocked = false;
if (ret == 0)
dev_priv->engine.graph.accel_blocked = false;
return 0;
}

Expand Down

0 comments on commit eeb9cc0

Please sign in to comment.