Skip to content

Commit

Permalink
drm/nouveau: PRAMIN is available from the start on pre-nv50.
Browse files Browse the repository at this point in the history
This makes sure that RAMHT is cleared correctly on start up.

Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information
Francisco Jerez authored and Ben Skeggs committed Sep 24, 2010
1 parent de5899b commit 35fd5b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/gpu/drm/nouveau/nv04_instmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ int nv04_instmem_init(struct drm_device *dev)
u32 offset, length;
int ret;

/* RAMIN always available */
dev_priv->ramin_available = true;

/* Setup shared RAMHT */
ret = nouveau_gpuobj_new_fake(dev, 0x10000, ~0, 4096,
NVOBJ_FLAG_ZERO_ALLOC, &ramht);
Expand Down Expand Up @@ -81,7 +84,6 @@ int nv04_instmem_init(struct drm_device *dev)
return ret;
}

dev_priv->ramin_available = true;
return 0;
}

Expand Down

0 comments on commit 35fd5b4

Please sign in to comment.