drm/nouveau/pwr: add support for GK20A
authorVince Hsu <vinceh@nvidia.com>
Mon, 22 Dec 2014 09:11:39 +0000 (17:11 +0800)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 22 Jan 2015 02:15:04 +0000 (12:15 +1000)
commit9f7fd620af29d4501ed063333824562656d46da5
tree98583738d76273a99bdd89ccfd2adf6339839df7
parent47e7df39d9fb74fa11bd4b4453fc34d231b2169c
drm/nouveau/pwr: add support for GK20A

This patch adds PWR support for GK20A. But instead of adding the PWR
features like firmware loading and communication with PMU firmware, we
add the DVFS (Dynamic Voltage and Frequency Scaling), which is one of
the PMU firmware's jobs on dGPUs, in this patch. This refers to the
idle signals provided by the NVIDIA hardware and tries to adjust the
performance level based on the calculated target. The reclocking policy
can be fine-tuned later when we have more real use cases.

Signed-off-by: Vince Hsu <vinceh@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/pwr.h
drivers/gpu/drm/nouveau/core/subdev/pwr/gk20a.c [new file with mode: 0644]