Skip to content

Commit

Permalink
drm/nv40: make INIT_COMPUTE_MEM a NOP, just like nv50
Browse files Browse the repository at this point in the history
It appears we aren't required to do memory sizing ourselves on nv40
either.  NV40 init tables read a strap from PEXTDEV_BOOT_0 into a
CRTC register, and then later use that value to select a memory
configuration (written to PFB_CFG0, just like INIT_COMPUTE_MEM on
earlier cards) with INIT_IO_RESTRICT_PROG.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information
Ben Skeggs committed Feb 9, 2010
1 parent 9967b94 commit e235c1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/nouveau_bios.c
Original file line number Diff line number Diff line change
Expand Up @@ -1865,7 +1865,7 @@ init_compute_mem(struct nvbios *bios, uint16_t offset, struct init_exec *iexec)

struct drm_nouveau_private *dev_priv = bios->dev->dev_private;

if (dev_priv->card_type >= NV_50)
if (dev_priv->card_type >= NV_40)
return 1;

/*
Expand Down

0 comments on commit e235c1f

Please sign in to comment.