[Nouveau] [PATCH 04/19] clk: print the base clocks

2016-03-19 Thread Karol Herbst
Signed-off-by: Karol Herbst --- drm/nouveau/nvkm/subdev/clk/base.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/drm/nouveau/nvkm/subdev/clk/base.c b/drm/nouveau/nvkm/subdev/clk/base.c index 889cce2..4928668 100644 ---

[Nouveau] [PATCH 02/19] volt: properly detect entry based voltage tables

2016-03-19 Thread Karol Herbst
there is a field in the voltage table which tells us if the VIDs are taken from the entries or calculated through the header v2: don't break older versions Signed-off-by: Karol Herbst Reviewed-by: Martin Peres ---

[Nouveau] [PATCH 11/19] clk: export nvkm_volt_map

2016-03-19 Thread Karol Herbst
before clocking to a cstate, we have to check if the voltage is within the allowed range Signed-off-by: Karol Herbst --- drm/nouveau/include/nvkm/subdev/volt.h | 1 + drm/nouveau/nvkm/subdev/volt/base.c| 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff

[Nouveau] [PATCH 10/19] volt: add min_id parameter to nvkm_volt_set_id

2016-03-19 Thread Karol Herbst
min_id indicates a volt map entry which acts as a floor value, this will be used to set the lower voltage limit through pstates Signed-off-by: Karol Herbst --- drm/nouveau/include/nvkm/subdev/volt.h | 2 +- drm/nouveau/nvkm/subdev/clk/base.c | 6 --

Re: [Nouveau] [RFC mesa] nouveau: Add support for OpenCL global memory buffers

2016-03-19 Thread Hans de Goede
Hi, On 14-03-16 21:50, Samuel Pitoiset wrote: Btw, do you need someone with commit access to push your previous series (the tgsi thing)? I can do this for you. Thanks for the offer. IIRC Ilia wanted some minor fixes there, so I'll do a v2 tomorrow. Talking about commit rights, I guess it

Re: [Nouveau] [PATCH v2 2/2] volt: properly detect entry based voltage tables

2016-03-19 Thread Martin Peres
On 16/03/16 20:17, Karol Herbst wrote: there is a field in the voltage table which tells us if the VIDs are taken from the entries or calculated through the header v2: don't break older versions of the table Signed-off-by: Karol Herbst ---

[Nouveau] [PATCH 16/19] clk: respect voltage limits in nvkm_cstate_prog with cstate = -1

2016-03-19 Thread Karol Herbst
we should never allow to select a cstate which current voltage (depending on the temperature) is higher than 1. the max volt entries in the voltage map table 2. what tha gpu actually can volt to this resolves most of the remaining volting errors on fermi and newer Signed-off-by: Karol Herbst

[Nouveau] [PATCH 14/19] volt: add temperature parameter to nvkm_volt_map

2016-03-19 Thread Karol Herbst
the voltage entries actually may map to a different voltage depending on the current temperature. Signed-off-by: Karol Herbst --- bin/nv_cmp_volt.c | 2 +- drm/nouveau/include/nvkm/subdev/volt.h | 2 +- drm/nouveau/nvkm/subdev/volt/base.c| 14

Re: [Nouveau] [Mesa-dev] [PATCH mesa v2 3/3] gallium: Remove unused TGSI_RESOURCE_ defines

2016-03-19 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Thu, Mar 17, 2016 at 10:13 AM, Hans de Goede wrote: > These magic file-index defines where only ever used in the nouveau code > and that no longer uses them. > > Signed-off-by: Hans de Goede > ---

[Nouveau] [PATCH 13/19] add daemon to compare nouveau with blob voltage

2016-03-19 Thread Karol Herbst
this tool can be run alongside the nvidia driver to print information about the current p/cstate, which voltage was set by nvidia and what nouveau would set in the same situation. Signed-off-by: Karol Herbst --- bin/nv_cmp_volt.c | 130

[Nouveau] [PATCH 00/19] Volting/Clocking improvements for Fermi and newer

2016-03-19 Thread Karol Herbst
This series fixes most of the issues regarding volting on GPUs with any form of GPU Boost inside their vbios, which is mainly Kepler and newer, but we find some boosting related tables in Fermi vbios' already In the end reclocking should work on most Kepler cards without any issues Karol Herbst

[Nouveau] [PATCH 09/19] volt: parse the both max voltage entries

