drm/nouveau/clk/nv50: Enable user reclocking for NVA0
authorRoy Spliet <rspliet@eclipso.eu>
Sun, 24 May 2015 08:44:02 +0000 (10:44 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 28 Aug 2015 02:39:57 +0000 (12:39 +1000)
Tested on a few cards. Probably works quite well for most, given they should
all be GDDR3.

Signed-off-by: Roy Spliet <rspliet@eclipso.eu>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv50.c

index 9b4ffd6347ce29831a7706d8ebdd29835f21f423..89c5d886f2adf91a34bbd6e2a0668968db10ca90 100644 (file)
@@ -509,7 +509,8 @@ nv50_clk_ctor(struct nvkm_object *parent, struct nvkm_object *engine,
        int ret;
 
        ret = nvkm_clk_create(parent, engine, oclass, pclass->domains,
-                             NULL, 0, false, &priv);
+                             NULL, 0, nv_device(parent)->chipset == 0xa0,
+                             &priv);
        *pobject = nv_object(priv);
        if (ret)
                return ret;