drm/nouveau/gk20a: reclocking support
authorAlexandre Courbot <acourbot@nvidia.com>
Sat, 26 Jul 2014 09:41:41 +0000 (18:41 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Sat, 9 Aug 2014 19:12:48 +0000 (05:12 +1000)
commitb13a0a9e2922cbfbf7b400f4f0fd0acd19f941df
tree4a26dca428907a2bb1bbd69850c89143c480edb8
parentbb4d29df5e929a356e2cff2a6d7f38442d322d5b
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>
drivers/gpu/drm/nouveau/Makefile
drivers/gpu/drm/nouveau/core/engine/device/nve0.c
drivers/gpu/drm/nouveau/core/include/subdev/clock.h
drivers/gpu/drm/nouveau/core/os.h
drivers/gpu/drm/nouveau/core/subdev/clock/gk20a.c [new file with mode: 0644]