2016-03-19 Thread Karol Herbst
these entries specify a maximum voltage nvidia never exceeds, we shouldn't do that, too. Signed-off-by: Karol Herbst --- drm/nouveau/include/nvkm/subdev/bios/vmap.h | 2 ++ drm/nouveau/include/nvkm/subdev/volt.h | 2 ++ drm/nouveau/nvkm/subdev/bios/vmap.c

[Nouveau] [PATCH 03/19] bios: add parsing of BASE CLOCK table

2016-03-19 Thread Karol Herbst
this table contains three important clocks: base clock: this is the non boosted max clock tdp clock: the clock at wich the vbios guarentees the TDP won't ever be exceeded at max load (seems to be always the same as the base clock, but behaves differently) boost clock:

[Nouveau] [Bug 94627] Game Risen on wine black grass

2016-03-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=94627 Ilia Mirkin changed: What|Removed |Added Status|NEW |RESOLVED

[Nouveau] [Bug 94627] Game Risen on wine black grass

2016-03-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=94627 --- Comment #4 from Karol Herbst --- I bisected it, here is my git bisect log: git bisect start # bad: [5dbb57a99482e2e04302ec8ef8cb4130e4ddb882] nouveua_compiler stuff git bisect bad

[Nouveau] [PATCH mesa v2 2/3] nouveau: codegen: Do not silently fail in handeLOAD / handleSTORE / handleATOM

2016-03-19 Thread Hans de Goede
handeLOAD / handleSTORE / handleATOM can only handle TGSI_FILE_BUFFER and TGSI_FILE_MEMORY. Make things fail explictly when another register-file is used in these functions. Signed-off-by: Hans de Goede --- Changes in v2: -Split out of "nouveau: codegen: Disable more old

[Nouveau] [Bug 94627] Game Risen on wine black grass

2016-03-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=94627 --- Comment #3 from Ilia Mirkin --- I'm able to reproduce with Mesa 11.1.2, but not with the current mesa master. Would be nice to figure out what fixed it, but I don't really have the patience to do a reverse bisect (trace

Re: [Nouveau] [Mesa-dev] [PATCH mesa 1/6] tgsi_build: Fix return of uninitialized memory in tgsi_*_instruction_memory

2016-03-19 Thread Nicolai Hähnle
On 16.03.2016 04:23, Hans de Goede wrote: tgsi_default_instruction_memory / tgsi_build_instruction_memory were returning uninitialized memory for tgsi_instruction_memory.Texture and tgsi_instruction_memory.Format. Note 0 means not set, and thus is a correct default initializer for these. Fixes:

[Nouveau] [Bug 94627] Game Risen on wine black grass

2016-03-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=94627 Ilia Mirkin changed: What|Removed |Added Component|Other |Drivers/DRI/nouveau

[Nouveau] [PATCH mesa v2 1/2] nouveau: codegen: Use FILE_MEMORY_BUFFER for buffers

2016-03-19 Thread Hans de Goede
Some of the lowering steps we currently do for FILE_MEMORY_GLOBAL only apply to buffers, making it impossible to use FILE_MEMORY_GLOBAL for OpenCL global buffers. This commits changes the buffer code to use FILE_MEMORY_BUFFER at the ir_from_tgsi and lowering steps, freeing use of

[Nouveau] [PATCH 06/19] volt: save the voltage range we are able to set

2016-03-19 Thread Karol Herbst
We shouldn't set voltages below the min or above the max voltage the gpu is able to set, so save the range Signed-off-by: Karol Herbst --- drm/nouveau/include/nvkm/subdev/volt.h | 3 +++ drm/nouveau/nvkm/subdev/volt/base.c| 14 +- 2 files changed, 16

[Nouveau] [PATCH 15/19] nouveau/subdev/clk: fixup cstate selection

2016-03-19 Thread Karol Herbst
From: Karol Herbst now the cstatei parameter can be used of the nvkm_cstate_prog function to select a specific cstate -1 is a magic value, which will always select the highest currently possible cstate Signed-off-by: Karol Herbst ---

[Nouveau] [PATCH 01/19] bios/volt: handle voltage table version 0x50 with 0ed header

2016-03-19 Thread Karol Herbst
Some Fermi+ gpus have no usefull header in the voltage table, which means nouveau has to read the voltages out of the entries directly. The mask may be bigger than 0x1f, but this value is already >2V, so it will be fine for now. This patch fixes volting issues on those cards enabling them to

Re: [Nouveau] [PATCH mesa 4/6] nouveau: codegen: s/FILE_MEMORY_GLOBAL/FILE_MEMORY_BUFFER/

