]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
drm/nv40: make INIT_COMPUTE_MEM a NOP, just like nv50
authorBen Skeggs <bskeggs@redhat.com>
Fri, 22 Jan 2010 03:17:28 +0000 (13:17 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 9 Feb 2010 02:50:35 +0000 (12:50 +1000)
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>
drivers/gpu/drm/nouveau/nouveau_bios.c

index d7f8d8b4a4b8cbc7f60eaca77c7538ba2b867583..fb4793e65ff24b2a6d5daac00b5928fa03e2bd40 100644 (file)
@@ -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;
 
        /*