drm/nve0/ltcg: poke the partition count into yet another register
authorBen Skeggs <bskeggs@redhat.com>
Tue, 14 May 2013 02:03:33 +0000 (12:03 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 20 May 2013 03:24:06 +0000 (13:24 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/ltcg/nvc0.c

index 7c6194f2e07465452ad251ecdd6ab1077fc63902..fb794e997fbccdeef0f03a460f0112766d1cc8fd 100644 (file)
@@ -118,6 +118,8 @@ nvc0_ltcg_init_tag_ram(struct nouveau_fb *pfb, struct nvc0_ltcg_priv *priv)
        int ret;
 
        nv_wr32(priv, 0x17e8d8, priv->part_nr);
+       if (nv_device(pfb)->card_type >= NV_E0)
+               nv_wr32(priv, 0x17e000, priv->part_nr);
 
        /* tags for 1/4 of VRAM should be enough (8192/4 per GiB of VRAM) */
        priv->num_tags = (pfb->ram.size >> 17) / 4;