drm/nvc0/pm: parse clock for pll 0x0a (0x137020) from perf table
authorBen Skeggs <bskeggs@redhat.com>
Wed, 20 Apr 2011 03:21:40 +0000 (13:21 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 16 May 2011 00:50:47 +0000 (10:50 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nouveau_perf.c

index 224d3a1ce6ec271d4619be4981d74b6e9e4f9b5d..444a943283b122e0af408221d7252285313a536a 100644 (file)
@@ -433,6 +433,7 @@ struct nouveau_pm_level {
        u32 memory;
        u32 shader;
        u32 unk05;
+       u32 unk0a;
 
        u8 voltage;
        u8 fanspeed;
index 90ab4978e8129640c2d066d5d66334e28b95661c..6e3f93334a97e47d512e287b6c8beaaa7752f4f7 100644 (file)
@@ -243,12 +243,14 @@ nouveau_perf_init(struct drm_device *dev)
                        } else {
                                perflvl->shader = ROM16(subent(3)) & 0xfff;
                                perflvl->core   = perflvl->shader / 2;
+                               perflvl->unk0a  = ROM16(subent(4)) & 0xfff;
                                perflvl->memory = ROM16(subent(5)) & 0xfff;
                        }
 
                        perflvl->core *= 1000;
                        perflvl->shader *= 1000;
                        perflvl->memory *= 1000;
+                       perflvl->unk0a *= 1000;
                        break;
                }