2016-03-19 Thread Hans de Goede
Hi, On 16-03-16 15:55, Ilia Mirkin wrote: This approach leads to the emitters needing to know about both global and buffer, even though at that point, they are identical. I was thinking that in the lowering logic, buffer would just get rewritten as global (with the offset added), thus not

[Nouveau] [PATCH 05/19] clk: allow boosting only when NvBoost is set

2016-03-19 Thread Karol Herbst
0: base clock from the vbios is max clock 1: boost only to boost clock from the vbios (default) 2: boost to max clock available Signed-off-by: Karol Herbst --- drm/nouveau/include/nvkm/subdev/clk.h | 9 - drm/nouveau/nvkm/subdev/clk/base.c| 26

Re: [Nouveau] [PATCH mesa 6/6] nouveau: codegen: Disable more old resource handling code

2016-03-19 Thread Samuel Pitoiset
On 03/16/2016 11:49 AM, Hans de Goede wrote: Hi, On 16-03-16 11:45, Samuel Pitoiset wrote: On 03/16/2016 10:23 AM, Hans de Goede wrote: Commit c3083c7082 ("nv50/ir: add support for BUFFER accesses") disabled / commented out some of the old resource handling code, but not all of it.

[Nouveau] [PATCH 18/19] bios/vmap: unk0 field is the mode

2016-03-19 Thread Karol Herbst
this selects which formula is used to calculate the voltage Signed-off-by: Karol Herbst --- drm/nouveau/include/nvkm/subdev/bios/vmap.h | 2 +- drm/nouveau/nvkm/subdev/bios/vmap.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

[Nouveau] [PATCH 0/2] Fix some VID parsing in the voltage table version 0x50

2016-03-19 Thread Karol Herbst
On a very few GPUs with the voltage table version 0x50 we have to read out the VIDs out of the entries of the table, where all the other gpus are either PWM based or get a base and a step voltage out of the table header. Currently nouveau tried to autodetect this and actually doesn't parse the

[Nouveau] [PATCH mesa v2 3/3] gallium: Remove unused TGSI_RESOURCE_ defines

2016-03-19 Thread Hans de Goede
These magic file-index defines where only ever used in the nouveau code and that no longer uses them. Signed-off-by: Hans de Goede --- Changes in v2: -Split out of "nouveau: codegen: Disable more old resource handling code" --- src/gallium/include/pipe/p_shader_tokens.h | 9

[Nouveau] [PATCH mesa v2 1/3] nouveau: codegen: Disable more old resource handling code

2016-03-19 Thread Hans de Goede
Commit c3083c7082 ("nv50/ir: add support for BUFFER accesses") disabled / commented out some of the old resource handling code, but not all of it. Effectively all of it is dead already, if we ever enter the old code paths in handeLOAD / handleSTORE / handleATOM we will get an exception due to

Re: [Nouveau] [RFC mesa] nouveau: Add support for OpenCL global memory buffers

2016-03-19 Thread Samuel Pitoiset
On 03/17/2016 05:07 PM, Hans de Goede wrote: Hi, On 14-03-16 21:50, Samuel Pitoiset wrote: Btw, do you need someone with commit access to push your previous series (the tgsi thing)? I can do this for you. Thanks for the offer. IIRC Ilia wanted some minor fixes there, so I'll do a v2

[Nouveau] [PATCH 12/19] clk: add index field to nvkm_cstate

2016-03-19 Thread Karol Herbst
From: Karol Herbst Signed-off-by: Karol Herbst --- drm/nouveau/include/nvkm/subdev/clk.h | 1 + drm/nouveau/nvkm/subdev/clk/base.c| 1 + 2 files changed, 2 insertions(+) diff --git a/drm/nouveau/include/nvkm/subdev/clk.h

[Nouveau] display freezes when mouse pointer hits left edge

2016-03-19 Thread Robert Schöftner
Hi! I have a very strange problem with a recently purchased ViewSonic 4k display connected via display port to a Thinkpad 410 with nvidia gt218m (nvs 3100m). Every time the mouse pointer touches the left edge of the screen, the display becomes a block of solid color and freezes.

Re: [Nouveau] [PATCH mesa v2 1/3] nouveau: codegen: Disable more old resource handling code

2016-03-19 Thread Samuel Pitoiset
Series is: Reviewed-by: Samuel Pitoiset On 03/17/2016 10:13 AM, Hans de Goede wrote: Commit c3083c7082 ("nv50/ir: add support for BUFFER accesses") disabled / commented out some of the old resource handling code, but not all of it. Effectively all of it is dead