Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux
[platform/kernel/linux-exynos.git] / drivers / gpu / drm / nouveau / core / subdev / ltc / gm107.c
index a26bed8..89fc423 100644 (file)
@@ -93,6 +93,7 @@ static int
 gm107_ltc_init(struct nouveau_object *object)
 {
        struct nvkm_ltc_priv *priv = (void *)object;
+       u32 lpg128 = !(nv_rd32(priv, 0x100c80) & 0x00000001);
        int ret;
 
        ret = nvkm_ltc_init(priv);
@@ -101,6 +102,7 @@ gm107_ltc_init(struct nouveau_object *object)
 
        nv_wr32(priv, 0x17e27c, priv->ltc_nr);
        nv_wr32(priv, 0x17e278, priv->tag_base);
+       nv_mask(priv, 0x17e264, 0x00000002, lpg128 ? 0x00000002 : 0x00000000);
        return 0;
 }