File nouveau-experimentally_clocking_fermi.patch of Package kernel-debug

From 940452c592a94bf9216c1ef9c066f931459d497b Mon Sep 17 00:00:00 2001
From: karolherbst <git@karolherbst.de>
Date: Wed, 13 Jan 2016 11:10:46 +0100
Subject: [PATCH] experimentally clocking fermi

---
 drm/nouveau/nvkm/subdev/clk/base.c  | 4 ++--
 drm/nouveau/nvkm/subdev/clk/gf100.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drm/nouveau/nvkm/subdev/clk/base.c b/drm/nouveau/nvkm/subdev/clk/base.c
index 889cce2..25d1e1e 100644
--- a/drm/nouveau/nvkm/subdev/clk/base.c
+++ b/drm/nouveau/nvkm/subdev/clk/base.c
@@ -190,7 +190,7 @@ nvkm_pstate_prog(struct nvkm_clk *clk, int pstatei)
 
 	nvkm_pcie_set_link(pci, pstate->pcie_speed, pstate->pcie_width);
 
-	if (ram && ram->func->calc) {
+	/*if (ram && ram->func->calc) {
 		int khz = pstate->base.domain[nv_clk_src_mem];
 		do {
 			ret = ram->func->calc(ram, khz);
@@ -198,7 +198,7 @@ nvkm_pstate_prog(struct nvkm_clk *clk, int pstatei)
 				ret = ram->func->prog(ram);
 		} while (ret > 0);
 		ram->func->tidy(ram);
-	}
+	}*/
 
 	return nvkm_cstate_prog(clk, pstate, 0);
 }
diff --git a/drm/nouveau/nvkm/subdev/clk/gf100.c b/drm/nouveau/nvkm/subdev/clk/gf100.c
index ecb7d1f..5af1545 100644
--- a/drm/nouveau/nvkm/subdev/clk/gf100.c
+++ b/drm/nouveau/nvkm/subdev/clk/gf100.c
@@ -535,5 +535,5 @@ gf100_clk_new(struct nvkm_device *device, int index, struct nvkm_clk **pclk)
 		return -ENOMEM;
 	*pclk = &clk->base;
 
-	return nvkm_clk_ctor(&gf100_clk, device, index, false, &clk->base);
+	return nvkm_clk_ctor(&gf100_clk, device, index, true, &clk->base);
 }