From ef66278d4fad9d0986c95f40d20f315897a59658 Mon Sep 17 00:00:00 2001 From: Vince Hsu Date: Mon, 22 Dec 2014 17:11:39 +0800 Subject: 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 Signed-off-by: Ben Skeggs --- drm/Kbuild | 1 + drm/core/subdev/pwr/gk20a.c | 1 + 2 files changed, 2 insertions(+) create mode 120000 drm/core/subdev/pwr/gk20a.c (limited to 'drm') diff --git a/drm/Kbuild b/drm/Kbuild index 6461e3565..ba6b660d3 100644 --- a/drm/Kbuild +++ b/drm/Kbuild @@ -201,6 +201,7 @@ nouveau-y += core/subdev/pwr/nvc0.o nouveau-y += core/subdev/pwr/nvd0.o nouveau-y += core/subdev/pwr/gk104.o nouveau-y += core/subdev/pwr/nv108.o +nouveau-y += core/subdev/pwr/gk20a.o nouveau-y += core/subdev/therm/base.o nouveau-y += core/subdev/therm/fan.o nouveau-y += core/subdev/therm/fannil.o diff --git a/drm/core/subdev/pwr/gk20a.c b/drm/core/subdev/pwr/gk20a.c new file mode 120000 index 000000000..804979982 --- /dev/null +++ b/drm/core/subdev/pwr/gk20a.c @@ -0,0 +1 @@ +../../../../nvkm/subdev/pwr/gk20a.c \ No newline at end of file -- cgit v1.2.1