[Nouveau] [PATCH] fix build error with out-of-tree builds

2016-12-13 Thread Alexandre Courbot
Recently trying to build nouveau.ko out of the kernel tree results in the following error for me (in-kernel builds are fine): uapi/drm/nouveau_drm.h:30:17: fatal error: drm.h: No such file or directory This can be fixed by adding include/uapi/drm to the include path. Signed-off-by: Alexandre Cou

[Nouveau] [Bug 99068] Screen hangs when running a 3D app. GTX 660

2016-12-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99068 --- Comment #4 from Ilia Mirkin --- (In reply to Nicolás Luciano Bértolo from comment #3) > I seems similar to https://bugs.freedesktop.org/show_bug.cgi?id=99037 too. That's a very different GPU with very different issues. > > Is there anythin

[Nouveau] [Bug 99037] Graphics Freeze on Fedora 25 GNOME 3

2016-12-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99037 --- Comment #4 from Ilia Mirkin --- (In reply to Andrew from comment #3) > Created attachment 128397 [details] > Kernel log taken after crash, before reboot. > > SSH worked like a charm. Here's the resulting kernel log from my latest > crash. T

[Nouveau] [Bug 99068] Screen hangs when running a 3D app. GTX 660

2016-12-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99068 --- Comment #3 from Nicolás Luciano Bértolo --- I seems similar to https://bugs.freedesktop.org/show_bug.cgi?id=99037 too. Is there anything I can help you with? I can run any tests you may want. Thanks for your hard work. -- You are receivin

[Nouveau] [Bug 73373] [NVE4] GPU lockup after opening many tabs in Chromium web browser

2016-12-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=73373 --- Comment #23 from Ali Akcaagac --- I would like to add, that I am experiencing the same issues as the reporter. But! I am using the *radeon* drivers! Lockup of google-chrome after a few tabs or simple random browsing for just a little while

[Nouveau] [Bug 99071] [G94][Quadro FX1800]Trigger rally

2016-12-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99071 --- Comment #2 from Ilia Mirkin --- Per IRC, this appears to be "fixed" by switching to DRI2. Also, worth noting, Trigger Rally is an open-source game. Which apparently manages to hit our (mesa's) max modelview stack depth of 32. -- You are rec

[Nouveau] [Bug 99071] [G94][Quadro FX1800]Trigger rally

2016-12-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99071 --- Comment #1 from thunderstormpol...@o2.pl --- http://192.166.218.58/trig.xz Compressed APITrace -- You are receiving this mail because: You are the QA Contact for the bug. You are the assignee for the bug._

[Nouveau] [Bug 99071] New: [G94][Quadro FX1800]Trigger rally

2016-12-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99071 Bug ID: 99071 Summary: [G94][Quadro FX1800]Trigger rally Product: Mesa Version: unspecified Hardware: Other OS: All Status: NEW Severity: normal

[Nouveau] [PATCH v2 12/15] gr: add fini() hook

2016-12-13 Thread Alexandre Courbot
Add a fini() hook to the GR engine. This will be used by gf100+ to properly release the FECS and GPCCS falcons. Signed-off-by: Alexandre Courbot --- drm/nouveau/nvkm/engine/gr/base.c | 10 ++ drm/nouveau/nvkm/engine/gr/priv.h | 1 + 2 files changed, 11 insertions(+), 0 deletions(-) dif

[Nouveau] [PATCH v2 13/15] gr/gf100: split gf100_gr_init_ctxctl()

2016-12-13 Thread Alexandre Courbot
gf100_gr_init_ctxctl() is basically two different functions (one for use of internal firmware, the other for use of external firmware), but its current layout makes it look more complex than it is. Split it to better reflect that fact. Signed-off-by: Alexandre Courbot --- drm/nouveau/nvkm/engine

[Nouveau] [PATCH v2 15/15] secboot: remove nvkm_secboot_start()

2016-12-13 Thread Alexandre Courbot
Since GR has moved to using the falcon library to start the falcons, this function is not needed anymore. Signed-off-by: Alexandre Courbot --- drm/nouveau/include/nvkm/subdev/secboot.h | 1 +- drm/nouveau/nvkm/subdev/secboot/base.c| 15 +- drm/nouveau/nvkm/subdev/secboot/gm200.c

[Nouveau] [PATCH v2 14/15] gr/gf100: instantiate and reserve GR falcons

2016-12-13 Thread Alexandre Courbot
Create instances for the FECS and GPCCS falcons and use the init() and fini() hooks to reserve them for as long as GR controls them. Signed-off-by: Alexandre Courbot --- drm/nouveau/nvkm/engine/gr/gf100.c | 110 -- drm/nouveau/nvkm/engine/gr/gf100.h | 3 +- 2 files

[Nouveau] [PATCH v2 8/15] pmu/gk20a: use falcon library functions

