On Sat, Jul 22, 2017 at 2:23 AM, Ilia Mirkin wrote:
> On Fri, Jul 21, 2017 at 5:55 PM, Karol Herbst wrote:
>> Signed-off-by: Karol Herbst
>> ---
>> drm/nouveau/include/nvkm/subdev/clk.h | 2 ++
>>
On Fri, Jul 21, 2017 at 5:55 PM, Karol Herbst wrote:
> Signed-off-by: Karol Herbst
> ---
> drm/nouveau/include/nvkm/subdev/clk.h | 2 ++
> drm/nouveau/nvkm/subdev/clk/base.c| 42
> +++
> 2 files changed, 44
Signed-off-by: Karol Herbst
---
drm/nouveau/include/nvkm/subdev/clk.h | 2 ++
drm/nouveau/nvkm/subdev/clk/base.c| 42 +++
2 files changed, 44 insertions(+)
diff --git a/drm/nouveau/include/nvkm/subdev/clk.h
Depending on the temperature, cstates might become unreachable or the maped
voltage of a cstate changes. We want to adjust to that.
Signed-off-by: Karol Herbst
Reviewed-by: Martin Peres
---
drm/nouveau/nvkm/subdev/therm/base.c | 7 +++
1 file
It makes more sense to read out the temperature in the alarm, because we
want to do various things with it:
1. adjust the fans
2. notify the clk subdev about the changed temperature
Signed-off-by: Karol Herbst
---
drm/nouveau/include/nvkm/subdev/therm.h | 1 +
We will need a always running therm daemon to adjust the voltage/clocks on
the fly.
Signed-off-by: Karol Herbst
Reviewed-by: Martin Peres
---
drm/nouveau/nvkm/subdev/therm/base.c | 9 ++---
1 file changed, 2 insertions(+), 7 deletions(-)
diff
The idea is to clear out the saved state, because after a resume we can't
know what the GPU is clocked to. The reclock is triggered by the call to
nvkm_clk_update later in nvkm_clk_init.
v2: convert to C style comments
Signed-off-by: Karol Herbst
Reviewed-by: Martin Peres
This function will be used to update the current clock state.
This will happen for various reasons:
* Temperature changes
* User changes clocking state
* Load changes
v2: remove parameter name
Signed-off-by: Karol Herbst
---
drm/nouveau/include/nvkm/subdev/clk.h |
We will access the current cstate at least every second and this saves us
some CPU cycles looking them up every second.
v2: Rewording commit message.
Signed-off-by: Karol Herbst
Reviewed-by: Martin Peres
---
drm/nouveau/include/nvkm/subdev/clk.h |
Adds Nouveau controlled thermal throttling for Kepler+ GPUs. With this I feel
safe enough to add support for Maxwell2 reclocking later on (still hidden
behind a switch, but we can be fairly sure to not overheat hardware if a user
isn't carefull enough)
Contains all patches from my clk update
Signed-off-by: Karol Herbst
---
drm/nouveau/include/nvkm/subdev/clk.h | 1 +
drm/nouveau/nvkm/subdev/clk/base.c| 35 +++
2 files changed, 32 insertions(+), 4 deletions(-)
diff --git a/drm/nouveau/include/nvkm/subdev/clk.h
This makes the code easier, because we can compare the id with
pstate->pstate and saves us from the trouble of iterating over the pstates
to match the index.
v2: reword commit message
Signed-off-by: Karol Herbst
Reviewed-by: Martin Peres
---
Later we will have situations where the expected and the current state
isn't the same.
Signed-off-by: Karol Herbst
Reviewed-by: Martin Peres
---
drm/nouveau/include/nvkm/subdev/clk.h | 2 ++
drm/nouveau/nvkm/subdev/clk/base.c| 32
We don't want to change anything on the GPU if it's suspended. Also we
need to increase the refcount on the pm_runtime counter so that the GPU
won't be suspended while reclocking.
v2: convert to C style comments
Signed-off-by: Karol Herbst
---
Signed-off-by: Karol Herbst
---
.../include/nvkm/subdev/bios/thermal_policies.h| 27
drm/nouveau/nvkm/subdev/bios/Kbuild| 1 +
drm/nouveau/nvkm/subdev/bios/thermal_policies.c| 81 ++
3 files changed, 109 insertions(+)
15 matches
Mail list logo