diff options
author | Alexandre Courbot <acourbot@nvidia.com> | 2014-07-26 18:41:41 +0900 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2014-08-10 05:12:48 +1000 |
commit | b13a0a9e2922cbfbf7b400f4f0fd0acd19f941df (patch) | |
tree | 4a26dca428907a2bb1bbd69850c89143c480edb8 /drivers/gpu/drm/nouveau/core/engine/device | |
parent | bb4d29df5e929a356e2cff2a6d7f38442d322d5b (diff) | |
download | op-kernel-dev-b13a0a9e2922cbfbf7b400f4f0fd0acd19f941df.zip op-kernel-dev-b13a0a9e2922cbfbf7b400f4f0fd0acd19f941df.tar.gz |
drm/nouveau/gk20a: reclocking support
Add support for reclocking on GK20A, using a statically-defined pstates
table. The algorithms for calculating the coefficients and setting the
clocks are directly taken from the ChromeOS kernel.
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/core/engine/device')
-rw-r--r-- | drivers/gpu/drm/nouveau/core/engine/device/nve0.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/core/engine/device/nve0.c b/drivers/gpu/drm/nouveau/core/engine/device/nve0.c index bc0dca9..6c243ae 100644 --- a/drivers/gpu/drm/nouveau/core/engine/device/nve0.c +++ b/drivers/gpu/drm/nouveau/core/engine/device/nve0.c @@ -158,6 +158,7 @@ nve0_identify(struct nouveau_device *device) break; case 0xea: device->cname = "GK20A"; + device->oclass[NVDEV_SUBDEV_CLOCK ] = &gk20a_clock_oclass; device->oclass[NVDEV_SUBDEV_MC ] = gk20a_mc_oclass; device->oclass[NVDEV_SUBDEV_BUS ] = nvc0_bus_oclass; device->oclass[NVDEV_SUBDEV_TIMER ] = &gk20a_timer_oclass; |