2016-12-13 Thread Alexandre Courbot
Use the falcon library functions where relevant. Signed-off-by: Alexandre Courbot --- drm/nouveau/nvkm/subdev/pmu/gk20a.c | 33 +- 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/drm/nouveau/nvkm/subdev/pmu/gk20a.c b/drm/nouveau/nvkm/subdev/pmu/gk20a.c

[Nouveau] [PATCH v2 9/15] gm20b: add dummy PMU device

2016-12-13 Thread Alexandre Courbot
Add a dummy PMU device so the PMU falcon is instanciated and can be used by secure boot. We could reuse gk20a's implementation here, but it would fight with secboot over PMU falcon's ownership and secboot will reset the PMU, preventing it from operating afterwards. Proper handout between secboot a

[Nouveau] [PATCH v2 0/15] Falcon library

2016-12-13 Thread Alexandre Courbot
This was the first step of the secure boot refactoring - as Ben asked for some fixes, I now submit it as its own series to make it easier to review (and also because rebasing secure boot on top of this takes time and I don't want to do it until this is validated!). This series attempts to factoriz

[Nouveau] [PATCH v2 6/15] pmu/gk20a: use nvkm_pmu_ctor()

2016-12-13 Thread Alexandre Courbot
Use the PMU constructor so that all base members (in particular the falcon instance) are initialized properly. Signed-off-by: Alexandre Courbot --- drm/nouveau/nvkm/subdev/pmu/gk20a.c | 35 -- 1 file changed, 14 insertions(+), 21 deletions(-) diff --git a/drm/nouveau

[Nouveau] [PATCH v2 4/15] pmu: instanciate the falcon in PMU device

2016-12-13 Thread Alexandre Courbot
Have an instance of nvkm_falcon in the PMU structure, ready to be used by other subdevs (i.e. secboot). Signed-off-by: Alexandre Courbot --- drm/nouveau/include/nvkm/subdev/pmu.h | 2 ++ drm/nouveau/nvkm/subdev/pmu/base.c| 4 2 files changed, 6 insertions(+), 0 deletions(-) diff --git

[Nouveau] [PATCH v2 7/15] pmu/gk20a: simplify code a bit

2016-12-13 Thread Alexandre Courbot
Some functions always succeed - change their return type to void and remove the error-handling code in their caller. Signed-off-by: Alexandre Courbot --- drm/nouveau/nvkm/subdev/pmu/gk20a.c | 30 -- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/drm/no

[Nouveau] [PATCH v2 11/15] secboot: use falcon library

2016-12-13 Thread Alexandre Courbot
Use the falcon library functions in secure boot. This removes a lot of code and makes the secure boot flow easier to understand as no register is directly accessed. Signed-off-by: Alexandre Courbot --- drm/nouveau/include/nvkm/subdev/secboot.h | 4 +- drm/nouveau/nvkm/subdev/secboot/base.c

[Nouveau] [PATCH v2 5/15] pmu: add nvkm_pmu_ctor() function

2016-12-13 Thread Alexandre Courbot
Add a PMU constructor so implementations that extend the nvkm_pmu structure can have all base members properly initialized. Signed-off-by: Alexandre Courbot --- drm/nouveau/nvkm/subdev/pmu/base.c | 21 +++-- drm/nouveau/nvkm/subdev/pmu/priv.h | 2 ++ 2 files changed, 17 insertio

[Nouveau] [PATCH v2 3/15] core: add falcon library functions

2016-12-13 Thread Alexandre Courbot
Falcon processors are used in various places of GPU chips. Although there exist different versions of the falcon, and some variants exist, the base set of actions performed on them is the same, which results in lots of duplicated code. This patch consolidates the current nvkm_falcon structure and

[Nouveau] [PATCH v2 10/15] secboot: fix functions definitions

2016-12-13 Thread Alexandre Courbot
These functions should use the nvkm_secboot_falcon enum. Fix this. Signed-off-by: Alexandre Courbot --- drm/nouveau/include/nvkm/subdev/secboot.h | 6 +++--- drm/nouveau/nvkm/subdev/secboot/base.c| 4 ++-- drm/nouveau/nvkm/subdev/secboot/priv.h| 4 ++-- 3 files changed, 7 insertions(+),

[Nouveau] [PATCH v2 1/15] core: constify nv*_printk macros

2016-12-13 Thread Alexandre Courbot
Constify the local variables declared in these macros so we can pass const pointers to them. Signed-off-by: Alexandre Courbot --- drm/nouveau/include/nvkm/core/client.h | 4 ++-- drm/nouveau/include/nvkm/core/device.h | 2 +- drm/nouveau/include/nvkm/core/subdev.h | 2 +- 3 files changed, 4 inse

[Nouveau] [PATCH v2 2/15] mc: add nvkm_mc_enabled() function

2016-12-13 Thread Alexandre Courbot
Add a function that allows us to query whether a given subdev is currently enabled or not. Signed-off-by: Alexandre Courbot --- drm/nouveau/include/nvkm/subdev/mc.h | 1 + drm/nouveau/nvkm/subdev/mc/base.c| 10 ++ 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/drm/n